# PSfrag

PSfrag can be used by dviout as follows.
1. Copy psfrag.pro in the directory where Ghostscript searches.
2. Put ps2frag.ps in a search path of Ghostscript indicated by the environment variable GS_LIB. Here ps2frag.ps is a PS script file included in the PSfrag package(Version2).
dviout makes a supplementary file with the extension .pfi by Ghostscript and ps2frag.ps for the EPS file using PSfrag if it doesn't exist.
For example, the file for test.ps can be made by
gswin32c -DNODISPLAY -dBATCH -q ps2frag.ps test.eps > test.pfi.