Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using fancyhdr and the book class, one can set different headers/footers for odd/even pages as

\fancyhdr[RO]{foo}
\fancyhdr[LE]{bar}

and so on. How can I achieve the same with an article class, where things are not two sided?

share|improve this question
    
Welcome to TeX.sx! –  Kurt Nov 20 '12 at 1:58

1 Answer 1

up vote 7 down vote accepted

The article class defaults to a simple oneside document. You can load it with the twoside option

\documentclass[twoside]{article}

\usepackage{fancyhdr}
\fancyhead[LE,RO]{foo}
\fancyhead[LO,RE]{bar}
\pagestyle{fancy}
\usepackage{lipsum}

\begin{document}

\lipsum
\lipsum
\lipsum

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.