[XeTeX] page numbering using fancychap with Glenn option and no footer

Daniel Greenhoe dgreenhoe at gmail.com
Sat Dec 3 13:04:49 CET 2011


When using the fancychap package with the "Glenn" option and *no
footer*, there seems to be a minor problem:
When starting a new chapter, the package still attempts to put a page
number in the footer even though there is supposed to be no footer.

Besides the brute-force solution of placing "\thispagestyle{empty}"
with every chapter declaration (or an equivalent "\newchapter" macro
solution), is there any more "elegant" solution to the problem?
Shouldn't this be considered as a bug in the fancychap code?

Here is an example (see attachments also):

\documentclass{book}
\usepackage[Glenn]{fncychap}
\usepackage{fancyhdr}
\usepackage{geometry}
\geometry{
  xetex,paper=a4paper,
  centering,twoside,
  includehead,nofoot,
  margin=15mm,
  nomarginpar,
  showframe
  }
\fancyhf[HER,HOL]{}
\fancyhf[HOC,HEC]{}
\fancyhf[HOR,HEL]{page \thepage}
\fancyhf[FOL,FER]{}
\fancyhf[FOC,FEC]{}
\fancyhf[FOR,FEL]{}
\begin{document}%
\chapter{This Chapter}
%\thispagestyle{empty}
\ldots first page \ldots
\clearpage \ldots second  page \ldots
\clearpage \ldots third   page \ldots
\clearpage \ldots forth   page \ldots
\clearpage \ldots fifth   page \ldots
\clearpage \ldots sixth   page \ldots
\clearpage \ldots seventh page \ldots
\clearpage \ldots eigth   page \ldots
\end{document}%

Many thanks in advance,
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glenn.tex
Type: application/x-tex
Size: 950 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111203/0b2798de/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glenn.pdf
Type: application/pdf
Size: 11586 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111203/0b2798de/attachment.pdf>


More information about the XeTeX mailing list