Top
Back: texmap
Forward: texobj
FastBack: graphics_lib
FastForward: surf_lib
Up: latex_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.9.2.7 texname

Procedure from library latex.lib (see latex_lib).

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

Return:
if fname="": the transformed string s, for which 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'+"}"
Furthermore, strings which begin with a left brace are modified by deleting the first and the last character (which is then assumed to be a right brace).

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:
 


Top Back: texmap Forward: texobj FastBack: graphics_lib FastForward: surf_lib Up: latex_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.