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.

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}}
%\fancyhead{} % clear all header fields
\fancyhead[LE]{This is book title}
\fancyhead[RO]{\emph{\thechapter}}

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

share|improve this question

migrated from stackoverflow.com Apr 6 '12 at 19:46

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

2 Answers 2

\usepackage{fancyhdr}
\pagestyle{fancy}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% The paper headers
\fancyhead[RO,LE]{\small\thepage}
\fancyhead[LO]{\small IEEE Transactions on Vehicular Technology,~Vol.~7, No.~7, Oct~2011}% odd page header and number to right top
\fancyhead[RE]{\small ElBadawy H., \textit{Performability Modeling}}%Even page header and number at left top
\fancyfoot[L,R,C]{}
\renewcommand{\headrulewidth}{0pt}% disable the underline of the header part
share|improve this answer

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

share|improve this answer
    
This link helped me fix the issue latex-community.org/forum/viewtopic.php?f=4&t=1357 –  j4v4m4n Oct 26 '10 at 10:30
1  
@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

Your Answer

 
discard

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