forked from TH_General/Template_Summary
added the funcionality learned in the Bsc thesis
This commit is contained in:
parent
8a620dfd99
commit
6d139b95da
@ -1,6 +0,0 @@
|
|||||||
%%
|
|
||||||
% list of acronyms
|
|
||||||
%%
|
|
||||||
\begin{acronym}
|
|
||||||
\acro{example}[EXMPL]{example of an acronym}
|
|
||||||
\end{acronym}
|
|
19
Appendix.tex
Normal file
19
Appendix.tex
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
\pagenumbering{roman}
|
||||||
|
|
||||||
|
%glossary
|
||||||
|
\printglossary[nonumberlist]
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
|
%bibliography
|
||||||
|
\phantomsection
|
||||||
|
\addcontentsline{toc}{chapter}{Literatur}
|
||||||
|
\bibliographystyle{IEEEtran-de}
|
||||||
|
\bibliography{Bibliography.bib}
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
|
%appendix
|
||||||
|
\appendix
|
||||||
|
\chapter{Anhang}
|
||||||
|
\label{appendix}
|
@ -1,4 +0,0 @@
|
|||||||
%all the main content goes here
|
|
||||||
\pagenumbering{arabic}
|
|
||||||
|
|
||||||
\input{parts/ExamplePart.tex}
|
|
58
Glossary.tex
Normal file
58
Glossary.tex
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
%%
|
||||||
|
% all references for the glossary as well as the abbreviation list and nomenclature
|
||||||
|
%%
|
||||||
|
% add glossary for nomenclature
|
||||||
|
\newglossary{nomenclature}{nom}{ncl}{Nomenklatur}
|
||||||
|
|
||||||
|
\shorthandon{"}
|
||||||
|
%--------------------
|
||||||
|
%main glossary
|
||||||
|
%--------------------
|
||||||
|
\newglossaryentry{example}{
|
||||||
|
name=Example,
|
||||||
|
plural=Examples,
|
||||||
|
description={This is an example for a main glossary entry}
|
||||||
|
}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%acronyms
|
||||||
|
%--------------------
|
||||||
|
\setabbreviationstyle[acronym]{long-short}
|
||||||
|
|
||||||
|
\newacronym{EXP}{EXP}{Example}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%nomenclature
|
||||||
|
%--------------------
|
||||||
|
|
||||||
|
%add new key
|
||||||
|
\glsaddstoragekey{unit}{}{\glsentryunit}
|
||||||
|
\glsnoexpandfields
|
||||||
|
|
||||||
|
\newcommand{\newnom}[5]{
|
||||||
|
\newglossaryentry{#1}{
|
||||||
|
name={#2},
|
||||||
|
symbol={#3},
|
||||||
|
description={#4},
|
||||||
|
unit={#5},
|
||||||
|
type=nomenclature,
|
||||||
|
sort={#1}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%use nomenclature entry (name + symbol) nomF=>First letter upper case
|
||||||
|
\newcommand{\nomf}[1]{\glsentryname{#1} \texorpdfstring{\glslink{#1}{\boldmath\ensuremath{\glsentrysymbol{#1}}}}{}\xspace}
|
||||||
|
\newcommand{\nomF}[1]{\Glsentryname{#1} \texorpdfstring{\glslink{#1}{\boldmath\ensuremath{\glsentrysymbol{#1}}}}{}\xspace}
|
||||||
|
%use nomenclature entry (name) nomS=>First letter upper case
|
||||||
|
\newcommand{\noms}[1]{\glsentryname{#1}\xspace}
|
||||||
|
\newcommand{\nomS}[1]{\Glsentryname{#1}\xspace}
|
||||||
|
%use nomenclature entry (symbol only)
|
||||||
|
\newcommand{\nomsym}[1]{\texorpdfstring{\glslink{#1}{\boldmath\ensuremath{\glsentrysymbol{#1}}}}{#1}\xspace}
|
||||||
|
%use nomenclature entry (use in equation)
|
||||||
|
\newcommand{\nomeq}[1]{\glslink{#1}{\glsentrysymbol{#1}}}
|
||||||
|
|
||||||
|
\newnom{exampl}{Example}{e_xa_mp_le}{Example for a nomenclature entry}{\si{m}}
|
||||||
|
|
||||||
|
\shorthandoff{"}
|
||||||
|
|
||||||
|
\makeglossaries
|
||||||
|
|
129
Packages.tex
129
Packages.tex
@ -1,36 +1,153 @@
|
|||||||
|
%--------------------
|
||||||
%encoding
|
%encoding
|
||||||
|
%--------------------
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
%language
|
%language
|
||||||
\usepackage[ngerman]{babel}
|
%--------------------
|
||||||
|
\usepackage{babel}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
%images
|
%images
|
||||||
|
%--------------------
|
||||||
\usepackage{graphicx}
|
\usepackage{graphicx}
|
||||||
\graphicspath{ {./images/} }
|
\graphicspath{ {./images/} }
|
||||||
|
%figure wrapping
|
||||||
\usepackage{wrapfig}
|
\usepackage{wrapfig}
|
||||||
|
%precise image placement
|
||||||
\usepackage{float}
|
\usepackage{float}
|
||||||
%svg images
|
%svg images
|
||||||
\usepackage{svg}
|
\usepackage{svg}
|
||||||
%quotation
|
|
||||||
|
%--------------------
|
||||||
|
%german quotation
|
||||||
|
%--------------------
|
||||||
\usepackage[%
|
\usepackage[%
|
||||||
left = \glqq,%
|
left = \glqq,%
|
||||||
right = \grqq,%
|
right = \grqq,%
|
||||||
leftsub = \glq,%
|
leftsub = \glq,%
|
||||||
rightsub = \grq%
|
rightsub = \grq%
|
||||||
]{dirtytalk}
|
]{dirtytalk}
|
||||||
%boxes
|
|
||||||
\usepackage[framemethod=tikz]{mdframed}
|
|
||||||
|
%--------------------
|
||||||
%enumeration
|
%enumeration
|
||||||
|
%--------------------
|
||||||
\usepackage{enumerate}
|
\usepackage{enumerate}
|
||||||
|
\usepackage[shortlabels]{enumitem}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
%references
|
%references
|
||||||
|
%--------------------
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
%for code snippets
|
%for code snippets
|
||||||
|
%--------------------
|
||||||
\usepackage{xcolor}
|
\usepackage{xcolor}
|
||||||
\usepackage{listings}
|
\usepackage{listings}
|
||||||
%acronyms
|
% highlight block in equations
|
||||||
\usepackage[printonlyused]{acronym}
|
\newcommand{\highlight}[2]{%
|
||||||
|
\colorbox{#1}{$\displaystyle#2$}}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%footnotes
|
||||||
|
%--------------------
|
||||||
|
%fix footnotes at the bottom of the page
|
||||||
|
\usepackage[bottom]{footmisc}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%tables
|
||||||
|
%--------------------
|
||||||
|
%enable X columns (columns with automatic width)
|
||||||
|
\usepackage{tabularx}
|
||||||
|
\newcolumntype{Y}{>{\centering\arraybackslash}X} %for centered X column
|
||||||
|
%table longer than one page
|
||||||
|
\usepackage{longtable}
|
||||||
|
%colorfull tables
|
||||||
|
\usepackage{colortbl}
|
||||||
|
%multirows in tables
|
||||||
|
\usepackage{multirow}
|
||||||
|
%enable line break in nomenclature
|
||||||
|
\usepackage{array}
|
||||||
|
%footnotes for tables
|
||||||
|
\usepackage{threeparttable}
|
||||||
|
%enable rotation of table headers
|
||||||
|
\newcommand\rothead{\bfseries\rotatebox{90}}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%glossary & acronyms
|
||||||
|
%--------------------
|
||||||
|
\usepackage{datatool}
|
||||||
|
\usepackage[automake,acronym]{glossaries-extra}
|
||||||
|
%dynamic spaces after a link
|
||||||
|
\usepackage{xspace}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
%header and footer
|
%header and footer
|
||||||
|
%--------------------
|
||||||
\usepackage{fancyhdr}
|
\usepackage{fancyhdr}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
%custom font sizes
|
%custom font sizes
|
||||||
|
%--------------------
|
||||||
\usepackage{anyfontsize}
|
\usepackage{anyfontsize}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
%bibliography
|
%bibliography
|
||||||
|
%--------------------
|
||||||
\usepackage[square, numbers]{natbib}
|
\usepackage[square, numbers]{natbib}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%conditional formating
|
||||||
|
%--------------------
|
||||||
|
\usepackage{ifthen}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%equations
|
||||||
|
%--------------------
|
||||||
|
%math symbols and more
|
||||||
|
\usepackage{amsmath}
|
||||||
|
%special symbols
|
||||||
|
\usepackage{fontawesome}
|
||||||
|
%si units
|
||||||
|
\usepackage[output-decimal-marker={,}]{siunitx}
|
||||||
|
%referencing equations
|
||||||
|
\usepackage[noabbrev, nameinlink]{cleveref}
|
||||||
|
%decimal comma
|
||||||
|
\usepackage{icomma}
|
||||||
|
%bold math
|
||||||
|
\usepackage{bm}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
%drawings & diagrams
|
||||||
|
%--------------------
|
||||||
|
\usepackage{tikz,pgfplots}
|
||||||
|
\DeclareUnicodeCharacter{2212}{−}
|
||||||
|
\usepgfplotslibrary{groupplots,dateplot}
|
||||||
|
\pgfplotsset{compat=newest}
|
||||||
|
\usetikzlibrary{calc,3d,shapes.arrows,patterns,shapes.geometric}
|
||||||
|
\usepackage{pgf-umlsd}
|
||||||
|
\usepackage{environ}
|
||||||
|
\makeatletter
|
||||||
|
\newsavebox{\measure@tikzpicture}
|
||||||
|
\NewEnviron{scaletikzpicturetowidth}[1]{%
|
||||||
|
\def\tikz@width{#1}%
|
||||||
|
\def\tikzscale{1}\begin{lrbox}{\measure@tikzpicture}%
|
||||||
|
\BODY
|
||||||
|
\end{lrbox}%
|
||||||
|
\pgfmathparse{#1/\wd\measure@tikzpicture}%
|
||||||
|
\edef\tikzscale{\pgfmathresult}%
|
||||||
|
\BODY
|
||||||
|
}
|
||||||
|
\makeatother
|
||||||
|
%boxes
|
||||||
|
\usepackage[framemethod=tikz]{mdframed}
|
||||||
|
|
||||||
|
%--------------------
|
||||||
|
% landscape
|
||||||
|
%--------------------
|
||||||
|
\usepackage{pdflscape}
|
||||||
|
|
||||||
|
39
Preface.tex
39
Preface.tex
@ -1,11 +1,42 @@
|
|||||||
|
%%
|
||||||
%all content that contains information about the main content (e.g. abbreviations)
|
%all content that contains information about the main content (e.g. abbreviations)
|
||||||
\pagenumbering{roman}
|
%%
|
||||||
|
\pagenumbering{Roman}
|
||||||
|
|
||||||
%table of contents
|
%table of contents
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\clearpage
|
\clearpage
|
||||||
|
|
||||||
\chapter*{Abkürzungsverzeichnis}
|
%list of figures
|
||||||
\input{Acronyms.tex}
|
\addcontentsline{toc}{chapter}{\listfigurename}
|
||||||
|
\listoffigures
|
||||||
|
%list of tables
|
||||||
|
\addcontentsline{toc}{chapter}{\listtablename}
|
||||||
|
\listoftables
|
||||||
|
\clearpage
|
||||||
|
%abbreviations
|
||||||
|
\printglossary[type=\acronymtype, title=Abkürzungsverzeichnis, nonumberlist]
|
||||||
|
\clearpage
|
||||||
|
|
||||||
|
%nomenclature
|
||||||
|
%custom style
|
||||||
|
\newglossarystyle{symbunitlong}{%
|
||||||
|
\setglossarystyle{long4col}% base this style on the list style
|
||||||
|
\renewcommand{\glsgroupskip}{}%avoids grouping the elements by alphabetical order
|
||||||
|
\renewenvironment{theglossary}{% Change the table type --> 4 columns
|
||||||
|
\renewcommand*{\arraystretch}{1.5}
|
||||||
|
\begin{longtable}{>{\centering}p{.1\textwidth} >{\arraybackslash}p{.225\textwidth} p{.475\textwidth}>{\centering\arraybackslash}p{.1\textwidth}}}%
|
||||||
|
{\end{longtable}}%
|
||||||
|
%
|
||||||
|
\renewcommand*{\glossaryheader}{% Change the table header
|
||||||
|
\bfseries\large Symbol & \bfseries\large Bezeichnung & \large\bfseries Beschreibung & \large\bfseries Einheit\\
|
||||||
|
\hline\endhead}%
|
||||||
|
\renewcommand*{\glossentry}[2]{% Change the displayed items
|
||||||
|
\boldmath\ensuremath{\glossentrysymbol{##1}}
|
||||||
|
& \glstarget{##1}{\hspace*{0pt}\glossentryname{##1}} %
|
||||||
|
& \glossentrydesc{##1}
|
||||||
|
& \glsentryunit{##1}\tabularnewline
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
\printglossary[type=nomenclature, nonumberlist, style=symbunitlong]
|
||||||
|
|
||||||
%acronyms
|
|
@ -1,4 +1,4 @@
|
|||||||
\documentclass[a4paper,12pt,oneside]{scrbook}
|
\documentclass[ngerman,regno,a4paper,12pt,oneside]{scrbook}
|
||||||
%page format
|
%page format
|
||||||
\usepackage[
|
\usepackage[
|
||||||
a4paper,
|
a4paper,
|
||||||
@ -16,6 +16,7 @@
|
|||||||
\def \MODULECOMPACT{EM}
|
\def \MODULECOMPACT{EM}
|
||||||
\def \DATE{\today}
|
\def \DATE{\today}
|
||||||
|
|
||||||
|
\input{Glossary.tex}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\input{TitlePage.tex}
|
\input{TitlePage.tex}
|
||||||
@ -24,7 +25,12 @@
|
|||||||
\input{Preface.tex}
|
\input{Preface.tex}
|
||||||
\clearpage
|
\clearpage
|
||||||
|
|
||||||
\input{Content.tex}
|
% {{{ Main Content%
|
||||||
|
\pagenumbering{arabic}
|
||||||
|
\part{Example Part}
|
||||||
|
\input{chapters/ExamplePart/ExampleChapter.tex}
|
||||||
\clearpage
|
\clearpage
|
||||||
|
% }}} %
|
||||||
|
|
||||||
|
\input{Appendix.tex}
|
||||||
\end{document}
|
\end{document}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
\chapter{Example Chapter}
|
\chapter{Example Chapter}
|
||||||
Example Text using \acs{example}
|
Example Text using \gls{example} and the acronym \gls{EXP}
|
||||||
|
\begin{equation}
|
||||||
|
\nomeq{exampl}
|
||||||
|
\end{equation}
|
||||||
\clearpage
|
\clearpage
|
||||||
\section{Example Section}
|
\section{Example Section}
|
||||||
Example Page 2
|
Example Page 2
|
@ -1,3 +0,0 @@
|
|||||||
\part{Example Part}
|
|
||||||
|
|
||||||
\input{chapters/ExamplePart/ExampleChapter.tex}
|
|
Loading…
x
Reference in New Issue
Block a user