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.

How can I modify the page numbers to have a different SIDE margin. I've got the vertical margin set right but my advisor wants my page numbers for the thesis 0.5" from both top and side edge (1" margin for the text). I'm using LyX.

share|improve this question

1 Answer 1

this works for me

\usepackage{fancyhdr}
\fancyhf{}  % Delete current setting for header and footer

\fancypagestyle{main}{% page style for normal pages
  \fancyhfoffset[R]{0.5in}
  \fancyhead[R]{\thepage}
  \renewcommand{\headrulewidth}{0pt}
  \renewcommand{\footrulewidth}{0pt}
}

\fancypagestyle{plain}{
  \fancyhfoffset[R]{0.25in}
  \fancyhead{}  % Get rid of headers and footers on plain pages...
  \fancyfoot[C]{\thepage}
  \renewcommand{\headrulewidth}{0pt}  % ...and of the lines
  \renewcommand{\footrulewidth}{0pt}
}

\fancypagestyle{empty}{
  \fancyhead{}  % Get rid of headers and footers on empty pages...
  \fancyfoot{}
  \renewcommand{\headrulewidth}{0pt}  % ...and of the lines
  \renewcommand{\footrulewidth}{0pt}
}

Thanks to a response here

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.