Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

\documentclass[PhD]{class_file}
\usepackage[margin=1in,footskip=0.25in]{geometry}

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).

\usepackage[margin=1in,footskip=0.25in]{geometry}

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.

share|improve this question
10  
You should try the geometry package. For example \usepackage[margin=1in]{geometry} provides a left/right/top/bottom margin of 1in. –  Werner Feb 29 '12 at 0:19
    
Please provide class_file.cls if you're allowed. –  rdhs Feb 29 '12 at 17:05

3 Answers 3

You can use geometry package.

\documentclass[12pt,english]{article}
\usepackage[a4paper,bindingoffset=0.2in,left=1in,right=1in,top=1in,bottom=1in,footskip=.25in]{geometry}
\usepackage{blindtext}
%================================
\begin{document}
\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext

\blindtext
%In the middle if you want to change the margins use
{\newgeometry{left=0.8in,right=0.8in,top=1in,bottom=1in}

\blindtext

\blindtext

\blindtext

\blindtext

%to restore old margins, use
\restoregeometry

\blindtext
%===============================
\end{document}
share|improve this answer

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

\documentclass[letterpaper]{article}
\usepackage[margin=1in,footskip=0.25in]{geometry}

\begin{document}
Lipsum
\end{document}
share|improve this answer

The problem is where in your tex file, there is no indiction of paper size. So you can add a4paper option to your geometry package option list like this:

\usepackage[a4paper,margin=1in,footskip=0.25in]{geometry}

or you can specify it in your document class options.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.