So I'm working on a book, my document type is article
and I used fancyhdr
to customize my header.
- I want the section name in the right of the header on even page numbers.
- I want the subsection name in the left of the header on odd page numbers.
The subsection name appears perfectly fine on the left of the header on odd page numbers. My problem is with the section name that didn't appear at all. Here's what I have on the preamble:
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RO,LE]{\thepage}
\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}
\documentclass[twoside]{article}
?\documentclass
through\end{document}
. Then we wouldn't have to ask if you were usingtwoside
, among other things.