# Odd/Even fancy headers with article class

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?

-
Welcome to TeX.sx! –  Kurt Nov 20 '12 at 1:58

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

\documentclass[twoside]{article}

\usepackage{fancyhdr}