# Recall chapter title after plates

I'd like to generate a catalogue of objects; after each section of the catalogue I'd like to print the plates which show those objects. However, printing the plates with the plates package means the running chapter title is changed permanently to plates. How can I easily get it back to catalogue?

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


Add the following lines in your preamble, so that plates doesn't redefine the headings.

\usepackage{etoolbox}
\patchcmd{\processplates}
{\markboth{\uppercase{\platesection}}{\uppercase{\platesection}}}
{\relax}
{}
{}


MWE:

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


Output:

• Many thanks for your answer! Works perfectly. – alice19 Mar 22 '15 at 12:16
• @marcellinus12 You're welcome. – karlkoeller Mar 22 '15 at 16:05
• @marcellinus12 BTW, since it works perfectly, any reason for not accepting it? – karlkoeller Mar 22 '15 at 16:06