5.3 Simple TEX Commands with NCTEX

In this section we describe some handy additional TEX display features we have added to Mathematica. These act in addition to Mathematica’s TEX setting with NCAlgebra, like TeXForm or Format[  , TeXForm]. Mathematica’s TEX conversion however does not need this and is fine with NCAlgebra, since we have added special NCAlgebra and NCGB notation to the Mathematica-to-TEX dictionary. If you are content with that, there is no reason to read this part of the document. Also the NCProcess TEX spreadsheets are automatic and are not related to this section of the document.

These are very useful commands and we recommend using them. You may have must do a little installation work to use our fancier TEX commands depending how TEXis installed in your system. It should work out-of-the box on most Unix based systems. Beware that some versions of Mathematica creates TEX output that uses a specific Mathematica file called a style file (called notebook.sty). Some of the TEX produced needs to know where this file is kept. A description of how to inform TEX where this file is stored is found in Section ??.

5.3.1 NCTeX[]

Aliases: None
Description: NCTeX[exp] creates a file that contains a LATEX version of exp that gets compiled with LATEX and converted into a PDF image file. By default, if you are on a notebook environment, this file will be imported to the current notebook output. Otherwise, if it fails to be imported or if you are in text mode the output will be displayed on a pdf viewer. NCTeX has many options that can be set through the standard Mathematica SetOptions command or as rules appended to the NCTeX. The following are the available options and their default values: Verbose -> False, tells NCTex to display the details of the operations being performed; DisplayPDF -> False, controls whether a separated PDF viewer will be spawed to display the TEXed output; ImportPDF -> True, controls whether the TEXed output will be imported into a notebook; BreakEquations -> True, tells NCTEX to use the style breqn to attempt to break long equations or expressions in multiple lines; TeXProcessor -> NCTeXForm, tells NCTEX to use NCTeXForm as the command to translate exp into LATEX. Other options are PDFViewer, LaTeXCommand, PDFLaTeXCommand, DVIPSCommand, PS2PDFCommand which we try to guess correctly depending on your platform. You may have to customize those if your installation of TEX is not standard.
Arguments: exp is any mathematica expression or lists of expressions.
Comments / Limitations: Not available before NCAlgebra 3.9.