Page Layoutgeometry | Seemingly incorrect Margins

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
eggmanneo
Posts: 10
Joined: Wed Apr 21, 2010 9:03 pm

geometry | Seemingly incorrect Margins

Post by eggmanneo »

I'm trying to have my document have one inch margins with the geometry package in latex. I don't have headers or footers besides with page numbers at the bottom. I write this in the preamble

Code: Select all

\usepackage[margin=1in,nohead]{geometry}
However, I print this out and measure the margins but the margin's don't seem quite right. They seem a bit bigger than 1in (between a 1/16 and 1/8 inch bigger). Why is geometry not giving me exactly the right margins?

PS, I also have \pagestyle{plain} used for the main parts of my document
Last edited by Stefan Kottwitz on Tue Feb 28, 2012 9:13 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: geometry | Seemingly incorrect Margins

Post by Stefan Kottwitz »

Hi,

in which way do you compile? Du you use pdfLaTeX, i.e. compile directly to PDF, or LaTeX in DVI mode, producing a DVI file and then running dvips and ps2pdf or dvipdfmx or similar?
If you produce a DVI file, print this first and check the margins. Perhaps the conversion produces the error.

However, it's also possible that your printer driver settings produce the different margin.

Stefan
LaTeX.org admin
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Re: geometry | Seemingly incorrect Margins

Post by hugovdberg »

Also with PDF it might be the scaling (don't know for DVI), as many (if not most) PDF-viewers by default do "Shrink to printable area". Even when your content may fit perfectly well on the paper I've noticed unnecessary shrinking sometimes.
EDIT: also the auto rotate and center does not always work as expected, that is worth trying as well.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
eggmanneo
Posts: 10
Joined: Wed Apr 21, 2010 9:03 pm

Re: geometry | Seemingly incorrect Margins

Post by eggmanneo »

The problem was the option "fit to printable area." When I switched page scaling to "none," the margins on the printout were one inch. Thank you!
jota
Posts: 2
Joined: Sun Oct 28, 2012 7:49 pm

Re: geometry | Seemingly incorrect Margins

Post by jota »

I have the same problem. I'm using an article template and when winEdt compiles to pdf it seems to change the margins. When it compiles to dvi doesn't do this.

Can you explain to me where i find the option "fit to printable area" ?

I couldn't find it.

Thanks in advance and sorry for my english.

J.-
Last edited by jota on Tue Nov 06, 2012 3:19 pm, edited 1 time in total.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

geometry | Seemingly incorrect Margins

Post by meho_r »

jota wrote:I have the same problem. I'm using an article template and when winEdt compiles to pdf it seems to change the margins. When it compiles to dvi doesn't do this.

Can you explain to me where i find the option "fit to printable area" ?

I couldn't find it.

Thanks in advance and sorry for my english.

J.-
"Fit to printable area" or "Shrink to printable area" is an option for Page Scaling in PDF viewers and it's usually located in the "Print" dialog. If you're using Adobe Reader, go to File > Print, and somewhere around the middle of the window you'll notice "Page scaling" option. It is always a good idea to check this option prior to printing, since scaling the page might result in smaller page, smaller fonts etc., which is more often than not an unwanted result. Setting "Page Scaling" to "None" solves this.
jota
Posts: 2
Joined: Sun Oct 28, 2012 7:49 pm

Re: geometry | Seemingly incorrect Margins

Post by jota »

Thanks for your time.

I hadn't realized i had to re print the pdf to view the correct margins.

J.-
Post Reply