# [OS X TeX] Export Mathematica Code to TeXShop ?

Joseph C. Slater joseph.slater at wright.edu
Thu Jul 22 19:32:07 CEST 2004

On Jul 22, 2004, at 7:04 AM, Themis Matsoukas wrote:

> The command TeXForm is the easiest way to do this, as explained in
> Will's link. You don't have to export the result in a separate file,
> you can issue the command in your notebook and simply cut-paste the
> output to your file. Note: you may  still have to do some cleanup of
> the code. For example,  TeXForm[Integrate[Sin[xx]^2, x]] produces
> x\,{\sin (\Mvariable{xx})}^2 and you must remove \Mvariable.
>

\newcommand{\Mvariable}[1]{#1}

at the head of the document is easier.

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>