General ⇒ header question
-
- Posts: 11
- Joined: Wed Nov 21, 2007 1:43 am
header question
I am new to latex. I am using the fancyhdr to customize my header and footer and it is working ok.
How can I put a line in my header as we see in text books?
Thanks in advance.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
header question
Code: Select all
\renewcommand\headrulewidth{1pt}
Code: Select all
\renewcommand\footrulewidth{0.5pt}
Code: Select all
\documentclass{report}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{LEFT}
\chead{CENTER}
\rhead{RIGHT}
\lfoot{left}
\cfoot{\thepage}
\rfoot{right}
\renewcommand\headrulewidth{1pt}
\renewcommand\footrulewidth{0.5pt}
\usepackage{blindtext}
\begin{document}
\Blindtext
\end{document}
-
- Posts: 11
- Joined: Wed Nov 21, 2007 1:43 am
Re: header question
Your example works well also I found another solution using fancyhdr package.