From cac9bcacffc50376d1f521ed9f36e35b410d43bf Mon Sep 17 00:00:00 2001
From: Tobias Hamann <tobias.hamann@rwth-aachen.de>
Date: Thu, 27 Feb 2025 15:40:29 +0100
Subject: [PATCH] mv TOC, LOF, LOA etc. from functions to SET_TableOFThings

---
 .../WZLTemplate_files/SET_TablesOfThings.tex  | 84 +++++++++++++++++++
 format/functions.tex                          | 83 ------------------
 2 files changed, 84 insertions(+), 83 deletions(-)

diff --git a/format/WZLTemplate_files/SET_TablesOfThings.tex b/format/WZLTemplate_files/SET_TablesOfThings.tex
index b2d874e..1518ba2 100644
--- a/format/WZLTemplate_files/SET_TablesOfThings.tex
+++ b/format/WZLTemplate_files/SET_TablesOfThings.tex
@@ -32,3 +32,87 @@
 	\renewcommand{\thechapter}{\arabic{chapter}}
 	
 }
+
+
+%% TOC - Table of Contents
+\newcommand{\toc}{
+	\let\tmpcontentsname\contentsname
+	\renewcommand{\contentsname}{\Roman{romancounter}\hspace{1.5em}\tmpcontentsname}
+	\cleardoublepage
+    \phantomsection
+    \addcontentsline{toc}{chapter}{\contentsname}
+	\renewcommand{\cftchapdotsep}{\cftdotsep}
+	\tableofcontents
+	% \stepcounter{romancounter}
+	\stepcounter{chapter}
+}
+
+
+%% List of figures
+\newcommand{\lof}{
+    %% List of figures
+    \stepcounter{romancounter}
+    \let\tmplistfigurename\listfigurename
+    \renewcommand{\listfigurename}{\Roman{romancounter}\hspace{1em}\tmplistfigurename}
+    \cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listfigurename}
+    \listoffigures
+}
+
+
+%% List of tables
+\newcommand{\lot}{
+    \stepcounter{romancounter}
+    \let\tmplisttablename\listtablename
+    \renewcommand{\listtablename}{\Roman{romancounter}\hspace{1em}\tmplisttablename}
+    \cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listtablename}
+    \listoftables
+}
+
+
+
+
+%% List of Symbols
+\newcommand{\los}{
+    \stepcounter{romancounter}
+    \newcommand{\listsymbolname}{\Roman{romancounter}\hspace{1em}\tmpsymbolname}
+    \label{ch:symbols}
+    \cleardoublepage\phantomsection
+    \thispagestyle{plain}
+    \par\nobreak
+    \printglossary[
+        title=\listsymbolname,
+        type=symbols,
+        style=symbols_style,
+    ]
+}
+
+
+%% List of Glossary
+\newcommand{\glossarylist}{
+    \stepcounter{romancounter}
+    \newcommand{\theglossaryname}{\Roman{romancounter}\hspace{1em}\tmpglossaryname}
+    \label{ch:glossary}
+    \cleardoublepage\phantomsection
+    \thispagestyle{plain}
+    \par\nobreak
+    \printglossary[
+        title=\theglossaryname,
+        type=main,
+        style=glossary_style,
+    ]
+    \newpage
+}
+
+
+%% List of acronyms
+\newcommand{\loa}{
+    \stepcounter{romancounter}
+    \newcommand{\listacronymname}{\Roman{romancounter}\hspace{1em}\tmpacronymname}
+    \cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listacronymname}
+    \label{ch:acronyms}
+    \thispagestyle{plain}
+    {\cftlottitlefont\listacronymname}{\cftafterlottitle}
+    \par\nobreak
+    \input{format/acronyms}
+    \newpage
+}
diff --git a/format/functions.tex b/format/functions.tex
index 26b7ee1..d2583ea 100644
--- a/format/functions.tex
+++ b/format/functions.tex
@@ -13,89 +13,6 @@
 }
 
 
-%% TOC - Table of Contents
-\newcommand{\toc}{
-	\let\tmpcontentsname\contentsname
-	\renewcommand{\contentsname}{\Roman{romancounter}\hspace{1.5em}\tmpcontentsname}
-	\cleardoublepage
-    \phantomsection
-    \addcontentsline{toc}{chapter}{\contentsname}
-	\renewcommand{\cftchapdotsep}{\cftdotsep}
-	\tableofcontents
-	% \stepcounter{romancounter}
-	\stepcounter{chapter}
-}
-
-
-%% List of figures
-\newcommand{\lof}{
-    %% List of figures
-    \stepcounter{romancounter}
-    \let\tmplistfigurename\listfigurename
-    \renewcommand{\listfigurename}{\Roman{romancounter}\hspace{1em}\tmplistfigurename}
-    \cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listfigurename}
-    \listoffigures
-}
-
-
-%% List of tables
-\newcommand{\lot}{
-    \stepcounter{romancounter}
-    \let\tmplisttablename\listtablename
-    \renewcommand{\listtablename}{\Roman{romancounter}\hspace{1em}\tmplisttablename}
-    \cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listtablename}
-    \listoftables
-}
-
-
-
-
-%% List of Symbols
-\newcommand{\los}{
-    \stepcounter{romancounter}
-    \newcommand{\listsymbolname}{\Roman{romancounter}\hspace{1em}\tmpsymbolname}
-    \label{ch:symbols}
-    \cleardoublepage\phantomsection
-    \thispagestyle{plain}
-    \par\nobreak
-    \printglossary[
-        title=\listsymbolname,
-        type=symbols,
-        style=symbols_style,
-    ]
-}
-
-
-%% List of Glossary
-\newcommand{\glossarylist}{
-    \stepcounter{romancounter}
-    \newcommand{\theglossaryname}{\Roman{romancounter}\hspace{1em}\tmpglossaryname}
-    \label{ch:glossary}
-    \cleardoublepage\phantomsection
-    \thispagestyle{plain}
-    \par\nobreak
-    \printglossary[
-        title=\theglossaryname,
-        type=main,
-        style=glossary_style,
-    ]
-    \newpage
-}
-
-
-%% List of acronyms
-\newcommand{\loa}{
-    \stepcounter{romancounter}
-    \newcommand{\listacronymname}{\Roman{romancounter}\hspace{1em}\tmpacronymname}
-    \cleardoublepage\phantomsection\addcontentsline{toc}{chapter}{\listacronymname}
-    \label{ch:acronyms}
-    \thispagestyle{plain}
-    {\cftlottitlefont\listacronymname}{\cftafterlottitle}
-    \par\nobreak
-    \input{format/acronyms}
-    \newpage
-}
-
 
 %% Start of main text
 \newcommand{\startmain}
-- 
GitLab