我想生成一个物品目录;在目录的每个部分之后,我想打印显示这些物品的图版。但是,使用包装打印图版plates
意味着正在运行的章节标题将永久更改为盘子。我怎样才能轻松地将其恢复到目录?
\documentclass{thesis}
\usepackage{plates}
\usepackage{blindtext}
\begin{document}
\chapter{Catalogue}
\blindtext
\newpage
\subsection{Items of Type A}
\blinddescription
\begin{plate}
\caption{Plate caption.}
\label{Plate:1}
\end{plate}
\ProcessPlates
\cleardoublepage
\subsection{Items of Type B}
\blinddescription
\begin{plate}
\caption{Plate caption.}
\label{Plate:1}
\end{plate}
\ProcessPlates
\cleardoublepage
\end{document}
答案1
在您的序言中添加以下几行,这样plates
就不会重新定义标题。
\usepackage{etoolbox}
\patchcmd{\processplates}
{\markboth{\uppercase{\platesection}}{\uppercase{\platesection}}}
{\relax}
{}
{}
梅威瑟:
\documentclass{thesis}
\usepackage{plates}
\usepackage{blindtext}
\usepackage{etoolbox}
\patchcmd{\processplates}
{\markboth{\uppercase{\platesection}}{\uppercase{\platesection}}}
{\relax}
{}
{}
\begin{document}
\chapter{Catalogue}
\blindtext
\newpage
\subsection{Items of Type A}
\blinddescription
\begin{plate}
\caption{Plate 1 caption.}
\label{Plate:1}
\end{plate}
\ProcessPlates
\cleardoublepage
\subsection{Items of Type B}
\blinddescription
\begin{plate}
\caption{Plate 2 caption.}
\label{Plate:2}
\end{plate}
\ProcessPlates
\cleardoublepage
\end{document}
输出: