next up previous contents
Next: Interactive output Up: Implementation Previous: Conversion to Maple

Other Assign forms

Other types of Mathematica output formats may be specified as arguments to the Assign function. The following shows how TEX expressions may be produced:

In[4]:= Assign[ "\alpha", x Log[Subscripted[y[i]]], TeXForm ]

Out[4]//OutputForm=
\alpha = x\,\log (y_{i})
Which prints as $\alpha = x\,\log (y_{i})$. This facility can be particularly useful for producing TEX and LATEX documents from Mathematica notebooks. Smith suggests establishing template TEX and LATEX files for use with Splice [27]. The Mathematica input and output lines are evaluated and placed at appropriate points in the text, thus ensuring accurate proofs. In LATEX the inverbatim environment is especially useful and has been used throughout the preparation of this document.



Jorge Romao
5/14/1998