Change Page Size in Latex
Goal: The output of the latex on my machine is alway A4, I want to change it to USletter format. There must be more than one way to do this. But I only find one. The solution was found here.
1. install the vmargin package.
2. In pdftex.cfg ($TEXBASE/texmf/pdftex/config/pdftex.cfg) remove or modify the lines:
page_width 210truemm
page_height 297truemm
So that they correspond to your desired default pagesize. An example entry for letter sized paper would read: page_width 8.5truein
page_height 11.0truein
3. Additionally in the Vmargin style file ($TEXBASE/texmf/tex/latex/misc/Vmargin.sty) at or around line 225 you should change the following default settings so that they reflect the correct default paper size and margins: \setpapersize{A4}
\setmarginsrb{35mm}{20mm}{25mm}{15mm}{12pt}{11mm}{0pt}{11mm}
Change it to :
\setpapersize{USletter}
\setmarginsrb{1in}{1in}{1in}{1in}{0pt}{0mm}{0pt}{0mm}
Will set up the default page layout to be the standard USLetter (8.5x11.0in) with 1 inch margins and no headers or footers.
It should be noted that for some reason calls to \setpapersize{} that are made within the document seem to be ignored by pdflatex. Even so, it is advised that you include a proper \setpagesize{} and \setmarginsrb{} call so that pagesize can be controlled when building documents with the standard latex package.

2 Comments:
How about \documentclass[letterpaper]{article} ? Be sure to check out The Not so Short Guide To LaTeX (http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf), LaTeX Tutorials--A Primer (http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ltxprimer-1.0.pdf) and the TeX FAQ (http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes)
He missed the cut at the Buick Invitational, which he won in 2004 in another one of his comebacks, and didn't make it to the weekend at the FBR Open in Phoenix. sports But that's a good thing. In the past 10 years, we've seen two types of players with completely different ways to play golf, said Sean Toulon, executive vice president for product creation at TaylorMade. … I want to see what I'm capable of, says Daly, a five-time winner with two majors, the other being the 1995 British Open.
Post a Comment
<< Home