Page Layout ⇒ Need help on line alignment of multi-line headers
Need help on line alignment of multi-line headers
Currently in my document I have:
\documentclass[11pt,a4paper]{article}
\usepackage{fancyhdr}
\thispagestyle{fancy}
\lhead{l-line1 \\ l-line2 \\ l-line3 \\ l-line4 \\ l-line5}
\chead{c-line1}
\rhead{r-line1 \\ r-line2 \\ r-line3 \\ r-line4 \\ r-line5 \\ r-line6}
LaTeX aligns each header from the bottom-most line so that the header is flush with the header decorative line.
What I would like in my document is for the top-most line in the header to be \chead{c-line1}, and then on the next line down, l-line1 and r-line1 to be on the same line. And similarly for l-line2 and r-line2, l-line3 and r-line3 etc.
So it would look something like (note the backslashes are to be viewed as empty space):
\\\\\\\ c-line1
l-line1 \\\\\\\ r-line1
l-line2 \\\\\\\ r-line2
l-line3 \\\\\\\ r-line3
l-line4 \\\\\\\ r-line4
l-line5 \\\\\\\ r-line5
\\\\\\\\\\\\\\\\ r-line6
------------------------
Any help is greatly appreciated.
Thank you for reading,
b.
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
Need help on line alignment of multi-line headers
Code: Select all
\lhead{l-line1 \\ l-line2 \\ l-line3 \\ l-line4 \\ l-line5\\}
\chead{c-line1\\~\\~\\~\\~\\}
\rhead{r-line1 \\ r-line2 \\ r-line3 \\ r-line4 \\ r-line5 \\ r-line6}
Code: Select all
\lhead{l-line1 \\ l-line2 \\ l-line3 \\ l-line4 \\ l-line5\\}
\chead{c-line1\vspace{5.0\baselineskip}}
\rhead{r-line1 \\ r-line2 \\ r-line3 \\ r-line4 \\ r-line5 \\ r-line6}