How can I can have centered chapter title on odd pages, and centered section title on even pages?

  • Use e.g. \fancyhf[coh]{odd header}\fancyhf[ceh]{even header}. – cfr Nov 4 '14 at 19:40
  • That did not work for me. – blackened Nov 4 '14 at 19:53
  • 1
    I'm glad you have an answer but next time, please provide an MWE. 'Doesn't work' is singularly unhelpful. It could mean just about anything from your computer exploding to the dog eating the plug to successful compilation but with unexpected or undesired output. – cfr Nov 4 '14 at 23:46

I would suggest using the interface provided by titleps, which easily captures the section unit titles. The change in interface from fancyhdr is described in titleps for fancyhdr users:

enter image description here

  \sethead[\thepage]% <even left head>
    [\thesection.\ \sectiontitle]% <even centre head>
    []% <even right head>
    {}% <odd left head>
    {\thechapter.\ \chaptertitle}% <odd centre head>
    {\thepage}% <odd right head>



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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