Text FormattingRemoving Headers from Blank Pages

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Removing Headers from Blank Pages

Post by AleCes »

I want to remove headers from blank pages, the even pages are left blank because chapters can only start in odd pages. Do you need a minimal example?

Recommended reading 2024:

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

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

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Removing Headers from Blank Pages

Post by mas »

Of course :-)

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Removing Headers from Blank Pages

Post by Johannes_B »

Yes we do, and you should know this by now. Please take a look at the topic "Remove headers from blank pages". If I remember correctly you are also using fancyhdr, maybe you can adapt the suggestion of Thorsten.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Removing Headers from Blank Pages

Post by localghost »

AleCes wrote:I want to remove headers from blank pages, the even pages are left blank because chapters can only start in odd pages. […]
May I draw your attention to the Forum Search or to the "Similar Topics" on the bottom of this page (only to see when logged in)?


Thorsten
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Removing Headers from Blank Pages

Post by AleCes »

localghost wrote:
AleCes wrote:I want to remove headers from blank pages, the even pages are left blank because chapters can only start in odd pages. […]
May I draw your attention to the Forum Search or to the "Similar Topics" on the bottom of this page (only to see when logged in)?


Thorsten
Oops... :oops: I'm really sorry, I should have done it, but I forgot... :shock: By the way, your solution, localghost, seems to me a bit convoluted, what about emptypage? So, here's my proposed solution:

Code: Select all

\documentclass[a4paper, 12pt]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[CE]{{\leftmark}}
\fancyhead[CO]{{\rightmark}}
\usepackage{fontspec}
\defaultfontfeatures{Style=Alternate, Mapping=tex-text}
\setmainfont{FreeSerif}
\usepackage{polyglossia}
\setmainlanguage{serbian}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{emptypage}
\usepackage{lipsum}

\begin{document}

\chapter{Foo}

\lipsum[1-3]

\chapter{Bar}

\lipsum[4-6]

\chapter{Baz}

\lipsum[7-9]

\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Removing Headers from Blank Pages

Post by localghost »

AleCes wrote:[…] By the way, your solution, localghost, seems to me a bit convoluted, what about emptypage? […]
I would consider my solution not as convoluted. Just redefining the responsible command is straightforward. And I was not aware of emptypage.

And by the way, the package does nothing else. This can be seen from the documented code in its manual. It only uses a helper macro. A method which I would consider far more convoluted. But it does this in order to enable the package options. Nevertheless thank you for the alternative solution.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Removing Headers from Blank Pages

Post by AleCes »

localghost wrote:
AleCes wrote:[…] By the way, your solution, localghost, seems to me a bit convoluted, what about emptypage? […]
I would consider my solution not as convoluted. Just redefining the responsible command is straightforward. And I was not aware of emptypage.

And by the way, the package does nothing else. This can be seen from the documented code in its manual. It only uses a helper macro. A method which I would consider far more convoluted. But it does this in order to enable the package options. Nevertheless thank you for the alternative solution.
By "convoluted" I meant there was so much code to write while emptypage does it in a cleaner and quicker way. As you can see, localghost, I'm not that lazy, sometimes I even find out solutions by myself. ;)
Post Reply