Como adicionar o título do capítulo e o número da página em uma página em branco?

Como adicionar o título do capítulo e o número da página em uma página em branco?

Estou trabalhando em um relatório onde há uma página em branco no final de um capítulo. A página em branco contém o título do capítulo atual e o número da página no topo da página, assim:

página vazia

Como posso implementar isso?

Responder1

Este é o padrão para bookwith twoside(padrão) se a última página de um capítulo terminar em uma página direita (ímpar):

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

ou para reportcom explícito twosidee 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 um só lado, não faria sentido.

Ou use outro arquivo de demonstração com classe booke um capítulo chamado »chap_name« com cinco seções seguidas por uma página em branco e outro 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}

ou o mesmo com class 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 os resultados em (apenas as páginas 2–5 são mostradas):

insira a descrição da imagem aquiinsira a descrição da imagem aqui

Responder2

Este código tex exibe uma página vazia com o cabeçalho do capítulo e o número da página:

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

\begin{document}

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

\chapter{Second chapter}
Some text

\end{document}

O que você tentou que não funcionou?

informação relacionada