-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.tex
189 lines (129 loc) · 4.69 KB
/
configuration.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
% LATEX configuration
\usepackage{etoolbox}
\usepackage{geometry}
\newtoggle{twopage}
\newcommand{\cropmargin}{}
\input{layout-options.tex}
%% Satzspiegel
%% https://en.wikibooks.org/wiki/LaTeX/Page_Layout
\geometry{left=6cm,right=2.5cm,top=2.4cm,bottom=3cm, a4paper,includefoot,}
\iftoggle{twopage}{\geometry{twoside}}
\geometry{}
%% Anschnitt
\usepackage{calc} % Load the calc package for mathematical operations
% Define a crop margin variable
% Calculate the new variable and assign it to \totalwidth
\newlength{\totalwidth}
\setlength{\totalwidth}{\paperwidth+\cropmargin}
\newlength{\totalheigth}
\setlength{\totalheigth}{\paperheight+\cropmargin}
% Include the crop package to add trim marks
\usepackage[frame,width=\the\totalwidth,height=\the\totalheigth,center,cam]{crop}
%% Lokalisierung
\usepackage[ngerman]{babel}
\RequirePackage[ngerman=ngerman-x-latest]{hyphsubst}
%% Additional Font Sizes
%% https://ftp.rrze.uni-erlangen.de/ctan/macros/latex/contrib/extsizes/extsizes.pdf
\usepackage[utf8]{inputenc}
%% Control Font Size:
\usepackage{anyfontsize}
%% Schöner Font
\usepackage{fontspec}
\setmainfont{Lato}[
Extension = , %Keine Extention on macOS
UprightFont = *-Regular ,
BoldFont = *-Bold,
ItalicFont = *-Italic,
]
\setmonofont{SpaceMono-Regular}[]
%%% HYPERREF
\usepackage[colorlinks=false, breaklinks=true]{hyperref}
%% Apa styles Citation (load after Hyperref)
\usepackage{apacite}
%% URL Font Styling
\makeatletter
\def\url@urlstyle{
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\smal\ttfamily}}}
\makeatother
\urlstyle{url}
%% Zeilenabstand
\usepackage[doublespacing]{setspace}
%% Bibliographie in TOC
%% https://ctan.joethei.xyz/macros/latex/contrib/tocbibind/tocbibind.pdf
\usepackage[nottoc,]{tocbibind}
%% Grafikpackages
\usepackage{todonotes}
\usepackage{graphicx}
\usepackage{caption}
%https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Silbentrennung#Globale_Silbentrennungsanweisung
%% Schönere Fußnote
\usepackage[footnote,printonlyused]{acronym}
\usepackage{scrextend}
\setlength{\skip\footins}{24pt} % Marging Top
\deffootnote[1.6em]{1.6em}{1em}{{\thefootnotemark}\quad}
%%\textsuperscript Nummer hochstellen (Do not)
%% Satz Parameter
\tolerance=1000
%\sloppy < Use with caution
%% Schönerer Flattersatz
\usepackage{ragged2e}
\RaggedRight
\setlength{\RaggedRightRightskip}{16pt plus 2em}
% Schönere Typographie
\hyphenpenalty=1
\doublehyphendemerits=10000 % No consecutive line hyphens.
\brokenpenalty=1000 % No broken words across columns/pages.
\widowpenalty=1000 % Almost no widows at bottom of page.
\clubpenalty=1000 % Almost no orphans at top of page.
\interfootnotelinepenalty=1000 % Almost never break footnotes.
% TOC Layout
%% Keine Punkte im Inhaltsverzeichnis
\usepackage[titles]{tocloft}
\renewcommand{\cftdot}{}
% Bessere Einrückung im Inhaltsverzeichnis
\renewcommand*{\cftsecindent}{2em}
\renewcommand*{\cftsubsecindent}{3.5em}
\renewcommand*{\cftsubsubsecindent}{6em}
% BILDERPFAD global
\graphicspath{ {./Bilder/} }
% \hfil \break < Absatzabstand
%% Keine Einrückung und Absatz Abstand
%% http://ctan.org/pkg/parskip
\usepackage{parskip}
\setlength{\parindent}{0pt} % VJ-originally 0pt
\setlength{\parskip}{.8ex plus0.5ex minus0.2ex}
%% Seitenzahl
%% Seitenzahl Rechtsbündig, for single page layout
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear header and footer
\rfoot{\thepage} % set page number on the right side of footer
\renewcommand{\headrulewidth}{0pt} % remove header rule
\iftoggle{twopage}{%% Seitenzahl Unten, links und recht, for double page layout
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear header and footer
\fancyfoot[LE,RO]{\thepage} % page number on left for even pages, right for odd pages
}
%% Caption Linksbündig
\usepackage{caption}
\captionsetup{justification = raggedright,
singlelinecheck = false}
%% Beautiful Part Titel
%% https://tex.stackexchange.com/questions/522359/indent-for-second-line-in-long-chapter-title
%% https://tex.stackexchange.com/questions/635254/how-to-align-minipages-on-the-top
\usepackage[toctitles]{titlesec}
\titleformat{\part}[block]{\fontsize{24}{20}\bfseries}{\thepart}{22pt}{\begin{minipage}[t]{\textwidth-68pt}}[\end{minipage}]
\titlespacing{\part}{0pt}{-24pt}{12pt}[0pt]
\titleformat{\section}[block]{\fontsize{16}{12}\bfseries}{\thesection}{16pt}{\begin{minipage}[t]{\textwidth-68pt}}[\end{minipage}]
% Use \MakeUppercase
%Make Part Numerals arabic
\renewcommand{\thepart}{\arabic{part}}
%% Fix Hyphens
%% https://www.ctan.org/pkg/extdash
\usepackage[shortcuts]{extdash}
\usepackage{afterpage}
%%% GLOSSAR
\usepackage[toc]{glossaries}
\makeglossaries
\loadglsentries{./Glossar.tex}