Quantcast
Channel: Rule in the header - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

Answer by Werner for Rule in the header

$
0
0

Perhaps, in an attempt to diagnose the problem prematurely (and too long for a comment without visualization), here's a possible scenario causing the difference in length between the header rule and the text block: Choosing the page style before modifying the page layout dimensions.

In the minimal example below, the page style is set to fancy (from the fancyhdr package) before using geometry to set the page layout.

enter image description here

\documentclass{article}%\usepackage{lipsum}% http://ctan.org/pkg/lipsum\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr\renewcommand{\headrulewidth}{0.4pt}%\pagestyle{fancy}\usepackage{geometry}% http://ctan.org/pkg/geometry\begin{document}\lipsum[1-20]\end{document}

Setting the page style to fancyafter loading geometry yields

enter image description here


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images