Tuesday, May 26, 2009

Handling margin in LaTex

These days I suffered from disgusting margin issue when I was preparing a paper submission using LaTex + WinEdt (Windows XP). The generated pdf file has very narrow top margin but very wide bottom margin......

I first checked the dvi format and ps format, they are correct, so I guess something happens when ps format is converted to pdf format. After searching the internet, I think the main problem is the paper size. if I force the ps2pdf to use a4/letter paper, the generated pdf should be correct.

Configure WinEdt:
go to Option - > Execution Modes - > choose dvi2ps or dvi2pdf or ps2pdf from accessories and choose a4/letter in Paper size and Orientation (remember apply to all). Done!

p.s. if you use command instead of a GUI like WinEdt, you can use the command when you convert ps to pdf:
ps2pdf -sPAPERSIZE#a4 name.ps name.pdf

No comments:

Post a Comment