在书籍类中,我写了一个章节,里面全是好东西,后面是参考书目。参考书目之后是问题和示例部分。我的问题是问题和示例部分继承了参考书目的标题结构,具体来说,它在标题中显示“参考书目”。
我曾尝试将 fancyhdr 包与 \thispagestyle{plain} 一起使用,但它只会更改第一页,而不会将页眉重置为章节的其余部分。
母语:
\documentclass[fleqn]{book}
% General
\usepackage[Bjarne]{fncychap} % Fancy chapter (headings)
\usepackage[bindingoffset=2cm,margin=2cm]{geometry} % Page dimensions
\usepackage{tabto} % Absolute positioning
\setlength{\parskip}{3mm} % Space bn paragraphs
% Bibliography
\usepackage[superscript,biblabel]{cite} % Citation management
\begin{document}
\chapter{It's a Chapter!}
\section{With Some Sections}
\label{sec: With Some Sections}
And text!
I do not clearly remember the arrival of the curate, so that probably I dozed. I became aware of him as a seated figure in soot-smudged shirt sleeves, and with his upturned, clean-shaven face staring at a faint flickering that danced over the sky. The sky was what is called a mackerel sky--rows and rows of faint down-plumes of cloud, just tinted with the midsummer sunset. I sat up, and at the rustle of my motion he looked at me quickly. "Have you any water?" I asked abruptly. He shook his head. "You have been asking for water for the last hour," he said. For a moment we were silent, taking stock of each other. I dare say he found me a strange enough figure, naked, save for my water-soaked trousers and socks, scalded, and my face and shoulders blackened by the smoke. His face was a fair weakness, his chin retreated, and his hair lay in crisp, almost flaxen curls on his low forehead; his eyes were rather large, pale blue, and blankly staring. He spoke abruptly, looking vacantly away from me. "What does it mean?" he said. -- HG Wells \cite{hg11987}
\nocite{hg21987}
\nocite{hg31987}
\clearpage
\raggedbottom
\bibliographystyle{unsrt}
\bibliography{test}
\clearpage
\noindent \textbf{Problems}
\begin{enumerate}
\item Problem One
\item Problem Two
\item Problem Three
\item Problem Four
\item Problem Five
\end{enumerate}
\end{document}
输出结果如下:
答案1
如果您希望参考书目后面的所有页面都有上一章和下一节的标题,您可以添加以下行
\markboth{\MakeUppercase{\chaptername\ \thechapter. \ It's a Chapter!}}%
{\MakeUppercase{\thesection. \ With Some Sections}}
在您的参考书目之后,假设“这是一个章节!”是您最后一章的标题,“包含一些章节”是您最后一章节的标题。
梅威瑟:
\documentclass[fleqn]{book}
% General
\usepackage[Bjarne]{fncychap} % Fancy chapter (headings)
\usepackage[bindingoffset=2cm,margin=2cm]{geometry} % Page dimensions
\usepackage{tabto} % Absolute positioning
\setlength{\parskip}{3mm} % Space bn paragraphs
% Bibliography
\usepackage[superscript,biblabel]{cite} % Citation management
\usepackage{lipsum} % just for the example
\begin{document}
\chapter{It's a Chapter!}
\section{With Some Sections}
\label{sec: With Some Sections}
And text!
I do not clearly remember the arrival of the curate, so that probably I
dozed. I became aware of him as a seated figure in soot-smudged shirt
sleeves, and with his upturned, clean-shaven face staring at a faint
flickering that danced over the sky. The sky was what is called a mackerel
sky--rows and rows of faint down-plumes of cloud, just tinted with the
midsummer sunset. I sat up, and at the rustle of my motion he looked at me
quickly. "Have you any water?" I asked abruptly. He shook his head. "You have
been asking for water for the last hour," he said. For a moment we were
silent, taking stock of each other. I dare say he found me a strange enough
figure, naked, save for my water-soaked trousers and socks, scalded, and my
face and shoulders blackened by the smoke. His face was a fair weakness, his
chin retreated, and his hair lay in crisp, almost flaxen curls on his low
forehead; his eyes were rather large, pale blue, and blankly staring. He
spoke abruptly, looking vacantly away from me. "What does it mean?" he said.
-- HG Wells \cite{hg11987}
\nocite{hg21987}
\nocite{hg31987}
\clearpage
\raggedbottom
\bibliographystyle{unsrt}
\bibliography{test}
\clearpage
\markboth{\MakeUppercase{\chaptername\ \thechapter. \ It's a Chapter!}}%
{\MakeUppercase{\thesection. \ With Some Sections}}
\noindent \textbf{Problems}
\begin{enumerate}
\item Problem One
\item Problem Two
\item Problem Three
\item Problem Four
\item Problem Five
\end{enumerate}
\lipsum[1-10]
\end{document}
输出(参考书目后的页面):