4.5 Script: dvips + gs + convert

<..old dvips + gs + convert (unix)..>
 <convert-old>
 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
 Ggs -sDEVICE=ppm -sOutputFile=zz%%4.ppm -r110x110 -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
 Gconvert zz%%4.ppm -trim +repage -density 110x110 -transparent ’#FFFFFF’ %%3
 Grm zz%%4.ps
 Grm zz%%4.ppm
 </convert-old>  -_-_-

The intermediate ppm step is to overcome cropping and other problems in convert.

<..old dvips + gs + convert (personal)..>
 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
 Ggs -sDEVICE=ppm -sOutputFile=zz%%4.ppm -r110x110 -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
 Gconvert zz%%4.ppm -crop 0x0 +page -density 110x110 -transparent ’#FFFFFF’ %%3
 Grm zz%%4.ps
 Grm zz%%4.ppm    -_-_-

<..old dvips + gs + convert (windows)..>
 <convert-old>
 Gif exist zz%%4.ps DEL zz%%4.ps >nul
 Gif exist zz%%4.ppm DEL zz%%4.ppm >nul
 Gif exist %%3 DEL %%3 >nul
 Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
 Ggswin32c -dNOPAUSE -sDEVICE=ppmraw -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r110x110 -sOutputFile=zz%%4.ppm -q zz%%4.ps -c quit
 Gconvert zz%%4.ppm -trim +repage -density 110x110 -transparent #FFFFFF %%3
 Gif exist zz%%4.ps DEL zz%%4.ps >nul
 Gif exist zz%%4.ppm DEL zz%%4.ppm >nul
 </convert-old>   -_-_-

The command line options -Pcmz -Pamz of dvips requests type 1 postscript format for the standard Computer Modern fonts of TEX.

TextAlphaBits, GraphicsAlphaBits: The number of bits of anti-aliasing information for text or graphics respectively. Legal values are 1 (no anti-aliasing, the default for most devices), 2, or 4.

-x: magnification * 1000. A variant of \magnification. Should use values for which the printers can support the font sizes. Typically, 1.2{\tt\string^}i * 1000.