Is there any way to create a (multiline!) header on odd pages and no header at all on even pages?
It should look like this:
My code so far:
\documentclass[a4paper, twoside, 12pt]{article} \usepackage[utf8]{inputenc} \usepackage[a4paper, includeheadfoot, left=2cm, top=2cm, right=2cm, bottom=2cm]{geometry} \usepackage{fancyhdr} \usepackage{etoolbox} \usepackage{ifthen} \usepackage{showframe} \fancyhead{} \fancyhead[ol]{COURSE} \fancyhead[or]{ \begin{tabular}{ c c } NAME & NO \\ NAME1 & xxx \\ NAME2 & yyy \\ \end{tabular} } \begin{document} ... \end{document}
My issues:
(1) Fancyhdr warning: \headheight is too small.
The first page is messed up because the \headheight is by default 12pt but should be 44pt in this case. Is there any way to calculate this automatically? I would like to avoid typing "44pt" manually.
(2) Even pages leave empty space for headers and include a horizontal rule.
Even though the header on even pages is empty, the space is not available for the text. I would like to start the text immediately after the 2cm margin so that no trace of the header is left on even pages.
I've been looking for a solution to this simple problem for hours now and any help would be appreciated!
EDIT: I don't care about the footer, it would be nice to have the option to include or disable page numbers as well.