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

0
votes
1answer
41 views

Exporting a Mathematica Document as LaTeX [on hold]

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 ...
1
vote
0answers
49 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
1answer
49 views
4
votes
1answer
157 views

How do I prevent Mathematica from reformatting the expressions that I copy as LaTeX?

When I choose something that looks like $$ W_1(1)=\rho ^{5} \omega _1 \rho ^{-5}\\ W_2(2)=\rho ^{23} \omega _2 \rho ^{-23}\\ W_3(3)=\rho ^{10} \omega _3 \rho ^{-10}\\ W_4(4)=\rho ^{9} \omega _4 \rho ...
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; ...
5
votes
1answer
85 views

Conversion to TeX results in infinite recursion

I'm trying to export to $\TeX$ a Message cell. For example, after evaluating Sin[a,b], ...
1
vote
3answers
90 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 ...
4
votes
1answer
118 views

Font style in Mathematica and .tex file

I am using Mathematica 8. I want to label the axes of figure in "Times" font. ...
1
vote
1answer
43 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 ...
2
votes
1answer
51 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 ...
4
votes
1answer
470 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 ...
0
votes
0answers
28 views

Problem when importing EPS files created with Mathematica into TeX

I create a figure in EPS format with Mathematica. The graph of some function. Then I add some items to the figure (bullets, points, shaded lines, some math text). I save this in EPS format and ...
3
votes
2answers
75 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 ...
5
votes
1answer
139 views

TeXForm and Symbolize

I would like to use TeXForm to generate latex output as usual. Howeve, I use subscripted variables such as c_t. Unfortunately, when using symbolize in the notations package for this end, TeXForm does ...
5
votes
4answers
190 views

HoldForm does not Hold Form for fractions sometimes

I'm facing a strange behavior of HoldForm. I need to display 1/2*3/4 in LaTeX like this : $$ \frac{1}{2} \times \frac{3}{4} $$ ...
1
vote
1answer
118 views

ConversionRules and style inheritance

Take the LaTeX-Article stylesheet stylesheet = FileNameJoin[{"Article","LaTeX-Article.nb"}]; Compare these outputs ...
1
vote
0answers
70 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, ...
5
votes
2answers
328 views

Adjusting size and positioning of math notation in a Mathematica notebook? [duplicate]

Writing mathematics in a notebook is OK, but consider the following image: In LaTeX, I can write: $$y^2=\frac{1+2\sin^{-1}x}{2}$$ which displays as: ...
1
vote
0answers
66 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
84 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 ...
6
votes
0answers
86 views

How to export a text into eps without splitting

I want 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. I have fixed ...
3
votes
1answer
69 views

TeXForm producing weird outputs

When executing TeXForm[ElementData[8, "ElectronConfigurationString"]] the resulting TeX markup appears to include some ...
2
votes
2answers
103 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 ...
5
votes
1answer
397 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 ...
6
votes
3answers
179 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0. persist as of 10.0.2 Update: Since no one has been able to give a reason for this change in behavior or provide a solution I am tagging this as a bug. Please report it to ...
12
votes
1answer
173 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. ...
2
votes
1answer
41 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
169 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
124 views

Output for $\LaTeX$

I have a Mathematica command WriteString[str,TeXForm[ToString[a]^ToString[Divide[p, q]]]] where a=47, ...
2
votes
1answer
73 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
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 ...
14
votes
3answers
472 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 ...
13
votes
3answers
451 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
70 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
4k 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 ...
3
votes
3answers
194 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
45 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
443 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
251 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 ...
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
578 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
225 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
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 ...
4
votes
1answer
370 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
370 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
161 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
361 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 ...
38
votes
1answer
855 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
165 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
145 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 ...