Skip to content
Snippets Groups Projects
Commit 42a00a3d authored by Jannik Dunkelau's avatar Jannik Dunkelau
Browse files

Add appendix sections to header marks

parent 768554c0
No related branches found
No related tags found
No related merge requests found
...@@ -156,10 +156,16 @@ ...@@ -156,10 +156,16 @@
\let\section\appendix@section \let\section\appendix@section
} }
\newcommand{\appendixpagename}{\iflanguage{ngerman}{Anhang}{Appendices}} \newcommand{\appendixpagename}{\iflanguage{ngerman}{Anhang}{Appendices}}
\newcommand\appendix@section[1]{% \newcommand{\appendix@section}[2][\@nil]{%
\refstepcounter{section}% \refstepcounter{section}%
\orig@section*{\appendixname{}~\thesection\hspace{1em}#1}% \orig@section*{\thesection\hspace{1em}#2}%
\def\tmp{#1}%
\ifx\tmp\@nnil% % Puts the optional short title into the ToC if not empty
\addcontentsline{toc}{section}{\appendixname{}~\thesection\hspace{1em}#2}%
\else%
\addcontentsline{toc}{section}{\appendixname{}~\thesection\hspace{1em}#1}% \addcontentsline{toc}{section}{\appendixname{}~\thesection\hspace{1em}#1}%
\fi%
\markboth{\thesection\hspace{1em}\MakeUppercase{#2}}{}%
} }
\let\orig@section\section \let\orig@section\section
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment