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.

Using fancypages and two-sided documents, I used to set \fancyfoot[LE,RO]{\thepage} to get the page number on the page away from the center. Now that I use the package fncychap it won't work on pages where I start a new chapter because of the style. Can anyone help me edit this somehow?

I am using LyX but am quite used to filling up the preample with LaTeX code.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

(Note: There's no fancypages packages -- because of \fancyfoot, I assume you're using fancyhdr.)

Chaper-starting pages (with or without the fncychap package) use the plain pagestyle, so you have to redefine this style with \fancypagestyle{plain}{<whatever>}.

\documentclass{book}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyfoot{}
\fancyfoot[LE,RO]{\thepage}
\fancypagestyle{plain}{%
  \fancyhead{}%
  \renewcommand*{\headrule}{}%
  \fancyfoot{}%
  \fancyfoot[LE,RO]{\thepage}%
}

\usepackage[Sonny]{fncychap}

\usepackage{lipsum}

\begin{document}

\chapter{foo}

\lipsum[1-12]

\end{document}

enter image description here

share|improve this answer

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.