Wie füge ich auf einer leeren Seite einen Kapiteltitel und eine Seitenzahl hinzu?

Wie füge ich auf einer leeren Seite einen Kapiteltitel und eine Seitenzahl hinzu?

Ich arbeite an einem Bericht, bei dem sich am Ende eines Kapitels eine leere Seite befindet. Die leere Seite enthält oben auf der Seite den aktuellen Kapiteltitel und die Seitenzahl wie folgt:

leere Seite

Wie kann ich das umsetzen?

Antwort1

Dies ist die Vorgabe für bookmit twoside(Standard), wenn die letzte Seite eines Kapitels auf einer rechten (ungeraden) Seite endet:

\documentclass{book}

\usepackage{blindtext}% used for demonstration only

\begin{document}
\chapter{This is the first chapter}
\blindtext% used for demonstration only

\chapter{This is the second chapter}
\blindtext% used for demonstration only

\blinddocument% used for demonstration only
% Here we will not have a blank page, because the chapter ends on left (even) side
\blinddocument% used for demonstration only
\end{document}

oder für reportmit explizitem twosideund openrightSeitenstil headings:

\documentclass[twoside,openright]{report}% options needed for the blank left pages before a new chapter on a right page

\usepackage{blindtext}% used for demonstration only
\pagestyle{headings}

\begin{document}% used for demonstration only
\chapter{This is the first chapter}
\blindtext% used for demonstration only

\chapter{This is the second chapter}
\blindtext% used for demonstration only

\blinddocument% used for demonstration only
\end{document}

Bei einseitigen Dokumenten wäre dies nicht sinnvoll.

Oder verwenden Sie eine andere Demonstrationsdatei mit Klasse bookund einem Kapitel namens »chap_name« mit fünf Abschnitten, gefolgt von einer leeren Seite und einem weiteren Kapitel:

\documentclass{book}
\usepackage{lipsum}% used for demonstration only

\begin{document}
\chapter{chap\_name}
\lipsum[1]% used for demonstration only

\section{First Section}
\lipsum[2]% used for demonstration only

\section{Second Section}
\lipsum[3]% used for demonstration only

\section{Third Section}
\lipsum[4]% used for demonstration only

\section{Fourth Section}
\lipsum[5-10]% used for demonstration only

\section{Fifth Section}
Next page will be blank but with running head.

\chapter{This is the second chapter}
\lipsum[6]% used for demonstration only

\end{document}

oder dasselbe mit Klasse report:

\documentclass[twoside,openright]{report}% options are need for the empty page before the second chapter
\usepackage{lipsum}% used for demonstration only

\pagestyle{headings}% needed to have automatic running heads (default of report would be page style plain that shows only page numbers)

\begin{document}
\chapter{chap\_name}
\lipsum[1]% used for demonstration only

\section{First Section}
\lipsum[2]% used for demonstration only

\section{Second Section}
\lipsum[3]% used for demonstration only

\section{Third Section}
\lipsum[4]% used for demonstration only

\section{Fourth Section}
\lipsum[5-10]% used for demonstration only

\section{Fifth Section}
Next page will be blank but with running head.

\chapter{This is the second chapter}
\lipsum[6]% used for demonstration only

\end{document}

beide Ergebnisse (nur Seite 2–5 angezeigt):

Bildbeschreibung hier eingebenBildbeschreibung hier eingeben

Antwort2

Dieser Tex-Code zeigt eine leere Seite mit der Kapitelüberschrift und der Seitenzahl an:

\documentclass[12pt,a4paper]{report}
\pagestyle{headings}

\begin{document}

\chapter{Chapter title}
Some text
\newpage\phantom{}

\chapter{Second chapter}
Some text

\end{document}

Was haben Sie versucht, das nicht funktioniert hat?

verwandte Informationen