Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous contents
Next: Postscript from PCs/Macs Up: Postscript Previous: Postscript

psfrag: adding maths to postscript files

Many packages that produce postscript output don't provide good maths facilities. It's often easier to add the maths in later using the psfrag package. This lets you replace text in a postscript file (produced with xfig, matlab, etc) by a fragment of LATEX. For example, doing
\usepackage{psfrag}
...
\begin{figure}
\psfrag{MATHS}{$x^2$}
\includegraphics{foo.eps}
\end{figure}
would display the file with MATHS replaced by x2. See the online psfrag documentation for details.



© Cambridge University Engineering Dept
Information provided by Tim Love
2006-07-27