Skip to content

Commit

Permalink
fix and speedup
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
ZeroPointMax committed Nov 19, 2021
1 parent 021cbbf commit 4796fdf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
18 changes: 12 additions & 6 deletions build/components/package.config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
2 changes: 1 addition & 1 deletion build/components/setup.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
10 changes: 10 additions & 0 deletions build/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@

% LITERATURVERZEICHNIS
% TODO Formatierung

% Im Kusche-Mode wird arabische Nummerierung beibehalten
\if\KUSCHE 0
\pagenumbering {Roman} \setcounter{page}{\thesavepage}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4796fdf

Please sign in to comment.