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 trying to create a page border that encapsulates the header and footer not just the body of a TeX document.

Here is what i've got:

\documentclass[a4paper]{article}

\usepackage[a4paper,vmargin={20mm,20mm},hmargin={20mm,20mm}, includehead, includefoot]{geometry}
\usepackage{fancybox}

\begin{document}

\fancypage{\setlength{\fboxsep}{0pt}\fbox}{}

Document text goes here...

\end{document}

When I take out the includehead and includefoot tags the border stays at 2cm on all sides but page numbers are still on the outside of the border. When I include these tags page numbers stay on the outside and the border on top/bottom is no longer 20mm. I theorise that this is due to header/footer. Any pointers?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

try this \fancypage{}{\fbox}

share|improve this answer
    
Excellent. thanks –  klonq Jul 4 '11 at 14:15

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.