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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Use the following command in your defs:


Working example:





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
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). – yo' Mar 27 '12 at 17:23

Your Answer


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.