function for use in graphs that are used with the psfrag package in LaTeX
tex.Rdtex is a little function to save typing when including TeX
commands in graphs that are used with the psfrag package in LaTeX to
typeset any LaTeX text inside a postscript graphic. tex
surrounds the input character string with \tex[options]{}.
This is especially useful for getting Greek letters and math symbols
in postscript graphs. By default tex returns a string with
psfrag commands specifying that the string be centered, not
rotated, and not specially enlarged or shrunk.
Arguments
- string
a character string to be processed by
psfragin LaTeX.- lref
LaTeX reference point for
string. See thepsfragdocumentation referenced below. Default is"c"for centered (this is also the default forpsref).- psref
PostScript reference point.
- scale
scall factor, default is 1
- srt
rotation for
stringin degrees (default is zero)
Author
Frank Harrell
Department of Biostatistics
Vanderbilt University
fh@fharrell.com
References
Grant MC, Carlisle (1998): The PSfrag System, Version 3. Full
documentation is obtained by searching www.ctan.org for pfgguide.ps.