Wednesday, January 20, 2010

MikTeX, TeXnicCenter, US Letter sized paper and IEEETran.cls

IEEETran.cls for the Computer Society Conferences requires a 1 inch
margin on all sides.

The default configurations for TeXnicCenter do not provide the proper
margins. You will probably get a top margin that is too wide (1.7 inches)

TeXnicCenter along with MikTeX, has the default paper size set to A4. To
get letter size, you must fix two sections in the build profiles.

This is for the default LaTeX > PS > PDF build profile. Modify as required.

Inside TeXnicCenter:
Menu Build > Define Output Profiles
Select the profile LaTeX>PS>PDF

On the right side, under Postprocessor tab,
1. Select DviPs by clicking on it.
2. Under the Arguments section, add the argument "-t letter" (w/o the
quotes)

3. Now select Ghostscript from the above list
4. Inside the arguments, change the argument "-sPAPERSIZE=a4" to
"-sPAPERSIZE=letter"

Click OK and close out the menu.
Now rebuild your latex document, your margins shouls be accurate.

To test your Latex setup, you could use the testflow from Michael Shell
here: http://www.michaelshell.org/tex/testflow/

References:
http://amath.colorado.edu/documentation/LaTeX/reference/faq/a4.html
http://www.michaelshell.org/tex/ieeetran
http://www.linuxquestions.org/questions/linux-software-2/ps2pdf-bounding-box-and-page-size-problem-454441/

4 comments:

Anonymous said...

Thank you so much for the -t letter tip! For some reason, on my old computer (using MikTek 2.7), I was able to get a correct output with only the sPAPERSIZE=letter fix, but the new computer (MikTek 2.9) required the additional -t letter fix for Dvips. You made my day!

-T

Suneil said...

Glad to have been of help :)

Miguel said...

Thanks a lot!! I found several other suggestions online for this problem but none included the -t fix! So grateful!

Anonymous said...

Thank you! This helped me a lot!!