From f87b903e84e7f094bee5322666e5dea0b69d3f41 Mon Sep 17 00:00:00 2001 From: Tobias Hamann <tobias.hamann@rwth-aachen.de> Date: Thu, 27 Feb 2025 15:38:08 +0100 Subject: [PATCH] Move and footnotes to their respecting files --- format/WZLTemplate_files/SET_Footnotes.tex | 9 ++++ format/WZLTemplate_files/SET_Glossaries.tex | 46 +++++++++++++++++ format/functions.tex | 55 +-------------------- main.tex | 1 - 4 files changed, 57 insertions(+), 54 deletions(-) diff --git a/format/WZLTemplate_files/SET_Footnotes.tex b/format/WZLTemplate_files/SET_Footnotes.tex index a7efe03..818cb44 100644 --- a/format/WZLTemplate_files/SET_Footnotes.tex +++ b/format/WZLTemplate_files/SET_Footnotes.tex @@ -3,8 +3,17 @@ %% FOOTNOTES \usepackage[hang,flushmargin,]{footmisc} %% Remove indentation of footnotes + \setlength{\skip\footins}{1cm} % footnote margin \renewcommand{\footnoterule}{{\color{\chaptercolor} \noindent\rule[3pt]{\textwidth}{0.4pt} } +} + +% disclaimer footnote +\newcommand\disclaimer[1]{ + \begingroup + \renewcommand\thefootnote{}\footnote{#1} + \addtocounter{footnote}{-1} + \endgroup } \ No newline at end of file diff --git a/format/WZLTemplate_files/SET_Glossaries.tex b/format/WZLTemplate_files/SET_Glossaries.tex index 0eea9dd..edddeda 100644 --- a/format/WZLTemplate_files/SET_Glossaries.tex +++ b/format/WZLTemplate_files/SET_Glossaries.tex @@ -9,5 +9,51 @@ % Define a custom dotfill for glossaries \def\Dotfill{\leavevmode\xleaders\hbox to .8em{\hss.\hss}\hfill\kern0pt} \makeglossaries + + +%% List of symbols +\newglossarystyle{symbols_style}{ + \setglossarystyle{long3col} + \renewenvironment{theglossary}% + {\begin{longtable}{ + @{}p{0.15\textwidth} + @{\hspace{6pt}}p{\dimexpr 0.8\textwidth}<{\Dotfill} + @{\hspace{6pt}}p{0.05\textwidth} + @{} + } + }% + {\end{longtable}}% + \renewcommand*{\glossentry}[2]{ + \glstarget{##1}{\glossentryname{##1}}% the entry name + % & (\glossentrysymbol{##1})% the symbol in brackets + & \glossentrydesc{##1}% the description + & ##2% the number list in square brackets + \\ + }% +} \input{format/symbols} + + +%% Glossary +\newglossarystyle{glossary_style}{ + % \setglossarystyle{long3col} + \setglossarystyle{long} + \renewenvironment{theglossary}% + {\begin{longtable} + { + @{}>{\raggedright\arraybackslash}p{0.2\textwidth} + @{\hspace{6pt}}p{\dimexpr 0.8\textwidth-6pt} + % @{\hspace{6pt}}p{\dimexpr 0.7\textwidth-12pt} + % @{\hspace{6pt}}p{0.1\textwidth} + @{} + }}% + {\end{longtable}}% + \renewcommand*{\glossentry}[2]{ + \glstarget{##1}{\glossentryname{##1}}% the entry name + % & (\glossentrysymbol{##1})% the symbol in brackets + & \glossentrydesc{##1}% the description + % & ##2% the number list in square brackets + \\ + }% +} \input{format/glossary} \ No newline at end of file diff --git a/format/functions.tex b/format/functions.tex index 2a7d05b..26b7ee1 100644 --- a/format/functions.tex +++ b/format/functions.tex @@ -48,29 +48,9 @@ } -%% List of symbols -\newglossarystyle{symbols_style}{ - \setglossarystyle{long3col} - \renewenvironment{theglossary}% - {\begin{longtable}{ - @{}p{0.15\textwidth} - @{\hspace{6pt}}p{\dimexpr 0.8\textwidth}<{\Dotfill} - @{\hspace{6pt}}p{0.05\textwidth} - @{} - } - }% - {\end{longtable}}% - \renewcommand*{\glossentry}[2]{ - \glstarget{##1}{\glossentryname{##1}}% the entry name - % & (\glossentrysymbol{##1})% the symbol in brackets - & \glossentrydesc{##1}% the description - & ##2% the number list in square brackets - \\ - }% -} -% TODO +%% List of Symbols \newcommand{\los}{ \stepcounter{romancounter} \newcommand{\listsymbolname}{\Roman{romancounter}\hspace{1em}\tmpsymbolname} @@ -86,31 +66,7 @@ } -%% Glossary -\newglossarystyle{glossary_style}{ - % \setglossarystyle{long3col} - \setglossarystyle{long} - \renewenvironment{theglossary}% - {\begin{longtable} - { - @{}>{\raggedright\arraybackslash}p{0.2\textwidth} - @{\hspace{6pt}}p{\dimexpr 0.8\textwidth-6pt} - % @{\hspace{6pt}}p{\dimexpr 0.7\textwidth-12pt} - % @{\hspace{6pt}}p{0.1\textwidth} - @{} - }}% - {\end{longtable}}% - \renewcommand*{\glossentry}[2]{ - \glstarget{##1}{\glossentryname{##1}}% the entry name - % & (\glossentrysymbol{##1})% the symbol in brackets - & \glossentrydesc{##1}% the description - % & ##2% the number list in square brackets - \\ - }% -} - - -% TODO +%% List of Glossary \newcommand{\glossarylist}{ \stepcounter{romancounter} \newcommand{\theglossaryname}{\Roman{romancounter}\hspace{1em}\tmpglossaryname} @@ -188,13 +144,6 @@ } -% disclaimer footnote -\newcommand\disclaimer[1]{ - \begingroup - \renewcommand\thefootnote{}\footnote{#1} - \addtocounter{footnote}{-1} - \endgroup -} % commands for italic acronyms diff --git a/main.tex b/main.tex index 7d7117b..ca4f559 100644 --- a/main.tex +++ b/main.tex @@ -41,7 +41,6 @@ %% Define own commands \include{format/functions} -%\include{format/harveyballs} %% Set up glossary % \input{glossary} -- GitLab