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

6
votes
1answer
250 views

Conversion to TeX results in infinite recursion

Bug introduced in 9.0 and persisting through 10.2 or later Confirmed, as bug, by WRI: [CASE:3059683] I'm trying to export to $\TeX$ a Message cell. For ...
2
votes
2answers
119 views

Input a non-string input — output as a string

I am trying to create a function that needs to transform its input into a string. The objective is to transform a $\LaTeX$ mathematical expression into an executable Mathematica expression. ...
5
votes
2answers
148 views

Using Greek $\LaTeX$ fonts

I want to use the $\LaTeX$ font in graphics. For text/numbers, this is easily done by FontFamily -> "CMU Serif" (on Ubuntu) like this: ...
0
votes
0answers
47 views

Comments including LaTeX commands in Mathematica [duplicate]

I want to write some comments in Mathematica - which include LaTeX commands - using the form ...
8
votes
3answers
203 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0 and persisting through 10.1.0 or later 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. ...
1
vote
0answers
52 views

Notebook style which imitates Latex paper

I have not experimented with Notebook styles, but from what I understand they can be customized to a wide range of styles. Is there a style which looks like a typical paper written in TeX/LaTeX? My ...
3
votes
0answers
72 views

Obtain $\TeX$ code as in `StandardForm`

This is a question very close related to Breaking up long equations in TeXForm. Last time, because @Adam doest not present a clear goal for this problem, as stated by Massimo Ortolano there's no ...
9
votes
2answers
665 views

Saving in $\LaTeX$

When I save the following notebook code as $\LaTeX$, ...
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 ...
4
votes
1answer
56 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 ...
13
votes
1answer
373 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 ...
1
vote
0answers
53 views

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

I'm trying to make this happen in Mathematica: $\mathscr{G}_{\text{\textbullet}}$ $\mathscr{G}_{\text{\textbullet}}$ I tried ...
0
votes
0answers
37 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 ...
10
votes
1answer
229 views

MaTeX for Mathematica 9

There's a great package called MaTeX that @Szabolcs wrote which allows one to easily use LaTeX within Mathematica for things like axes labels. After hours trying out various other solutions I ...
0
votes
0answers
30 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
58 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 ...
9
votes
2answers
277 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
1answer
72 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 ...
4
votes
1answer
1k 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 ...
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 ...
78
votes
6answers
14k views

$\LaTeX$ and Mathematica

I quite often would like to draw graphics in my $\LaTeX$ documents using Mathematica. I have encountered three problems. I would like to know if there are any workarounds to these problems I would ...
1
vote
3answers
117 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 ...
12
votes
1answer
193 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. ...
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
253 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
56 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
0answers
73 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 ...
3
votes
2answers
344 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 ...
5
votes
1answer
820 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 ...
0
votes
1answer
54 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 ...
5
votes
2answers
652 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 ...
4
votes
1answer
7k 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 ...
0
votes
2answers
130 views

Output for $\LaTeX$

I have a Mathematica command WriteString[str,TeXForm[ToString[a]^ToString[Divide[p, q]]]] where a=47, ...
2
votes
1answer
61 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 ...
0
votes
0answers
39 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 ...
5
votes
1answer
163 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 ...
3
votes
2answers
86 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 ...
14
votes
3answers
564 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 ...
6
votes
3answers
171 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: ...
5
votes
4answers
225 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} $$ ...
2
votes
1answer
132 views

ConversionRules and style inheritance

Take the LaTeX-Article stylesheet stylesheet = FileNameJoin[{"Article","LaTeX-Article.nb"}]; Compare these outputs ...
1
vote
0answers
95 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
341 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
120 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 ...
7
votes
0answers
124 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 ...
5
votes
0answers
538 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
1answer
76 views

TeXForm producing weird outputs

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