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

3
votes
2answers
59 views
1
vote
1answer
120 views

Need help translating Mathematica code to LaTeX

So I got a gift for a friend based on Mathematica code. ...
1
vote
2answers
46 views

TexForm List with Rule

I'm having some difficulty TexForming a list. The output is not what I want. The following is a minimum working example. I've tried every combination of Flatten, ArrayReshape, and Partition to no ...
4
votes
1answer
56 views

Copy xAct expression to LaTeX

How can I copy an xAct expression to LaTex? Using the usual command TeXForm[] gives the xAct structure, I would like to get the printed form. For example $$ \text{TeXForm}[\nabla_a\phi\nabla^a\phi] $$...
6
votes
1answer
106 views

TeXForm output in a tabular environment

As far as I can see TeXForm of a matrix produces LaTeX arrays, which assume LaTeX is in math mode. However, Mathematica can be used to produce whole tables ...
3
votes
1answer
55 views

How to separately define TraditionalForm and TeXForm

According to the documentation, TeXForm uses the TraditionalForm formatting to generate the TeX code. However, for some cases, ...
2
votes
1answer
97 views

Can one prevent $\TeX$ conversion from changing form of expressions?

This is similar to my previous question Can one prevent operators like `Factor` or `Apart` from changing full form of some algebraic expressions? but concerns $\TeX$ and I cannot figure out whether I ...
0
votes
1answer
60 views
5
votes
1answer
79 views

TeXForm of Abs[a^n] is not valid TeX, known error? [duplicate]

In[116]:= Abs[a^n] // TeXForm Out[116]//TeXForm= \left\left| a^n\right\right| But the result isn't valid TeX. ...
5
votes
1answer
57 views

Convert a selection to TeXForm, then copy to clipboard

I've been trying to find a way to make a keyboard shortcut to copy a selection of mathematica code to tex form, then copy it to my clipboard, since right clicking-> copy as-> LaTeX is very tedious. I ...
4
votes
2answers
147 views

$\LaTeX$ in labeling: TimelinePlot

I am struggling to use $\LaTeX$ in labels in TimelinePlot, but was not successful. For instance in the following code how can I insert $\sum_{i=0}^{10} f(x_i)$ ...
0
votes
1answer
82 views

Importing $\LaTeX$

I have a LaTex file, and import it this way: tex=Import["texfile.tex"]; Now according to Help, this returns a notebook expression: ...
3
votes
1answer
52 views

Copy ScientificForm as Latex?

I have a matrix M = {{-2.78787*10^-6, 0, 0}, {0, 0.00074904, 0}, {0, 0, -0.119373}}; which I'm converting into ScientificForm,...
0
votes
1answer
104 views

Import Tex's aligned multiline equation into Mathematica

I know there have been answers to similar questions, using either ImportString or ToExpression, however I haven't been able to succeed in importing this. I'm using version 10 Mathematica on Linux by ...
0
votes
1answer
39 views

Using copy as I get an error [duplicate]

When I try to copy a plot file as a LaTex file I get the following error, TeXForm of GraphicsBox[<<1>>,AspectRatio->NCache[1/GoldenRatio,0.6180339887498948`],Axes->{True,True},AxesLabel->{...
2
votes
0answers
77 views

Compiling Mathematica script in Latex [closed]

I am writing a report in physics and I want to use a Mathematica script that produce something like a simulation. I want to know how I can add this code to my LaTeX file, so when I compile that LaTeX ...
-1
votes
1answer
83 views

Export table to latex - copy as

I have the following final expression which is a table (I am posting only a subsection of the table to illustrate the problem). I am pasting it from mathematica without table formatting (to the bottom ...
4
votes
1answer
82 views

Saved notebook in .tex format: how to recover?

I accidentally saved my notebook in the .tex format. Question, how can I get the original text back?
4
votes
1answer
86 views

ToExpression to Latex Parenthesis

Everytime I use ToExpression to transform a TeX expression into mathematica input form, Mathematica always interprets parenthesis ('(' and ')') as square brackets, ...
2
votes
0answers
115 views

Export Mathematica to $\LaTeX$ properly

I am simply trying to convert an existing sample in Mathematica to $\LaTeX$. For example, if I open a new Mathematica notebook using styled templates such as Journal article and save it as $\TeX$. ...
4
votes
5answers
130 views

Special notation using round brackets and avoiding commas (for $\LaTeX$ input)?

Internally, when I work with mathematica I use a notation like br[1,2,3,4] to denote some quantities. Then I would like to export the results in ...
5
votes
1answer
104 views

ToExpression not accepting standard TeX strings

I am having trouble entering equations in TeX form. I have actually tried a bunch of different equations and gotten similar errors. For example: ...
6
votes
1answer
132 views

What is the symbol set that Mathematica notebook supports?

I want to use symbols $\color{#ff0000}{\large\ltimes}$ and $\color{#ff0000}{\large\rtimes}$ in Mathematica notebook for semi-tensor product operator representation. But it seems Mathematica does not ...
0
votes
0answers
88 views

Comments including LaTeX commands in Mathematica [duplicate]

I want to write some comments in Mathematica - which include LaTeX commands - using the form ...
2
votes
0answers
126 views

Notebook style which imitates Latex paper [closed]

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 ...
6
votes
2answers
504 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: ...
3
votes
0answers
80 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 ...
4
votes
1answer
80 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 ...
1
vote
0answers
64 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 ...
2
votes
2answers
177 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. ...
15
votes
1answer
565 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 ...
1
vote
0answers
57 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
1answer
129 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 ...
1
vote
0answers
53 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
340 views
12
votes
2answers
353 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 ^...
6
votes
1answer
292 views

Conversion to TeX results in infinite recursion

Bug introduced in 9.0 and persisting through 10.3 or later Confirmed, as bug, by WRI: [CASE:3059683] I'm trying to export to $\TeX$ a Message cell. For example,...
1
vote
3answers
137 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 ...
5
votes
1answer
1k 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
72 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
79 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 ...
10
votes
1answer
2k 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 ...
3
votes
2answers
103 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 ...
6
votes
1answer
232 views

TeXForm and Symbolize

I would like to use TeXForm to generate LaTeX output as usual. However, I use subscripted variables such as c_t. Unfortunately, ...
5
votes
4answers
320 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} $$ ...
3
votes
1answer
151 views

ConversionRules and style inheritance

Take the LaTeX-Article stylesheet stylesheet = FileNameJoin[{"Article","LaTeX-Article.nb"}]; Compare these outputs ...
1
vote
0answers
117 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
361 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: $$y^2=\...
1
vote
0answers
83 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
169 views

How to export LaTeX expressions with subscripts and greek letters? [closed]

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 ...