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

4
votes
1answer
91 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 ...
4
votes
1answer
509 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 ...
4
votes
1answer
744 views

How best to embed various cell groups into a latex project?

I'm an author and a coder. I want to reference various parts of my notebooks in my latex project. I've tried doing the following, using a post on the latex side of this problem. I'd like to solve it ...
4
votes
1answer
425 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 ...
4
votes
1answer
213 views

overriding the format of 'copy-as' latex?

In the answer to Bold face formatting for vectors instead of overarrows like latex \mathbf{}? was a nice method of specifying the visual display for a variable, so that I can do something like the ...
3
votes
2answers
327 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 ...
3
votes
3answers
196 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 ...
3
votes
1answer
427 views

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

I have to make a document with multiple bar charts and export it: ...
3
votes
1answer
41 views

Using patterns to modify TeXForm output

When I use TeXForm on a matrix I often want to replace some the output with some number of verticle and horizontal lines. Is there a way to get control over this, possibly using patterns? As an ...
3
votes
2answers
83 views

Saving a plot as a pdf to use in Latex

I use the following code: sol = DSolveValue[{y'[t] == 1/(2 y[t] + 3), y[0] == 1}, y, t]; Plot[sol[t], {t, -10, 10}, ImageSize -> Small] Then I Ctrl+click the ...
3
votes
1answer
73 views

TeXForm producing weird outputs

When executing TeXForm[ElementData[8, "ElectronConfigurationString"]] the resulting TeX markup appears to include some ...
3
votes
1answer
125 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 ...
3
votes
1answer
226 views

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

a simple example Text Cell Style with a inline Cell (DisplayFormula) ...
3
votes
1answer
432 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 ...
3
votes
1answer
312 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 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 ...
2
votes
2answers
370 views

Awkward output of TeXForm

When I try to format a number that has a big exponent with TeXForm the following happens: ...
2
votes
2answers
114 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
86 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 ...
2
votes
1answer
188 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 ?$$
2
votes
1answer
56 views

How to fix the spacing problem using TeXForm for styling plots

Reference my old questions, How to use LaTeX for typesetting labels and titles in Mathematica and LaTeX and Mathematica. The problem is simple to explain. When I do this ...
2
votes
1answer
111 views

The space in default output of `ExportString` to Latex

Are there any reasons for converting subscriptbox to Tex with space? ...
2
votes
1answer
44 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 ...
2
votes
0answers
388 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
0answers
92 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 ...
1
vote
3answers
107 views

How I create a 'TraditionalForm' expression in which only parts are evaluated?

I have an expression for the form Subscript[W, f[a, b]][c] = ρ^f[a,b]ω[c]ρ^-f[a,b] that I want to render in TraditionalForm ...
1
vote
2answers
174 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: ...
1
vote
1answer
447 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]= ...
1
vote
1answer
63 views
1
vote
1answer
110 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 ...
1
vote
1answer
115 views

space lost when converting inline cell to tex

Sample Cell 1 words with spaces in one inline cell ...
1
vote
1answer
51 views

Problem with converting \frac into mathematica output [duplicate]

Please help me with the following problem: TeXForm[2/3] The Answer is correct: "\frac{2}{3}" I don't understand why ...
1
vote
1answer
122 views

ConversionRules and style inheritance

Take the LaTeX-Article stylesheet stylesheet = FileNameJoin[{"Article","LaTeX-Article.nb"}]; Compare these outputs ...
1
vote
1answer
168 views

Copy As Latex automatically alphabetizes words

If you take the following line, right click on it and Copy As Latex: ...
1
vote
0answers
47 views

How can I have this $\LaTeX$ expression in my Mathematica code? [on hold]

I'm trying to make this happen in Mathematica: $\mathscr{G}_{\text{\textbullet}}$ $\mathscr{G}_{\text{\textbullet}}$ I tried ...
1
vote
0answers
51 views

Why am I getting a conditional output when importing the Dirac Equation to Mathematica? [duplicate]

Just starting out with Mathematica and trying to use the Dirac Equation. I'm working with the following form of the Dirac Equation: $$ i \hbar \gamma^\mu \partial_\mu \psi - m c \psi = 0 $$ And my ...
1
vote
0answers
87 views

Export to PDF file and use in latex, weird behaviour from using Acrobat

I have put all files here. All pictures are Exported from Mathematica 10.0.1 X64 (win7) using Export["filename.pdf",plotobject]. I first complied the latex file, ...
1
vote
0answers
69 views

Import a web page with $\LaTeX$ code including images (png or other)

To be brief; I would like to import a web page, so I use Import["http://fabricebaudoin.wordpress.com/2012/10/25/lecture-32-the-malliavin-derivative/"]; which ...
1
vote
0answers
95 views

How to export LaTeX expressions with subscripts and greek letters?

I am constantly using the mathematica software and using TeXForm command to go back and forth between the calculations and the latex document I'm typesetting. However, mathematica won't allow me to ...
1
vote
0answers
197 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
1answer
73 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 ...
0
votes
1answer
52 views

Copy big or small values to $\LaTeX$

When I create a DistributionFitTest of a distribution I receive very low P values, e.g. $2.456750213008007 \times 10^{-367}$. When I copy this (by right clicking and copy to $\LaTeX$), and insert it ...
0
votes
1answer
521 views

Convert Mathematica formula to TeX (MathJax) with color

Case1: formula generated by functions. ...
0
votes
1answer
450 views

Question about $\LaTeX$ generated by Mathematica

I saved a Mathematica Notebook as a *.tex file. When compiling in TeXnicCenter I get the an error on the following generated code. ...
0
votes
2answers
126 views

Output for $\LaTeX$

I have a Mathematica command WriteString[str,TeXForm[ToString[a]^ToString[Divide[p, q]]]] where a=47, ...
0
votes
1answer
60 views

Exporting a Mathematica Document as LaTeX [closed]

I have tried several times to import a Mathematica document into a Wiki using the "Export As Latex" option. It never works. Of course I have the option of copying each stretch of text as text and ...
0
votes
0answers
26 views

The problem about page breaking when using PDF output of a Mathematica notebook in LaTeX

When I use the PDF output of my notebook in LaTeX just under a new chapter name, the page breaks and the inserted PDF starts from the next page. I have tried some options under File>Printing Settings ...
0
votes
0answers
20 views

How to preserve “itemize” format when converting mathematica notebook to a latex file?

When I convert a Mathematica notebook containing following cells with "itemize" format to a latex file these cells become raw text format like this: ...
0
votes
0answers
56 views

Turning Latex into Mathematica code [duplicate]

It is possible to get Mathematica code to Latex alright, but is it possible the other way too, i.e., auto translate Latex back to Mathematica code? If available it could help many users active both ...
0
votes
0answers
22 views

Copy as latex error: [duplicate]

I am trying to transfer a question to http://math.stackexchange.com/, however I have always used mathematica to convert code into latex. Now I have discovered some errors with regards to the code; ...