Document Classes ⇒ Doublesided document - blank pages
Doublesided document - blank pages
I am using \documentclass[12pt,a4paper]{book} with fancyheader.
Now I have exactly the problem mentioned in the documentation of fancyheader, namely that the final (empty) pages of a chapter contain the header - which I don't want. I thought I did what the documentation says, i.e. add \clearpage{\pagestyle{empty}\cleardoublepage},
but that didnt help.
My fancyheader specification now looks as follows and shows what happens:
\documentclass[12pt,a4paper]{book}
\usepackage[paper=a4paper,left=35mm,right=25mm,top=25mm,bottom=25mm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{\small \bfseries \thechapter.\ #1}{}}
\fancyhead[RE, LO]{\leftmark}
\fancyhead[LE, RO]{\small \thepage}
\clearpage{\pagestyle{empty}\cleardoublepage}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.8pt}
\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[C]{\small \thepage}
\renewcommand{\headrulewidth}{0pt}}
\newcommand{\setof}[1]{\ensuremath{\left \{ #1 \right \}}}
\makeatletter
\def\@makechapterhead#1{%
{\parindent \z@ \raggedright \reset@font
{\huge \bfseries \thechapter\ \ \huge \bfseries #1\par\nobreak}
\vskip 20\p@ }}
\begin{document}
\def\chaptername{}
\chapter{Test first chapter}
\section{Text}
texttexttexttexttexttexttexttexttexttexttexttexttexttexttext
\chapter{Test second chapter}
\end{document}
Can anybody help me there?
Thanks!
Bettina
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Doublesided document - blank pages
\clearpage{\pagestyle{empty}\cleardoublepage} hast to be written directly before calling the next \chapter, not inside the preamble:
Code: Select all
\section{Text}
texttexttexttexttexttexttexttexttexttexttexttexttexttexttext
\clearpage{\pagestyle{empty}\cleardoublepage}
\chapter{Test second chapter}
Re: Doublesided document - blank pages
Re: Doublesided document - blank pages
any suggestions?
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Doublesided document - blank pages
welcome to the LaTeX Community Forum! Feel free to open new threads for questions.
You could use the openany Option for your documentclass, for example:
Code: Select all
\documentclass[a4paper,10pt,openany]{book}