<< Main Manual 

Tutorial #7. Exporting Models as LaTex

This tutorial assumes that you have completed Tutorial #6.

LaTex Creation for Pretty-Printing Model Equations/Parameters

During the nne_buildOdenModels execution an attempt is made to produce .tex files corresponding to each .oden file to produce nicely formatted equations and parameter definitions, potentially for publication with minimal editing.

To produce a .pdf file from the .tex, use pdflatex as follows and the related output if it works:


> pdflatex zca.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./zca.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(/usr/local/texlive/2023basic/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/local/texlive/2023basic/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2023basic/texmf-dist/tex/latex/l3backend/l3backend-pdftex.d
ef) (./zca.aux)
Underfull \hbox (badness 10000) in paragraph at lines 4--56

[1{/usr/local/texlive/2023basic/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
[2] (./zca.aux) )
(see the transcript file for additional information)</usr/local/texlive/2023bas
ic/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/local/texlive/202
3basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi5.pfb></usr/local/texlive/
2023basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb></usr/local/texli
ve/2023basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/local/te
xlive/2023basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/loca
l/texlive/2023basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy7.pfb>
Output written on zca.pdf (2 pages, 66111 bytes).
Transcript written on zca.log.

The example zca.pdf looks like this.

The successful production of a .tex file from .oden one relies on a few naming conventions:

- In general, subscripts for variable names require exactly one underscore, so something like g_NaP will be rendered as g_NaP.
- A few Greek letters are recognized with standard names, "theta_h" should render as theta_z. For example, we currently recognize the following Greek letters: "phi", "pi", "tau", "sigma", "theta".

- A few other symbols are currently recognized. In particular, "s_inf" will render as s_inf.

<< Main Manual