D.8.2.3 tex
...........
Procedure from library latex.lib (see latex_lib).

Usage:
tex(fname); fname string

Return:
nothing; calls latex (LaTeX2e) for compiling the file fname

Note:
preceding ">>" are deleted and suffix ".tex" (if not given)
is added to fname.

Example:
LIB "latex.lib";
ring r;
ideal I = maxideal(7);
opentex("exp001");              // open latex2e document
texobj("exp001","An ideal ",I);
closetex("exp001");
tex("exp001"); 
==> calling  latex2e  for : exp001.tex 
==> 
==> This is TeX, Version 3.14159 (Web2C 7.3.1)
==> (exp001.tex
==> LaTeX2e <1998/12/01> patch level 1
==> Babel <v3.6x> and hyphenation patterns for american, french, german, nger\
   man, i
==> talian, nohyphenation, loaded.
==> (/usr/share/texmf/tex/latex/base/article.cls
==> Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
==> (/usr/share/texmf/tex/latex/base/size10.clo))
==> (/usr/share/texmf/tex/latex/amslatex/amsmath.sty
==> (/usr/share/texmf/tex/latex/amslatex/amstext.sty
==> (/usr/share/texmf/tex/latex/amslatex/amsgen.sty))
==> (/usr/share/texmf/tex/latex/amslatex/amsbsy.sty)
==> (/usr/share/texmf/tex/latex/amslatex/amsopn.sty))
==> (/usr/share/texmf/tex/latex/amsfonts/amssymb.sty
==> (/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty))
==> No file exp001.aux.
==> (/usr/share/texmf/tex/latex/amsfonts/umsa.fd)
==> (/usr/share/texmf/tex/latex/amsfonts/umsb.fd) [1] (exp001.aux) )
==> Output written on exp001.dvi (1 page, 2912 bytes).
==> Transcript written on exp001.log.
system("sh","rm exp001.*");
==> 0

<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
