¿Cómo agregar el título del capítulo y el número de página en una página en blanco?

¿Cómo agregar el título del capítulo y el número de página en una página en blanco?

Estoy trabajando en un informe donde hay una página en blanco al final de un capítulo. La página en blanco contiene el título del capítulo actual y el número de página en la parte superior de la página, así:

pagina vacia

¿Cómo puedo implementar esto?

Respuesta1

Este es el valor predeterminado para bookcon twoside(predeterminado) si la última página de un capítulo termina en una página derecha (impar):

\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}

o para reportcon explícito twosidey openrightestilo de página 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}

Para documentos de una sola cara no tendría sentido.

O usar otro archivo de demostración con clase booky un capítulo llamado »chap_name« con cinco secciones seguidas de una página en blanco y otro capítulo:

\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}

o lo mismo con la clase 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}

ambos resultados en (solo se muestran las páginas 2 a 5):

ingrese la descripción de la imagen aquíingrese la descripción de la imagen aquí

Respuesta2

Este código tex muestra una página vacía con el encabezado del capítulo y el número de página:

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

\begin{document}

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

\chapter{Second chapter}
Some text

\end{document}

¿Qué intentaste que no funcionó?

información relacionada