-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tex
141 lines (112 loc) · 4.48 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
%%% HSD-LaTeX-Template (c) by Tim Biermann
%%%
%%% HSD-LaTeX-Template is licensed under a
%%% Creative Commons Attribution-ShareAlike 4.0 International License.
%%%
%%% You should have received a copy of the license along with this
%%% work. If not, see <http://creativecommons.org/licenses/by-sa/4.0/>.
% !TEX root = main.tex
% !TeX program = txs:///arara
%%% we use arara because it makes life easier
%%% arara should work on all platforms
% arara: lualatex: { draft: true, shell: true}
% arara: xindy: {modules: [texindy, page-ranges], codepage: utf8, language: german-duden}
% !arara: --> if changed('idx')
% arara: biber if missing('bbl') || found('log', 'Citation')
% arara: --> || found ('log', 'Please \\(re\\)run Biber')
% arara: makeglossaries if missing('gls') || changed('glo')
% arara: lualatex: { shell: true, synctex: true }
% arara: --> if found('log', 'No file ') || found('log', 'undefined references') || found('log', 'Rerun required') || found('log', 'Rerun to get cross-references')
% arara: lualatex: { shell: true, synctex: true }
%%% we source our input files to get a cleaner main.tex
\input{meta/preamble.tex} % to fragment
% bib resources
\addbibresource{literature/literature.bib}
% where to store your images
\graphicspath{{./}{./graphics/}}
% Meta information
\input{meta/authorinfo.tex}
% PDF Meta Data
\hypersetup{%
pdfinfo={%
Title={\myTitel},%
Subject={\myStudiengang},%
Author={\myAutor},%
Build=1.1%
}%
}
%%% this fixes overfull hbox errors in our toc
\makeatletter\renewcommand\@pnumwidth{2em}\makeatother
\begin{document}
\pagenumbering{Roman} % Roman page numbering style
\input{content/titlepage/titlepage} % titlepage
\newgeometry{left=3cm,right=2.5cm,top=2cm,bottom=2cm}
%\restoregeometry
\input{content/attachments/lockflag} % lock flag
\setcounter{page}{2} % manually set page counter to page 2
%%% table of content
\setcounter{tocdepth}{3} % define toc depth
\tableofcontents
\newpage
%%% list of abbreviations
\printglossary[type=\acronymtype,title={Abkürzungsverzeichnis}]
\newpage
%%% table of figures
\listoffigures
\newpage
%%% table of tables
\listoftables
\newpage
%%% list of listings
\makeatletter
\renewcommand\l@lstlisting[2]{\@dottedtocline{1}{0.6cm}{7em}{#1}{#2}} % fix spacing between lstlisting and number
\makeatother
\renewcommand{\lstlistingname}{}
\renewcommand{\lstlistlistingname}{Quellcodeverzeichnis} % rename default table of listings name
\renewcommand*{\thelstlisting}{Quellcode~\arabic{lstlisting}} % same as tables and figures
\lstlistoflistings
\newpage
\pagenumbering{arabic} % Arabic page numbering style
\setcounter{page}{1} % reset page counter
% this is where you write your text
\input{content/01-introduction/introduction}
\clearpage % force latex to place anything not yet placed before proceeding
\input{content/02-chapter1/chapter1}
\clearpage % force dump every not yet placed float before proceeding
\input{content/03-chapter2/chapter2}
\clearpage % force dump every not yet placed float before proceeding
\input{content/99-conclusion/conclusion}
\clearpage % force latex to place anything not yet placed before proceeding
\pagenumbering{Roman} % change back to Roman page numbering style
\setcounter{page}{8} % change the number accordingly
%%% Glossaries
\newpage
\phantomsection % fixes wrong page numbering
\printglossary[type=main]
%%% print index
\newpage
\phantomsection % fixes wrong page numbering
\addcontentsline{toc}{section}{Index}
\printindex
%%% print bibliography
\newpage
\phantomsection % fixes wrong page numbering
%\printbibliography % print the bibliography as a whole
%%% you can also split your bibliography by type like this
\printbibliography[keyword=main,title={Literaturverzeichnis}] % print all cites used throughout our work
\defbibnote{prectan}{\emph{Hier werden alle in diesem Dokument genutzten CTAN Pakete aufgelistet}}
\printbibliography[keyword=ctan,heading=subbibintoc,title={CTAN Pakete},prenote=prectan] % additionally, cite all packages used
%%% appendix
\newpage
\phantomsection % fixes wrong page numbering
\addcontentsline{toc}{section}{Appendix}
\appendix
%%% Attachment A
\includepdf[scale=.7,pages=1, offset=0 -3cm,pagecommand=\section{Prüfungsordnung Wirtschaft}]{content/attachments/po_wiwi.pdf}
%%% this effectively works around the sectioning issue of a multi page pdf
\includepdf[scale=.7,pages=2-7, offset=0 -3cm]{content/attachments/po_wiwi.pdf}
%%% Attachment B
\include{content/attachments/anhang_a}
%%% last page
\input{content/attachments/sworndecleration} % sworn declaration
\end{document}