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

mv TOC, LOF, LOA etc. from functions to SET_TableOFThings

parent f87b903e
Branches
No related tags found
1 merge request!3Cleanup, merge different versions, magic
Pipeline #541884 passed
...@@ -32,3 +32,87 @@ ...@@ -32,3 +32,87 @@
\renewcommand{\thechapter}{\arabic{chapter}} \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
}
...@@ -13,89 +13,6 @@ ...@@ -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 %% Start of main text
\newcommand{\startmain} \newcommand{\startmain}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment