## Saturday, January 21, 2012

### checking latex related settings with IEEE testflow

I'm trying to submit an abstract to an IEEE joural and I just learned about testflow. It's a pretty sweet idea, use a standard .tex file to generate a .pdf file on your machine, then compare the generated pdf to a standard pdf. On my machine, Win7 64bit, I found the files here:

• standard pdf and instructions: C:\Program Files\MiKTeX 2.9\doc\latex\testflow
• test .tex file: C:\Program Files\MiKTeX 2.9\tex\latex\testflow
The instructions are really good. My generated pdf looked great, except that the margins on the right and bottom were weird. The  testflow_doc.txt instructions said the problem was most likely that some program (pdftex, DVIPS, or ghostscript) was set to default A4 instead of letter paper. In the end, I couldn't figure out why the margins are off, but below are all the steps I followed, even though it didn't seem to change anything.

DVIPS
I followed the changes for the dvips config file, which I found here:

• C:\Program Files\MiKTeX 2.9\dvips\config\config.ps
Ghostscript
I found the files here:

• C:\Program Files (x86)\gs\gs9.02\lib\
• ps2pdf.bat
• my compatibility level was 1.4, so I didn't change it
• ps2pdfxx.bat
• I replaced the 2nd line with:
• echo -q -dSAFER -dNOPAUSE -dBATCH -sPAPERSIZE=letter -dPDFSETTINGS=/printer -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sDEVICE#pdfwrite >"%TEMP%\_.at"2
pdftex
I found the file here
• C:\Program Files\MiKTeX 2.9\pdftex\config\pdftex.cfg
• the file says to run initexmf --edit-config-file pdftex, so I made the suggested changes to both files.
xdvi
I couldn't find the config file.