next up previous contents index
Next: Text Font Up: Text Previous: Creating new fonts   Contents   Index

Subscripts and fonts: Embedded LATEX-like commands

In the label clickbox, a limited subset of rudimentary LATEX-like commands may be embedded in the string. These include:

For example, the string

  
    before\it italic\rm roman\bf bold\rm


\begin{picture}( 100,40 )(0,0)
\put(0, -60){ \epsfig{file = tnimage_fig7.ps, width=2.5in}}
\end{picture}
Embedded LATEXcommands in a label.

would produce:


\begin{picture}( 100,40 )(0,0)
\put(0, 0){ \epsfig{file = tnimage_fig8.ps, width=3in}}
\end{picture}

When specifying a font, a font name should be specified that corresponds to the second part of an X-window fontname, for example:

  
     before \font courier  more text\font helvetica after

will print the label ``before more text after'' in 3 different fonts.

Greek letters can also be printed, for example:

  
     abc\size 14 \up 6 \gr abc
will print something like

abc $ ^{\alpha\beta\chi}$ .

In making superscripts, it may be helpful to preface the label with a ``down'' command. For example, the string:

  
    \gr\d14 2p\rm e\s14 \u9 -x\u5 2
would be rendered as:
\begin{picture}( 100,40 )(0,0)
\put(100, 20){ \epsfig{file = tnimage_fig9.ps, width=1.2in}}
\end{picture}

Note: Font commands are cumulative, so a command like

  
    \tt a \rm b \gr c \it d
would probably give an error because on most systems there is no Italic Greek font. The correct command would be:
  
    \tt a \rm b \gr c \rm\it d
This would change the typeface back to Roman before changing it to Greek symbols.

Note: LATEX-like commands only work with the ``label'' command, and do not work when simply typing text on the image.


next up previous contents index
Next: Text Font Up: Text Previous: Creating new fonts   Contents   Index
root 2006-11-13