I'm trying to make a very simple header like this :
(left) xxxxx (right) yyyyyyyy
(center) zzzzzzz
I'm using fancyhdr.
The problem is that I don't know how to write something under the headrule...
Do you have any ideas ?
Thank you

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
{tabular}
environment in the header with \hrule
between the rows.Code: Select all
\documentclass{article}
\usepackage{showframe}% visualize the page dimensions
\usepackage{tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
\begin{document}
\noindent
\begin{tabularx}{\linewidth}{@{}LCR@{}}
left & centered & right
\end{tabularx}
\end{document}
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