Skip to content

Commit

Permalink
consistent handling of appendix names
Browse files Browse the repository at this point in the history
  • Loading branch information
homberghp committed May 15, 2024
1 parent 98b5670 commit 1765364
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions configuration/thesis_config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
\usepackage{adjustbox}
\usepackage[toc,page]{appendix}

%\titleformat{\chapter}[display]{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
% chapter titles theme.
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries}
Expand All @@ -207,19 +207,12 @@
\renewcommand{\refname}{Referenties}
\renewcommand{\bibname}{Referenties}
}
\addto\captionsenglish{%
\renewcommand\appendixname{Appendices}
\renewcommand\appendixpagename{Appendix}
\renewcommand{\refname}{References}
\renewcommand{\bibname}{References}
}
\addto\captionsgerman{%
\renewcommand\appendixname{Anhänge}
\renewcommand\appendixpagename{Anhang}
\renewcommand{\refname}{Verweise}
\renewcommand{\bibname}{Verweise}
}
%% to speed up building, include only what is in ./IncludeOnly.tex
\providecommand\DefInfo[1]{ define \textbackslash{}#1 in file ``./infopage.txt''}
\providecommand\documentname{\DefInfo{documentname}}
\providecommand\studentname{\DefInfo{studentname}}
Expand Down
6 changes: 3 additions & 3 deletions partials/appendix.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
\begin{appendices}
\renewcommand{\thesection}{\Alph{section}}
\appendix
\def\chaptername{Appendix}
% \renewcommand{\thesection}{\Alph{section}}
% \appendix
\def\chaptername{Appendix}
\addcontentsline{toc}{part}{Appendices}
\include{appendix/macros}
\include{appendix/includelistings}
Expand Down

0 comments on commit 1765364

Please sign in to comment.