D.8.2.7 texname
...............
Procedure from library latex.lib (see latex_lib).

Usage:
texname(fname,s); fname,s strings

Return:
if fname="": string, the transformed string s, where the
following rules apply:
      s' + "~"             -->  "\\tilde{"+ s' +"}"
     "_" + int             -->       "_{" + int +"}" 
  "[" + s' + "]"           -->      "_{" + s' + "}"
   "A..Z" + int            --> "A..Z" + "^{" + int + "}"    
   "a..z" + int            --> "a..z" + "_{" + int + "}"
"(" + int + "," + s' + ")" --> "_{"+ int +"}" + "^{" + s'+"}"
Anyhow, strings which begin with a "{" are only changed
by deleting the first and last character (intended to remove the
surrounding curly brackets).

if fname!="": append the transformed string s to the file
<fname>, and return nothing.

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

Example:
LIB "latex.lib";
ring r = 0,(x,y),lp;
poly f = 3xy4 + 2xy2 + x5y3 + x + y6;
texname("","{f(10)}");
==> f(10)
texname("","f(10) =");
==> f_{10} =
texname("","n1");
==> n_{1}
texname("","T1_12");
==> T^{1}_{12}
texname("","g'_11");
==> g'_{11}
texname("","f23");
==> f_{23}
texname("","M[2,3]");
==> M_{2,3}
texname("","A(0,3);");
==> A_{0}^{3};
texname("","E~(3)");
==> \tilde{E}_{3}

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