From 4796fdf8614a8570d660f725a0f365a48b490d3e Mon Sep 17 00:00:00 2001 From: ZeroPointMax Date: Fri, 19 Nov 2021 14:14:10 +0100 Subject: [PATCH] fix and speedup * fixed: setnumbering of Anlagen to normal * removed some unneded packages in order to speed up the build process and do housekeeping for more details, see #78 (not all packages suggested by @photovoltex were removed since some are actually needed) --- build/components/package.config.tex | 18 ++++++++++++------ build/components/setup.tex | 2 +- build/template.tex | 10 ++++++++++ 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/build/components/package.config.tex b/build/components/package.config.tex index cac9721..34bfeff 100644 --- a/build/components/package.config.tex +++ b/build/components/package.config.tex @@ -3,9 +3,7 @@ outer = 2cm, top = 2.5cm, bottom = 2.5cm]{geometry} -\usepackage [utf8]{inputenc} \usepackage {setspace} -\usepackage {titletoc} \usepackage [hyperfootnotes = false, hidelinks]{hyperref} \usepackage {amssymb} @@ -22,16 +20,24 @@ minbibnames = 3, minalphanames= 3]{biblatex} \usepackage [ngerman]{babel} -\usepackage {csquotes,xpatch} \usepackage {footmisc} \usepackage {graphicx} \usepackage {caption} -\usepackage {ifthen} \usepackage {xparse} \usepackage {float} -\usepackage {etoolbox} \usepackage {tocloft} -\usepackage {icomma} \usepackage {lmodern} \usepackage {totcount} \usepackage {chngcntr} + + +% DEPRECATED PACKAGES +% not needed anymore but kept here for backwards compatibility +% enable if you have problems after an update + +%\usepackage [utf8]{inputenc} +%\usepackage {titletoc} +%\usepackage {csquotes,xpatch} +%\usepackage {ifthen} +%\usepackage {etoolbox} +%\usepackage {icomma} diff --git a/build/components/setup.tex b/build/components/setup.tex index ceb7daa..3ef3e5d 100644 --- a/build/components/setup.tex +++ b/build/components/setup.tex @@ -16,7 +16,7 @@ % im Kusche-Mode sollen Abbildungen nach kapitel.lfd nummeriert werden \if\KUSCHE 1 \counterwithin{figure}{section} - \counterwithin{table}{section} % to be tested + \counterwithin{table}{section} \fi \renewcommand {\listfigurename}{Abbildungsverzeichnis} diff --git a/build/template.tex b/build/template.tex index 0ec0238..5bdc373 100644 --- a/build/template.tex +++ b/build/template.tex @@ -81,6 +81,7 @@ % LITERATURVERZEICHNIS % TODO Formatierung + % Im Kusche-Mode wird arabische Nummerierung beibehalten \if\KUSCHE 0 \pagenumbering {Roman} \setcounter{page}{\thesavepage} @@ -108,8 +109,17 @@ \addcontentsline{toc}{section}{Anlagen} \cleardoublepage \fi +\else + % convenient else branch: disable counting with kapitel.lfd and return to normal counting for appendix + \counterwithout{figure}{section} + \counterwithout{table}{section} \fi +%%%%% +% NOTE: do not refactor the "else" above away from the "input" below or stuff will break. I just abused an existing \if\KUSCHE +% Move the else above in its own if-statement if neccessary +%%%%% + \renewFigTabCap % change the behavior from the env figure and table and the command \caption{} \input{anlagen.tex} \cleardoublepage