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.

learn more… | top users | synonyms

2
votes
2answers
62 views

ToExpression from commandline [duplicate]

I like to use Mathematica 8.0 from the commandline, then I just have to SSH in, no matter where I am, and go. I also like to do this without forwarding X, because that is slow and lags on my ...
2
votes
1answer
106 views

How to use MathPSfrag package in Mathematica 10?

I am interested to use LaTeX like labels in the plots that I prepare in Mathematica, and hence, I downloaded the MathPSfrag package from this website ...
1
vote
1answer
82 views

Incompatibility of Row and TeXForm

In Mathematica 7 Row and TeXForm work harmoniously: ...
2
votes
0answers
55 views

possible bug in Mathematica TeXForm? Generating \left\left

I asked about this in the TeX chat. It seems Mathematica generate invalid Latex in this example. ...
1
vote
1answer
31 views

Why TeXForm[] do not display to notebook if followed by OutputForm[] in same cell?

Can someone please explain to me the logic of this: In one cell, when writing ...
1
vote
0answers
94 views

what is the best package/way to insert Mathematica code in latex docs?

I know that this question is not about strictly mathematica issue, but I think that in this site should be many pepople that use latex to distribute mathematica source code/examples. If the moderators ...
0
votes
2answers
66 views

Output for Latex

I have a Mathematica command WriteString[str,TeXForm[ToString[a]^ToString[Divide[p, q]]]] where a=47, p=17 and q=2, but the result is $47^{\text{17$\backslash $n--$\backslash $n2}}$ I hope I have ...
2
votes
1answer
60 views

How can preserve my manual edit of an expression when exporting to LaTeX?

Context I would like to use the Mathematica front end to pre-process expressions before exporting them to LateX, for the sake of readability. Example Say I have this expression ...
0
votes
1answer
36 views

Copy big or small values to LaTeX

When I create a DistributionFitTest of a distribution i receive very low P values. Eg. $2.456750213008007 \times 10^{-367}$. When I copy this (by right clicking and copy to LaTeX), and insert it in my ...
12
votes
3answers
321 views

Format and TeXForm does not work as expected

Recently, we had a nice question which brought up an issue that I believe is a bug. In the tutorial Defining Output Formats is an example at the end which doesn't make sense This specifies the ...
12
votes
3answers
301 views

TeXForm and large brackets (\Biggl[ etc)

Goal I am trying to export a very long expression like expr = c1*bracket1[a+b+c2*bracket2[d+e+f...]]+... to LaTeX using ...
0
votes
1answer
52 views

TeXForm without simplification

I'd like to be able to feed an expression into Mathematica, and have Mathematica convert that expression to TeXForm WITHOUT ANY SIMPLIFICATION WHATSOEVER. As a trivial example, currently, if I enter ...
4
votes
1answer
401 views

Parallel and perpendicular symbol from mathematica to latex

I want to get the following expression from mathematica to latex: \begin{bmatrix} E_{\parallel} \\ E_{\perp} \end{bmatrix} I have tried to use inbuilt 'symbol' character from the special characters ...
3
votes
3answers
168 views

Generating a list of questions (simultaneous equations)

I am trying to create a list of simultaneous equations showing steps, where I only need to change a, b and the question number, and maybe a couple of minor things about q (where q is the factored ...
0
votes
0answers
42 views

Use TeX in Graphics object [duplicate]

Graphics[Text[Style["Sqrt[a^2-b^2]", FontSize->25], {0,0}]] yields: but I want the nicer looking $\sqrt{a^2-b^2}$ instead of the ugly "Sqrt[a^2-b^2]". ...
4
votes
1answer
223 views

Using Mathematica in Conjunction with LyX. Path Issues?

I am attempting make life easier, and, instead of using Mathematica at the same time that I'm using LyX (a front end for LaTeX), I was hoping that I could just use LyX and use the CAS option to do ...
7
votes
0answers
121 views

Highlighting Mathematica code in LaTeX document

I was thinking about the best way to include Mathematica code in a LaTeX document with a nice syntax highlighting. I have tried the packages listings and minted (with pygments), which both claim to ...
4
votes
1answer
87 views

Add options to upvalues

I have some objects that I want to present in TeXForm. Thus, it is easily to do as follows: YoungTableau/:TeXForm[YoungTableau[diagram_]] However, what if I ...
5
votes
1answer
233 views

Mathematica eps graphics and psfrag in LaTeX

I used to to use MathPSFrag in Mathematica to export graphics to EPS for inclusion in LaTeX files. However, with recent versions of Mathematica this does not seem to work very well anymore, see for ...
4
votes
5answers
205 views

How to make a table of $\sum_{i=1}^n$?

I want to create a table of $\displaystyle \sum_{i=1}^n i^k$ for $1\le k\le 5$. The output I want to obtain is a TeXForm output as follows. \begin{align} ...
1
vote
1answer
102 views

How would I get the best quality plot into a TeX editor which includes the legends?

I have currently used "Save Selection As" after highlighting the graph and legend and then saved it as a PNG file, but the quality isn't brilliant. I am using TeXworks on Windows 7. The "Copy As ...
3
votes
1answer
216 views

Export Plot from Table to $\LaTeX$ — conform with pgfplots

General purpose My intension is to use data created by Mathematica as in Export Plots to $\LaTeX$, $\LaTeX$ and Mathematica, or How to export multiple Barcharts from Mathematica to $\LaTeX$ but ...
1
vote
1answer
190 views

How to convert the following list into a LaTeX table?

How to convert the output of the following code In[43]:= Func[x_]:=Select[Range[x],Total[IntegerDigits[#]^3]==#&]; Func[1000] which is Out[44]= ...
6
votes
3answers
113 views

Multiplication sign in TeXForm?

How do I get Mathematica to produce TeX output that does not omit the multiplication signs ? For example, this expression: ...
11
votes
1answer
287 views

How do I evaluate Mathematica expressions and insert them in a LaTeX file?

I want to make use of Mathematica as the backend to solve some computations used in my LaTeX input file. As I have no knowledge to make it in Mathematica, I used Maxima as explained in the following ...
34
votes
1answer
590 views

Export Code to Pseudocode?

I'm writing a paper and all my code is in Mathematica. The snippets are mostly simple, and consist of loops, maps, variables, and conditionals. I'd like add it to my paper, however, not many academic ...
2
votes
1answer
138 views

How to enter a LaTeX integral?

How can I enter a LaTeX integral into Mathematica? For example, I evaluated the expression ToExpression["\int 2*x\[DifferentialD]x ", TeXForm] but Mathematica ...
4
votes
2answers
120 views

Workaround for Import not supporting the \leqslant TeX macro

$\{A\leqslant x\leqslant B\}$ Copy the code into Notebook, and you'll lose the less sign, this can be rendered well in ...
1
vote
1answer
80 views

The space in default output of `ExportString` to Latex

Are there any reasons for converting subscriptbox to Tex with space? ...
3
votes
1answer
102 views

Copy/paste of Interpretation to Latex fails, but works for InputText

As part of another issue, the following has come up. Create an Interpretaion: Interpretation[Subscript[a, b], a[b]] Select ...
5
votes
0answers
274 views

Mathematica inserts extra \left and \right for absolute values in LaTeX output

Type the following in a Mathematica DisplayFormula cell(other styles may also encounter this problem): Esc+l+|+Esc and Esc+r+|+Esc, and save as LaTeX. Note: See the difference of the character ...
0
votes
1answer
402 views

Convert Mathematica formula to TeX (MathJax) with color

Case1: formula generated by functions. ...
1
vote
1answer
104 views

space lost when converting inline cell to tex

Sample Cell 1 words with spaces in one inline cell ...
6
votes
3answers
717 views

Converting Mathematica to $\LaTeX$

Is there a Mathematica-to-$\LaTeX$ converter, so that I can place Mathematica code, including things like A // MatrixForm, just as they are in the console straight ...
1
vote
1answer
159 views

Copy As Latex automatically alphabetizes words

If you take the following line, right click on it and Copy As Latex: ...
3
votes
1answer
207 views

Save as Tex \(\(f(x))\)\) double \('s problem

a simple example Text Cell Style with a inline Cell (DisplayFormula) ...
6
votes
3answers
532 views

How to type a capital 'E' in Mathematica 9 using 'ToExpression' and 'TeXForm'? [duplicate]

I am trying to use Mathematica's ToExpression[] combined with TexForm to type the Einstein's famous result: E = mc^2. Now this is dead easy in LaTeX, the code is: ...
3
votes
1answer
245 views

String replacement to make the TeXForm output beautiful

This question is inspired by this question: How to convert the symbol $d$ in Integrate into $\mathrm{d}$?. Although it’s not a big problem, the TeXForm can be ...
2
votes
1answer
173 views

How to convert the symbol $d$ in Integrate into $\mathrm{d}$?

I used TeXForm[HoldForm[Integrate[x^2, {x, 1, 2}]]] to convert the integral $$\int_1^2 x^2 \, dx$$ How to get $$\int_1^2 x^2 \, \mathrm{d}x ?$$
4
votes
2answers
281 views

Override Equation structure change in mathematica - CopyToLaTeX

I am writing my thesis, and when I do copy to LaTeX from Mathematica, it changes the equation variables and also it rearranges the structure of the original equation. How can I override that ?? ...
5
votes
0answers
283 views

Export matrix to $\LaTeX$ with style

Is it possible to export a matrix to $\LaTeX$ with style? For example this code will create a matrix with equal spacing matrix and with background colors in some cell, is it possible to export that ...
2
votes
2answers
236 views

How can you combine lines in LATEX, and lines Mathematica?

supose that You want to make a report about the golden section algorithm, and you want to explain the proccess with text in LATEX, and in every iteration you want to show in that report the values ...
1
vote
2answers
138 views

How to convert TableForm to proper LaTex and why is “\” not replaced by StringReplace?

I'm trying to optimize the teXForm output of a table because the standard output ist not satisfying: ...
8
votes
1answer
218 views

How to automate x[i]→x_{i}?

I have several Mathematica expressions in which subscripts are expressed with square brackets. E.g. x[12] is meant to represent x12, etc. If I evaluate ...
6
votes
2answers
302 views

How do I get the equivalent of the $\LaTeX$ \tag{} in Mathematica?

How do I get the equivalent of the $\LaTeX$ \tag{} in Mathematica? $a+b=x \tag{1}$ I'm not necessarily asking how to use the $\LaTeX$ \tag{} itself in ...
3
votes
1answer
351 views

Running external pdflatex command and importing the generated PDF document

There have been a couple of questions about incorporating labels and equations that were typeset in $\LaTeX$ into a Mathematica notebook. Ideally, this requires running ...
11
votes
1answer
3k views

How to use $\LaTeX$ for typesetting labels and titles in Mathematica

I need to typeset large number of equations to be used for PlotLabel and Titles and such. These have to look nice. Hence I use ...
11
votes
3answers
573 views

How do I “start a reference system”?

When I attempt to insert a citation or specify a database to use as a bibliography, I get a message that I need to "start" the "reference system" "manually": I have no idea what a references system ...
6
votes
2answers
438 views

How can I convert a formatted text cell to latex code?

I have a formatted text cell, I want to export it as latex. How can I do that? Since copy as LaTeX doesn't work, I thought of pasting it into a string and exporting, but it's a no go: ...
2
votes
0answers
310 views

Generating a function which outputs possible chemical reactions

I want to make a list of chemical reactions and I write them down in a $\require{mhchem}\LaTeX$ format. They are of the following form $$NA_n^i+MB_m^j \rightarrow \hat NA_{\hat n}^{\hat i}+\hat ...