# Different header for odd and even pages with fancyhdr

We are making a book with the document class book. We use the fancyhdr package to customize the headings. We want the book title on LE and the chapter name on RO. We tried

\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection\ #1}}


but now the title is overlapping with the chapter name in the header in odd pages. How can I solve this?

-

## migrated from stackoverflow.comApr 6 '12 at 19:46

This question came from our site for professional and enthusiast programmers.

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LO]{\small IEEE Transactions on Vehicular Technology,~Vol.~7, No.~7, Oct~2011}% odd page header and number to right top
\fancyfoot[L,R,C]{}

-

Have a look over here, section "Selectors". That should let you do something just for odd or even pages.

-
This link helped me fix the issue latex-community.org/forum/viewtopic.php?f=4&t=1357 –  j4v4m4n Oct 26 '10 at 10:30
@j4v4m4n: You should put this down as an answer and accept it, since it's OK to answer your own questions. –  Werner Oct 2 '11 at 2:30