Questions tagged [latex]

Questions about any kind of interaction with TeX, LaTeX, and friends, including transferring text/code to/from TeX, using Mathematica graphics in LaTeX documents etc.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

ToExpression[“string”,TeXForm] doesn't work

I want to convert LaTeX equation to Mathematica code. I want to use ToExpression["x", TeXForm] to input some equation in Mathematica. However, my mathemtica doesn't ...
3
votes
1answer
43 views

Output of `Subsuperscript` in TeXForm?

TeXForm can be used to convert Mathematica expressions directly to LaTeX. However, this function fails on an expression that has a sub- and a super-script: ...
0
votes
0answers
24 views

Question about converting Mma expressions to TeX

When I want to convert the following expression Integrate[1/(1 + t (-I - 1)) (-I - 1), {t, 0, 1}] to TeX, I do: ...
2
votes
1answer
50 views

Improving TeXForm handling of fraction

TeXForm does not always change fraction a/b to $\frac{a}{b}$. If the fraction was an exponent for example, it keeps it ...
2
votes
1answer
28 views

How can I keep the argument of TeXForm[Integrate[1/Sqrt[1 + x], x]] from being evaluated?

How can I keep the argument of TeXForm[Integrate[1/Sqrt[1 + x], x]] from being evaluated? This is what I am getting: ...
0
votes
1answer
43 views

An extraneous line appears in the printed version of a Mathematica-image in a pdf-document

My system/workflow Mathematica version 11 MikTeX 2.9: tex->dvi->ps->pdf->paper I have run into the following difficulty. I cannot tell whether the problem is caused by Mathematica, MikTeX, Adobe, or ...
8
votes
1answer
103 views

Errors in converting LaTeX using ToExpression

I am trying to write a function which takes Maple Latex generated, feed it to Mathematica, use ToExpression then convert it back to Latex. This is because ...
1
vote
0answers
45 views

Tools that can convert mathematica images into tikz or pgf code to import to latex?

I have learned about Mathematica2latex from some websites, I don't know where to download it and how to use. Is there any other tools that can convert mathematica images into tikz or pgf code to ...
3
votes
1answer
340 views

Can a Mathematica notebook be programmed to work as a LaTeX editor? [duplicate]

A short example code will show that the answer to this question is yes. The example code (which I give in my answer) is for a simple LaTeX editor that is almost a drop-in replacement for TeXworks. ...
2
votes
1answer
72 views

How to Plot several functions using differents colors , It is possible to use TeX or MathSymbols?

The question is to plot several functions with different colors. Using a Table, which contains important information into it. You can see in the example above three functions with different values ...
4
votes
2answers
123 views

How to import latex matrices into Mathematica?

I have a lot of $\LaTeX$ matrices, and I want to find their eigenvalues and eigenvectors. I tried to import them to Mathematica with: ...
0
votes
0answers
62 views

How would you write this set of linear programming problems as latex?

I am not able to make self understood over at Mathematics Stackexchange in this question. Therefore I ask here the Mathematica experts how to write these linear programming problems as latex, the ...
3
votes
1answer
140 views

MMa version of $\LaTeX$'s overtilde doesn't look as expected

I am (mis)using Mathematica as a WYSIWYG LaTex editor. I want to put a (long) tilde over an expression. ...
0
votes
0answers
32 views

Translate Mathematica Output to Latex type font [duplicate]

In solving the inequality $2d^2\ge -(2(1+d)+\frac{4d^3}{1-d})(d-1)$, Mathematica returns something using Slots and Functions: ...
4
votes
2answers
130 views

Change TeXForm of ArcTan

When using ArcTan, the corresponding TeXForm is tan^{-1} and not \arctan which I would ...
10
votes
4answers
2k views

Get LaTeX form from step by step solution

If I want to copy block as latex I do copy as LaTeX. But when I write: WolframAlpha["integrate (sin(x))^4 dx"] How can I copy step by step solution as latex?
0
votes
1answer
30 views

Evaluate list queries inside `HoldForm[]` terms

When I have an equation like (example)... ...I can derived it and turn it into TeXForm afterwards (that is what I want). Therefore, I might want to additionaly ...
2
votes
1answer
111 views

Loading Latex packages into Mathematica

Is it possible to specify a latex package to load while pasting TeX expressions into Mathematica notebooks. For example I would like to load the braket package to typset something like \ket{\psi}
3
votes
1answer
49 views

Insert calligraphy TeX in FrameLabel

I want to put some Tex code in my FrameLabels so they are consistent with my equations. So far, I managed to do it using things like: ...
3
votes
2answers
106 views

TeXForm errors “TeXForm ofTemplateSlotSequence[1, ] is not supported” and “TeXForm of 0.78492 +1.30714 I is not supported” in 12

Reported to WRI. CASE:4250134 Update: Thanks for the smaller example by Chip Hurst in comment, it seems it comes down to this simpler example ...
2
votes
0answers
42 views

Bug with TeXForm conversion of superscript in strings [duplicate]

Bug introduced in 10.0 or earlier and persisting through 11.3 Consider a String expression with a TemplateBox superscript: ...
0
votes
0answers
45 views

Copying very long expression to LaTeX

I have a long expression (even after using Simplify) which I am trying to copy to LaTeX using the "Copy to LaTeX" command. However, it is too messy for LaTeX to ...
0
votes
1answer
68 views

$\LaTeX$ format copy problem [closed]

I need to write a $\LaTeX$ document from my functions developed in Mathematica. When I try to get a $\LaTeX$ form of the following integral ...
0
votes
1answer
121 views

How to splice an output that is already in TeXForm?

This answer with some modification can generate a list of trigonometry functions with random angles. ...
3
votes
0answers
96 views

$ \rm\LaTeX $ and $ \mathit Mathematica $: a versus $ a $ [closed]

There are many questions on this site about making the fonts in Mathematica commensurate with the default Computer modern font in $ \rm\LaTeX $. I'm not interested in complex workarounds, using the ...
3
votes
1answer
72 views

How to install MaTeX on Mathematica online?

Can you please tell me the step-by-step procedure to install MaTeX on Mathematica Online platform?
1
vote
1answer
46 views

Using TeXForm for subscripted variables

I tried following the answer in TeXForm and Symobilze, however, I have trouble making it work. I loaded the Notation packages and symbolized all expressions with a subscript as in the example. I ...
4
votes
0answers
60 views

Nonacceptance by StackExchange site of Mathematica TeXForm employing \unicode

When I apply the Mathematica command TeXForm to ...
1
vote
1answer
58 views

Can TeXForm be forced not to wrap variables in \text{}?

I have a number of long equations in Mathematica that I need to transfer to $\LaTeX$. Unfortunately, the equations involve many variables and TeXForm wraps the ...
1
vote
0answers
31 views

Difficult to differentiate different line style , when we convert into eps and import into latex

Question 1 How to place the legend on top of the plot, I used Placed function to put a legend on top of the plot, but it is not working. Question 2 The moment If I export the end result of this ...
1
vote
0answers
35 views

Difficulty with Latex Exportation

I have a rather big notebook which I would like to export to Latex. Upon doing the naive Save As -> tex file, it seems that TeXStudio is not able to handle the resulting file. It is very laggy, the ...
4
votes
1answer
64 views

Using TeXForms as vertices of a Graph

I have a set of equations written in TeX that I want to use as vertices of a graph, with edge labels showing how the equations are connected. I read the equations in from a file, then replace any ...
3
votes
2answers
133 views

How to generate a “value-frequency” table with random numbers?

I want to create a "value-frequency" table from the following expression. Counts[Sort[RandomInteger[{1, 5}, 500]]] // TableForm The generated table should be in ...
1
vote
1answer
45 views

RunProcess Does not Stop

I want to convert a latex file to a pdf file, using Mathematica. To do that, I installed MikTex and the I can run the following command in cmd: lualatex main.txt ...
2
votes
1answer
114 views

Convert Math in Text Form to $\LaTeX$ Form

I have the following math as a text file: text = {"aᵢ₁β₁ + aᵢ₂β₂ + ... + aₙ₁βₙ = bᵢ"} Is it somehow possible to convert it clean $\LaTeX$ Input ? The Goal: I ...
0
votes
1answer
90 views

MaTeX produces strange error

I've managed to install and configure matex, however when I try to run it the following error arise: ...
4
votes
1answer
60 views

Why the difference in $\LaTeX$ expressions?

I successfully find ...
9
votes
2answers
6k views

How to customize the TeXForm output?

The following snippet ...
0
votes
1answer
95 views

Padding a number doesn't work when transferring to LaTeX

I have some numbers which I calculate via some previous code. The calculation works fine. However since I want to compare it with experimental data I only need the numbers to a certain number of ...
2
votes
1answer
100 views

TeXForm of symbols

For reasons unknown, TeXForm seems to produce different results when acting on symbols that are one character long versus longer characters: ...
5
votes
1answer
181 views

Exporting graphics in eps-format. A change from version 9 to version 11 made it less useful for LaTeX

Recently I ran into this problem when trying to use EPS-images produced by Mathematic in my TeX-documents. The friendly people at TeX.SE took a look at my eps, and discovered the following "feature" ...
9
votes
3answers
253 views

How to force TeXForm not to use “array” environment for a square array?

The default behavior of Mathematica, transforms a jagged array TeXForm[{{1, 2}, {3}}] to \{\{1,2\},\{3\}\} but a ...
2
votes
0answers
57 views

Problem with exporting PlotLabel using MaTeX in Parallel computation

Requires MaTeX, which can be found here. ...
1
vote
1answer
89 views

TeXForm as PlotLabels (Configuring GhostScript?)

Update ConfigureMaTeX[ "pdfLaTeX" -> "C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64", "Ghostscript" -> "C:\\Program Files\\gs\\gs9.23\\bin" ] ...
1
vote
2answers
46 views

How to properly, with the most possible freedom, add a formula into a plot?

I would like to know the best way(s) to add a formula into a plot, with the most possible freedom ever. And I mean: possibility of writing the formula the dimension of which can be modified, put into ...
2
votes
1answer
79 views

Behavior of MaTeX for a polynomial equation

I have been researching today the possibility of creating interactive mathematics documents using Mathematica for use in the classroom. I want to be able to use LaTeX typesetting within my notebook ...
1
vote
0answers
56 views

Export PDF/A from mathematica

I want to paste my plots from Mathematica into LaTeX which creates PDF/A. If I use any greek letters on axis labels the result is no more valid PDF/A. If I export the plot as png it gets a little ...
2
votes
2answers
79 views

TexForm with fractional overall factor

I am having some trouble with TeXForm output. Basically, I have many expressions that have an overall fractional factor, like 1/(16 Pi^2), in front. However, ...
2
votes
1answer
71 views

How can I use Expand with TeXForm[HoldForm]?

I want to use Expand[(x - 7)^2 + 49]] with TeXForm[HoldForm of the expression ...
0
votes
3answers
86 views

Display a polynomial in exponential generating function form

Is there an easy way to have Mathematica display a polynomial in "exponential generating function" form? So, for example, rather than seeing $$1 + 2 x + 3 x^2 + 4 x^3$$ I would like to see $$1 + \...