.TH ps2frag 1 "Feb 95" TeXware .SH NAME ps2frag \- extract text fragments from EPS file .SH SYNOPSIS .B ps2frag [ .B -f ] [ .B -209 ] [ .B -2e ] [ .B -x .BI ] [ .B -y .BI ] .B file1 file2 ... .SH DESCRIPTION The program .I ps2frag extracts the position, orientation and content of each piece of text that a particular Encapsulated PostScript (EPS) file displays, and writes this information into the header of the same file. This file can then be processed with LaTeX to replace the text fragments with other LaTeX text fragments. The main purpose of the program is to overcome the problems one normally has to put LaTeX text in EPS figures made with applications with limited typesetting abilities. .SH OPTIONS .TP .B \-f Forces .I ps2frag to update the information in the EPS files, even if they have previously processed by .I ps2frag. Normally, ps2frag skips any files in which it detects PSfrag information. .TP .B \-209 Invokes LaTeX 2.09 mode. In this mode, the text information extracted from the EPS file is placed in a separate PSfrag file is generated with the same base name, as was done in the LaTeX 2.09 version of PSfrag. This option is supplied to allow LaTeX 2.09 documents to be maintained with the same script. .TP .B \-2e Disables LaTeX 2.09 mode. This option is supplied in the event that .I ps2frag has been installed with LaTeX 2.09 compatibilty enabled by default. You can determine this by running .I ps2frag with no arguments; if the compatibility mode is enabled, it will say so. .TP .B \-x,\-y Specifies displacements, in points, in the X and Y directions to add to each text fragment. Some drawing programs add small offsets which cause the actual positions of the text to differ from that which was specified by the user. For example, idraw, with grid gravity on, shifts 12-point text upwards by 8.33 points; so for such files you might specify .B \-y \-8.33. .SH NOTES See the PSfrag documentation for further use of .I ps2frag and examples. .SH FILES (Found somewhere in the TeX tree) .IP epsf.sty Supplied mainly for LaTeX 2e's back-compatibility mode. .IP psfrag.sty The PSfrag sytle file. .IP ps2frag.ps a PostScript file used by ps2frag to let GhostScript extract text fragments. .SH "SEE ALSO" dvips(1), gs(1), latex(1), perl(1) .SH AUTHORS .IP "Michael C. Grant " Current maintainer of the package .IP "Craig Barratt " Original author of the package .IP "Piet Tutelaers " The original version of this manual page.