29

12

I have read that $\LaTeX$ source can be directly pasted into a Mathematica notebook. However, I have been unsuccessful in this regard. An example of the errors received are:

```
$\frac{1}{2}$
Syntax::sntxb: Expression cannot begin with "$ frac{1}{2}$".
Syntax::tsntxi: "$ frac" is incomplete; more input is needed.
Syntax::sntxi: Incomplete expression; more input is needed .
```

This is not remediated by removal of the `$`

signs, placement of two `$`

signs (`$$`

), or use of other $\LaTeX$ math mode delimiters (e.g., `\[ \]`

, `\begin{displaymath}\end{displaymath}`

, `\begin{equation}\end{equation}`

, etc). I do not wish to import an entire `.tex`

file as I merely want to pass a few select equations. Please advise as to my error. Thank you.

**Edit:** I am using Mathematica 8.0.1.0.

Are you prompted whether you want to paste literal text or the corresponding typeset expression when you try to paste? Also, what version of Mathematica are you using? – Andy Ross – 2012-02-22T03:34:59.510

I am using Mathematica version 8 (see edited post). I receive no prompts when I paste -- the $TeX$ markup is simply pasted directly into a cell in the notebook. Thank you. – user001 – 2012-02-22T03:38:46.080

2I just learned that the prompt is controlled via GlobalOptions > MessageOptions > TeXPasteWarning in the Options Inspector which can be found under Edit > Preferences > Advanced. Yours may be set to False? – Andy Ross – 2012-02-22T04:20:46.317

1Thanks for looking into that and letting me know. Despite empirical evidence to the contrary, the

`TexPasteWarning`

parameter was set to True. Rebooting Mathematica did not enable prompting either. – user001 – 2012-02-22T04:49:13.163@Andy please add that valuable information to your answer. – Mr.Wizard – 2012-02-22T12:33:24.813

I am using 8.0.4 and it only worked when pasting

`$\frac {1} {2}$`

and then with TeXPasteWarning enabled the dialog gives me option of accepting this format without further warnings. – Ailton Andrade de Oliveira – 2012-03-02T00:50:59.003