9
9
10
10
\usepackage [utf8 ]{inputenc } % Sonderzeichen ermöglichen
11
11
\usepackage {blindtext }
12
+ \usepackage {csquotes }
13
+ \usepackage {amsfonts }
12
14
13
15
% \usepackage[a4paper, margin=1in]{geometry}
14
16
32
34
\newpage
33
35
34
36
\section {General }
37
+ \label {sec:general }
35
38
36
39
\begin {itemize }
37
40
\item \code {\textbackslash {}tableofcontents}: print table of contents
@@ -55,6 +58,7 @@ \section{General}
55
58
\end {itemize }
56
59
57
60
\section {Overview of all Font Sizes }
61
+ \label {sec:overview-of-all-font-sizes }
58
62
59
63
\begin {tabular }{rl}
60
64
\code {tiny} & {\tiny tiny} \\
@@ -75,6 +79,7 @@ \subsubsection*{Sub-Sub-Section}
75
79
\paragraph* {Paragraph }
76
80
77
81
\section {Elite Definitions }
82
+ \label {sec:elite-definitions }
78
83
79
84
\definition {Definition}{%
80
85
A definition is created with the command \texttt {\textbackslash {}definition\{ \textit {name }\}\{ \textit {content }\} }.
@@ -96,11 +101,13 @@ \section{Elite Definitions}
96
101
\newpage
97
102
98
103
\section {Include Graphics and Figures }
104
+ \label {sec:include-graphics-and-figures }
99
105
100
106
There are multiple ways to include images and figures inside of your doument.
101
107
When drawing attention towards an image, you should use the \code {\textbackslash {}fig} command:
102
108
103
109
\subsection {Regular Figures }
110
+ \label {subsec:regular-figures }
104
111
105
112
\fig [width=0.5\linewidth ]{Prof. Dr. Thomas Worsch}{./worsch}
106
113
@@ -109,6 +116,7 @@ \subsection{Regular Figures}
109
116
\end {CodeListing }
110
117
111
118
\subsection {Wrapfigures }
119
+ \label {subsec:wrapfigures }
112
120
113
121
\wrapfig [11]{r}{0.25\textwidth }{Thomas Worsch}{./worsch}
114
122
@@ -130,6 +138,7 @@ \subsection{Wrapfigures}
130
138
131
139
132
140
\section {Algorithms and Code Segments }
141
+ \label {sec:algorithms-and-code-segments }
133
142
134
143
When writing algorithms or other code-listings, you might want to move the whole block to the
135
144
next page if there are page breaks inbetween your lines of code.
@@ -165,6 +174,7 @@ \section{Algorithms and Code Segments}
165
174
\section* {Code-Listing lanuage highlight examples }
166
175
167
176
\subsection {language=pseudocode }
177
+ \label {subsec:language =pseudocode }
168
178
169
179
\begin {CodeListing }[language=pseudocode]
170
180
Function test(a: $ \mathbb {N}$ ) {
@@ -177,6 +187,7 @@ \subsection{language=pseudocode}
177
187
\end {CodeListing }
178
188
179
189
\subsection {language=java }
190
+ \label {subsec:language =java }
180
191
181
192
\begincode
182
193
\begin {CodeListing }[language=java, caption=Beispiel-Code]
@@ -189,8 +200,10 @@ \subsection{language=java}
189
200
\endcode
190
201
191
202
\subsection {language=80x86 }
203
+ \label {subsec:language =80x86 }
192
204
193
205
\begincode
206
+ % ! suppress = LineBreak
194
207
\begin {CodeListing }[language=80x86, title=Intel 80x86 Assembler Beispiel]
195
208
push ebp ; save calling function's stack frame (ebp)
196
209
mov ebp, esp ; make a new stack frame on top of our caller's stack
@@ -199,10 +212,12 @@ \subsection{language=80x86}
199
212
\endcode
200
213
201
214
\subsection {language=clang }
215
+ \label {subsec:language =clang }
202
216
203
217
\begincode
218
+ % ! suppress = EscapeHashOutsideCommand
204
219
\begin {CodeListing }[language=clang, title=Example C-Code]
205
- #include <stdlio .h>
220
+ #include <stdio .h>
206
221
207
222
// This is a hello-world program in C
208
223
int main(int argc, char** argv)
@@ -214,6 +229,7 @@ \subsection{language=clang}
214
229
\endcode
215
230
216
231
\subsection {language=riscv }
232
+ \label {subsec:language =riscv }
217
233
218
234
\begincode
219
235
\begin {CodeListing }[language=riscv, title=Example RISC-V Assembler]
@@ -227,7 +243,11 @@ \subsection{language=riscv}
227
243
\end {CodeListing }
228
244
\endcode
229
245
230
- \printindex
246
+ \printindices
247
+
248
+ \defwarn {Please Note}{that the index might split a definition over two columns. This can be avoided by inserting
249
+ a \code {\textbackslash {}filbreak} at the top of the index element definition. Since this has some side effects if
250
+ the definitions are too short, we chose not to do that here.}
231
251
232
252
\lstlistoflistings
233
253
\listoffigures
0 commit comments