Page LayoutProblem with odd and even pages

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
cle
Posts: 2
Joined: Wed May 20, 2009 10:03 am

Problem with odd and even pages

Post by cle »

Hi,
I am typing my thesis using fancyheadings packet and Book documentclass. It appears automatically the heading and page numbering at the even page, even when I have no text for the even page. How to make that even page blank (no line, no heading, no numbering)?
To make the situation clearer, I show here what I used:

Code: Select all

\usepackage{fancyheadings}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{Chapter \thechapter.~\sl#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ \sl #1}}
\lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]{\fancyplain{}{\thepage}}
\cfoot{}\sloppy
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with odd and even pages

Post by localghost »

The fancyheadings package is considered obsolete. For standard classes use fancyhdr or titlesec instead. Other classes may have built-in features.


Best regards and welcome to the board
Thorsten
cle
Posts: 2
Joined: Wed May 20, 2009 10:03 am

Problem with odd and even pages

Post by cle »

localghost wrote:The fancyheadings package is considered obsolete. For standard classes use fancyhdr or titlesec instead. Other classes may have built-in features.


Best regards and welcome to the board
Thorsten
Thanks Thorsten.
I didn't know that fancyheadings is obsotete, however now I can solve my problem by reading the guidance from fancyhdr.
I just add the following paragraph:

Code: Select all

\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  \hbox{}
  \vspace*{\fill}
    \vspace{\fill}
  \thispagestyle{empty}
  \newpage
  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
and it works now.
Thanks again.
Post Reply