## #3 Enables LaTeX psfrag labels in the postscript terminal

closed-out-of-date
nobody
None
5
2004-05-07
2000-05-11
Skip Beemer
No

## Discussion

• Skip Beemer - 2000-05-11

None

• Skip Beemer - 2000-05-11

'psfrag' mode is a special version of 'eps' mode which
generates postscript suitable for use with the LaTeX
package 'psfrag' version 3.02 or later. In additon to
converting normal plain text labels to LaTeX fragments,
there is a special 'psfrag' syntax. A label may be
formatted in the following manner:
&quot;psfrag:plain text\\latex text&quot;. Any label which begins
with &quot;psfrag:&quot; and contains &quot;\\&amp;quot; will be treated
specially. The text between the colon and the first
double backslash will normally appear in the postscript
output. The text between the first double backslash and
the end of the string will only show up in postscript
generated using LaTeX and a suitable dvi to postscript
psfrag package using the command
&quot;\usepackage[scanall]{psfrag}&quot;. The gnuplot generated
eps file should be inserted into a LaTeX document using
the \includegraphics command of the standard LaTeX
graphics or graphicx packages.

'psfrag' changes the font and fontsize to Times-Roman
20 so that the size of the postscript text will more
closely match the standard LaTeX font cmr10. This can
be overidden in the set term command line or later.
'psfrag' is not yet compatible with the 'enhanced
postscript' terminal.

Slightly different behavior can be obtained from the
psfrag option by placing the option 'verbatim'
immediately after 'psfrag' in the set term command
line. This option only affects labels which do not
conform to the special syntax described above. It will
cause special LaTeX symbols such as '\$' and '&amp;' to
appear as typed in LaTeX output. The reason for
including both verbatim and non-verbatim behavior is to
make the psfrag option as backward-compatible as
possible with both the 'eps' terminal and the 'pslatex'
terminal.

The advantages of 'psfrag' over the 'pslatex' terminal
are:
1) 'psfrag' does not use an auxiliary file. All
information is stored in the eps file.
2) Scaling and rotating are supported in LaTeX. The
LaTeX replacement text can optionally scale with the
figure.
3) The output eps file is useful outside of LaTeX,
where all labels will print in a normal postscript
font.

• Skip Beemer - 2000-07-28

This patch works with gnuplot 3.7.

• status: open --> closed-out-of-date