Skip to content
Snippets Groups Projects
Commit f87b903e authored by Tobias Hamann's avatar Tobias Hamann
Browse files

Move and footnotes to their respecting files

parent f6cbb314
Branches
No related tags found
1 merge request!3Cleanup, merge different versions, magic
Pipeline #541854 passed
......@@ -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
......@@ -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
......@@ -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
......
......@@ -41,7 +41,6 @@
%% Define own commands
\include{format/functions}
%\include{format/harveyballs}
%% Set up glossary
% \input{glossary}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment