Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Page margins change in pdflatex

I use a style file that specifies page margins. I cannot understand the style file, but I guess it specifies bottom margins by using commands such as \vspace, \vskip, \vfil.

When I compile the tex document with pdflatex the margins, especially the bottom ones, change. When I compile the document first to ps then to pdf, the margins are good.

Do you have any idea, what the reason might be?

The contents of the style file can be accessed from http://tinypaste.com/c53d1

like image 560
Mert Nuhoglu Avatar asked Sep 30 '09 08:09

Mert Nuhoglu


People also ask

How do I fix margins in LaTeX?

The paper size can be set to any size you need by means of the command papersize={⟨width⟩,⟨height⟩} . Here the text area, the left margin and the top margin are set. The right and bottom margins are automatically computed to fit the page.

How do I change the margins for one page in LaTeX?

Use the "geometry" package and write \newgeometry{left=3cm,bottom=0.1cm} where you want to change your margins. When you want to reset your margins, you write \restoregeometry .

How do I change margins in LYX?

Go to Document > Settings > Page Margins. Uncheck "Default Margins" and change them to what you want manually.

Why are the margins so big in LaTeX?

They were designed for handwriting (which is usually much bigger) or for typewriters. Typewriters produced 10 or 12 characters per inch: so on (say) 8.5 inch wide paper, with 1 inch margins, you had 6.5 inches of type, giving ... around 65 to 78 characters: in other words something pretty close to ideal.


1 Answers

Probably because something is defaulting to a page size of 'Letter' and the other path is defaulting to a page size of 'A4' (or vice-versa). You might see if the \documentclass directive in your document allows you to specify page size. If you're using ps2pdf you may also have to specify the output page size. Also, don't forget to specify the destination device (-P IIRC) when using dvips so it renders computer modern fonts correctly in the PDF.

like image 82
ConcernedOfTunbridgeWells Avatar answered Sep 26 '22 01:09

ConcernedOfTunbridgeWells