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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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.