I am writing a document for which I need the margin to be exactly as follows: left, right, top and bottom text margin all equal to 1in, distance from bottom of the paper to page number equal to 0.75in (I don't have any footnote or header to set).

I tried to use the fullpage package in LaTeX but it does not give me the 0.75in to the page number. Is there a way to force that? I tried to set manually the margins for a 8.5x11 paper but I am not succeeding.

I tried but after writing:


I get the error message \paperwidth (0.0pt) too short.

I don't see the \paperwidth is set to 0.0pt anywhere though..

Also it seems to me that depending on which machine I use to compile my tex file, I get different margins, even when I set them up manually (without using geometry). Is it possible?

Using the geometry package things seem to work a bit better now (I changed machine and the problem with the paper width previously mentioned disappeared).


gives me without problem upper, right and left margin of 1in. But the lower margin is 1.2in and I can't change it to be 1in even by using bottom=1in or bottom=0.8in. I really don't see how this can happen. Maybe a problem with the spacing between lines? The class files I am using can be fund at http://www.math.ucla.edu/help/tex/uclathes/

I erased the margin settings of uclath12.clo as the margin I need are different from the ones that this file gives. Thank you.

  • 16
    You should try the geometry package. For example \usepackage[margin=1in]{geometry} provides a left/right/top/bottom margin of 1in.
    – Werner
    Commented Feb 29, 2012 at 0:19
  • 1
    Please provide class_file.cls if you're allowed.
    – Chel
    Commented Feb 29, 2012 at 17:05
  • @David I realize this is a fairly old post but I'm facing the exact same problem. Would you mind sharing the uclath12.clo that you changed (or the way you changed it) so I don't have to figure it out all myself? Much appreciated!
    – jan
    Commented Mar 29, 2016 at 8:02
  • Please note that you should not mix usepackage fullpage with usepackage geometry. Using fullpage will force the margins.
    – Blake
    Commented Aug 14, 2022 at 11:44

5 Answers 5


You can use geometry package.














% In the middle if you want to change the margins use





%to restore old margins, use



  • 2
    Thank you for mentioning the \newgeoemtry macro, I was looking for that! Commented Oct 22, 2021 at 3:58

The problem is that, in your TeX file, there is no indication of paper size. So you can add the a4paper option for instance to your geometry package option list like this:


or you can specify it in your document class options.

  • If anyone has this issue with a custom, university-provided document class, one can reasonably question what they were thinking when designing the document class without providing a somewhat more reasonable default paper width...
    – Egor Hans
    Commented Feb 18, 2020 at 18:51

Expanding on Werner's comment, to get the page number's baseline 0.75 in above the page's bottom edge, use footskip:



With geometry package:

\usepackage[nohead, nomarginpar, margin=1in, foot=.25in]{geometry}

Or without a package:

\pdfpagewidth 8.5in
\pdfpageheight 11in
\headheight 0pt
\headsep 0pt
\footskip .25in
\marginparwidth 0pt
\marginparsep 0pt
\oddsidemargin \dimexpr 1in -1in
\topmargin \dimexpr 1in -1in
\textwidth \dimexpr \pdfpagewidth -2\oddsidemargin -2in
\textheight \dimexpr \pdfpageheight -2\topmargin -2in
  • 1
    I wouldn't recommend to do margins by hand, geometry does a fine job.
    – Johannes_B
    Commented Mar 20, 2016 at 15:58
  • Also, that is not the way you set lengths in LaTeX, but plain.
    – Johannes_B
    Commented Mar 20, 2016 at 15:59

Don't know if this is the most efficient way but this worked for me


In short \voffset is the distance from top of the page to the bottom of header portion \textheight is the total height of main text.

See this page for full understanding of above variables.

  • \voffset should be reserved for special printing purposes, such as cropping.
    – cabohah
    Commented Aug 30, 2023 at 7:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .