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.

I'm using documentclass report with options twoside and openright. The pagestyle is headings. This is a minimal working example:

\documentclass[twoside,openright]{report}
 \usepackage{blindtext}
 \pagestyle{headings}
 \begin{document}
  \chapter{Chapter}
   \blindtext \blindtext
   \section{Section}
    \blindtext \blindtext
 \end{document}

Why is the page number at the first page of the chapter centered at the bottom and not on the right even though the document style headings works on all other pages? How to move the page number on the first page of a chapter to the right side as it should be using the document option openright?

share|improve this question
3  
\chapter issues \thispagestyle{plain}. –  egreg May 3 '12 at 12:28
    
Possible duplicate of page number position. –  Stephan Lehmke May 3 '12 at 12:40
add comment

1 Answer

up vote 3 down vote accepted

By default the pages where chapters start are decorated with page style plain. That is why you get that behavior. If you want to change it, you have to redefine the page style plain like :

\documentclass[twoside,openright]{report}
 \usepackage{blindtext}
 \pagestyle{headings}

  \makeatletter
 \let\ps@plain\ps@headings
 \makeatother

 \begin{document}
  \chapter{Chapter}
   \blindtext \blindtext
   \section{Section}
    \blindtext \blindtext
 \end{document}
share|improve this answer
    
thanks, that worked :-) –  vertoe May 3 '12 at 12:34
add comment

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.