Skip to content

Commit

Permalink
Moved appendix divider page from format to appendix for ease of access
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStuber committed Feb 15, 2022
1 parent bcf6978 commit ea36a58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions appendix.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
\patchcmd{\@chap@pppage}{\thispagestyle{plain}}{\thispagestyle{empty}}{}{}
\makeatother

% Appendix page
\appendix

% Reset counters and add letters to counters on every include
\pretocmd{\include}{\appendixnum}{}{}

Expand All @@ -20,6 +17,14 @@
\appendixchap
\appendixsec

%----------------------------------------------------------
% Appendix divider page (OPTIONAL)
%----------------------------------------------------------

\cleardoublepage
\addappheadtotoc % Add appendix divider page to table of contents
\appendixpage % Add appendix divider page to document

%----------------------------------------------------------
% Prevent sections and subsections from being added to table of contents (OPTIONAL)
%----------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion format.tex
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
% Appendix
%----------------------------------------------------------

\usepackage[titletoc,page,toc]{appendix}
\usepackage[titletoc]{appendix}

% Rename appendix page and table of contents entry
\renewcommand{\appendixpagename}{\appendixname}
Expand Down

0 comments on commit ea36a58

Please sign in to comment.