[OS X TeX] Export Mathematica Code to TeXShop ?

Ross Moore ross at maths.mq.edu.au
Thu Jul 22 08:07:44 EDT 2004


On 22/07/2004, at 9:04 PM, 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.

Why remove it ?
Easier is to have a simple definition for it in the preamble of your  
document;
e.g.

   \let\Mvariable\mathit     % for a slanted font in such names
or
   \let\Mvariable\mathrm     % for an upright font in such names

Whenever the variable is not a simple letter, you have
to face this issue else the spacing will be incorrect.
That, surely, is the whole point of the  \Mvariable  macro-name.


Hope this helps,

	Ross

>
> tm
>
>
>
> On Jul 19, 2004, at 4:07 PM, Will Robertson wrote:
>
>> Hi Jack
>>
>> This might help:
>>
>> http://www.keele.ac.uk/depts/cc/helpdesk/potter/mathematica/inlatex/ 
>> node2.html
>>
>> W
>>
>> --------------------- 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>
>>
>>
>
> --------------------- 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>
>
>
>
------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia                                  fax: +61 +2 9850 8114
------------------------------------------------------------------------

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





More information about the MacOSX-TeX mailing list