Commit 2e0620c7 authored by pknaggs's avatar pknaggs

Updated \annex to accept an optional argument of a "short toc text"

parent b0220f67
......@@ -1302,20 +1302,21 @@
{\normalfont\normalsize\bfseries}
}
\newcommand{\annex}[1]{%
\newcommand{\annex}[2][\empty]{%
\refstepcounter{chapter}
\begin{center}
\normalfont\Large
{\bfseries Annex \thechapter} \\
(informative) \\
{\bfseries #1}
{\bfseries #2}
\end{center}
\chaptermark{#1}
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}
\ifx\empty#1 \def\tmp@a{#2}\else\def\tmp@a{#1}\fi
\chaptermark{\tmp@a}
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}\tmp@a}
%
% Set up variables for \label
\def\@currentlabel{\thechapter}%
\edef\@currentlabelname{#1}%
\edef\@currentlabelname{\tmp@a}%
}
\newcommand{\patch}[1]{% {<name>}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment