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

5
votes
1answer
774 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 ...
5
votes
5answers
236 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
113 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 ...
5
votes
1answer
447 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
507 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
167 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
408 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 ...
40
votes
1answer
932 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
178 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
148 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 ...
2
votes
1answer
114 views

The space in default output of `ExportString` to Latex

Are there any reasons for converting subscriptbox to Tex with space? ...
3
votes
1answer
127 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
372 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
536 views

Convert Mathematica formula to TeX (MathJax) with color

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

space lost when converting inline cell to tex

Sample Cell 1 words with spaces in one inline cell ...
7
votes
3answers
2k 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
169 views

Copy As Latex automatically alphabetizes words

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

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

a simple example Text Cell Style with a inline Cell (DisplayFormula) ...
6
votes
3answers
977 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
316 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
191 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
365 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
525 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 ...
3
votes
2answers
334 views

How can you combine lines in $\LaTeX$ and lines in Mathematica?

Suppose that you want to make a report about the golden section algorithm, and you want to explain the process with text in $\LaTeX$, and in every iteration you want to show in that report the values ...
1
vote
2answers
178 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
235 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 ...
8
votes
2answers
351 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
448 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 ...
19
votes
1answer
6k 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 ...
14
votes
3answers
694 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
555 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
396 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 ...
2
votes
2answers
381 views

Awkward output of TeXForm

When I try to format a number that has a big exponent with TeXForm the following happens: ...
3
votes
1answer
439 views

How to export multiple Barcharts from Mathematica to $\LaTeX$

I have to make a document with multiple bar charts and export it: ...
8
votes
0answers
397 views

How can I export aligned equations to $\LaTeX$?

Using Palettes -> Writing Assistant -> Math Cells, you can enter aligned equations such as: ...
12
votes
1answer
453 views

Saving a notebook as a $\LaTeX$ file, with syntax highlighting preserved

How can I save a notebook as a $\LaTeX$ file, while preserving the syntax highlighting (such as input/output boxes)?
19
votes
2answers
1k views

Mathematica vs. $\LaTeX$? Replacement for Legacy “Authoring Tools” package?

I'd rather write in Mathematica than in $\LaTeX$, but it's not really practical, especially for big works (> 100 pages) without good tooling. I'm just starting to look into what's available for big ...
5
votes
2answers
641 views

Is there possibility of exporting mathematica code directly into $\LaTeX$?

I'm a very novice user of Mathematica - is there possibility of exporting Mathematica code directly into $\LaTeX$? I'm interested only in exporting mathematical formulas. Also, from which version of ...
20
votes
2answers
2k views

How can I customize arrowhead shape to match common LaTeX styles?

How do I control the shape of my arrow heads? LaTeX's TikZ package has a wide variety of predefined arrowhead styles, some of which I'd like to try to match for Mathematica figures I'm importing into ...
8
votes
0answers
160 views

TeXToBoxes and BoxesToTeX BoxRules options

A recent question has gotten me to look more into the tex conversion rules. Consider the following latex string: ...
6
votes
1answer
335 views

$\TeX$ conversion, support for \hphantom

I'm trying to write some $\TeX$ conversion for a tensor with an upper and a lower index, but I would like the lower index to be displaced to the right by the width of the upper index. In (La)TeX I ...
5
votes
0answers
173 views

Can styles be exported in EPS as simple text tags for use by LaTeX's psfrag?

Is there a way to export graphics as EPS so that LaTeX can perform style substitutions or modifications on them? I know that it is possible to replace simple text elements in imported EPS files using ...
11
votes
1answer
668 views

Exporting numbered equations to HTML/TeX using conversion rules

This question is a follow up from this one. It may also be considered a duplicate since I have already asked this question in stackoverflow almost a year ago. For a background on using numbered ...
21
votes
5answers
8k views

Export Plots to $\LaTeX$

What is the quickest and best way to export a plot image from Mathematica to a $\LaTeX$ Editor? Is there something quicker than exporting it to an image and then including it in the $\LaTeX$ document? ...
6
votes
3answers
234 views

How can I read in specific information from a TeX-file?

I have several TeX-files and they contain information of the form ...
8
votes
1answer
1k views

Bordermatrix from LaTeX

How would I create an output similar to the result produced by this LaTeX code: ...
8
votes
2answers
455 views

TeX and TraditionalForm

I have a little problem, and hope, with your help, I'll be able to solve it. As you got from the title, I have some trouble with TeX in Mathematica. Imagine, I want to output a nice DisplayFormula, ...
2
votes
0answers
94 views

What exactly does AddTeX2Eps do and how does one use it?

What exactly is Janko Slavic's addon package AddTeX2Eps supposed to do, and exactly how does one get it to work? I do understand it's supposed to allow one to use TeX ...
9
votes
2answers
655 views

Saving in $\LaTeX$

When I save the following notebook code as $\LaTeX$, ...
5
votes
1answer
1k views

Unable to convert $\TeX$ input into mathematica

The input ToExpression["\\sqrt{x y}", TeXForm] gives me the $Failed output. Maybe my very old computer is the problem, but ...