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.

It's pretty well-known how to increase the headrule width, but how do I increase its length (i.e. let it run into the margin).

share|improve this question
3  
according to the fancyhdr manual \fancyhfoffset[L]{1cm} will make the header stick out an extra cm on the left –  David Carlisle Mar 27 '12 at 15:13

1 Answer 1

Use the following command in your defs:

\fancyheadoffset{\textwidth}

Working example:

\documentclass{article}

\usepackage{lipsum}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\fancyheadoffset{\textwidth}

\begin{document}
\lipsum
\end{document}

MWE \fancyheadoffset{\textwidth}

share|improve this answer
    
You might mention also the optional argument to add to the width only on one side. –  egreg Mar 27 '12 at 16:04
2  
As well, you are adding \textwidth length at an inappropriate place. Try to add \usepackage[textwidth=2.7in]{geometry} before the \fancy... commands: you get a different result (the line is not across the whole page). –  tohecz Mar 27 '12 at 17:23

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.