Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
latextemplates
GitHub Repository: latextemplates/scientific-thesis-template
Path: blob/main/latexhints-english.tex
340 views
1
% !TeX root = main-english.tex
2
% !TeX spellcheck = en-US
3
% !TeX encoding = utf8
4
% -*- coding:utf-8 mod:LaTeX -*-
5
6
%This smart spell only works if no changes have been made to the chapter
7
%using the options proposed in preambel/chapterheads.tex.
8
\setchapterpreamble[u]{%
9
\dictum[Albert Einstein]{We cannot solve our problems with the same level of thinking that created them}
10
}
11
\chapter{LaTeX Hints}
12
\label{chap:latexhints}
13
14
One sentence per line.
15
This rule is important for the usage of version control systems.
16
A new line is generated with a blank line.
17
As you would do in Word:
18
New paragraphs are generated by pressing enter.
19
In LaTeX, this does not lead to a new paragraph as LaTeX joins subsequent lines.
20
In case you want a new paragraph, just press enter twice (!).
21
This leads to an empty line.
22
In word, there is the functionality to press shift and enter.
23
This leads to a hard line break.
24
The text starts at the beginning of a new line.
25
In LaTeX, you can do that by using two backslashes (\textbackslash\textbackslash).
26
This is rarely used.
27
28
Please do \textit{not} use two backslashes for new paragraphs.
29
For instance, this sentence belongs to the same paragraph, whereas the last one started a new one.
30
A long motivation for that is provided at \url{http://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}.
31
32
One can write \emph{emphasized text (rendered in italics)} and \textbf{bold text}.
33
34
\section{File Encoding and Support of Umlauts}
35
\label{sec:firstsectioninlatexhints}
36
The template offers foll UTF-8 support.
37
All recent editors should not have issues with that.
38
39
\section{Citations}
40
41
42
References are set by means of \texttt{\textbackslash cite[key]}.
43
44
\begin{filecontents*}[overwrite]{\democodefile}
45
Example: \cite{WSPA} or by author input: \citet{WSPA}.
46
\end{filecontents*}
47
\PrintDemo{style=parallel}
48
49
The following sentence demonstrates
50
\begin{inparaenum}[1.]
51
\item the capitalization of author names at the beginning of the sentence,
52
\item the correct citation using author names and the reference,
53
\item that the author names are a hyperlink to the bibliography and that
54
\item the bibliography contains the name prefix \qq{van der} of \qq{Wil M.\,P.\ van der Aalst}.
55
\end{inparaenum}
56
57
\begin{filecontents*}[overwrite]{\democodefile}
58
\Citet{RVvdA2016} present a study on the effectiveness of workflow management systems.
59
\end{filecontents*}
60
\PrintDemo{style=parallel}
61
62
The following sentence demonstrates that you can overwrite the text part of the generated label using \texttt{label} in a bibliopgrahie"=entry, but the year and the uniqueness are still generated by biber.
63
64
\begin{filecontents*}[overwrite]{\democodefile}
65
The workflow engine Apache ODE \cite{ApacheODE} executes \BPEL processes reliably.
66
\end{filecontents*}
67
\PrintDemo{style=parallel}
68
69
\begin{filecontents*}[overwrite]{\democodefile}
70
Words are best enclosed using \texttt{\textbackslash qq\{..\}}, then the correct quotes are used.
71
\end{filecontents*}
72
\PrintDemo{style=parallel}
73
74
When creating the Bibtex file it is recommended to make sure that the DOI is listed.
75
76
\section{Formulas and Equations}
77
\label{sec:mf}
78
79
\begin{filecontents*}[overwrite]{\democodefile}
80
Equations $f(x)=x$ inside the text can be provided.
81
\end{filecontents*}
82
\PrintDemo{style=parallel}
83
84
A list with all available mathematical symbols is provided at \url{http://texdoc.net/pkg/symbols-a4}.
85
86
\begin{filecontents*}[overwrite]{\democodefile}
87
As an example, the set of natural numbers is given by $\mathbb{N}$.
88
\end{filecontents*}
89
\PrintDemo{style=parallel}
90
91
For the documentation of editing mathematical formulas read the package documentation of \texttt{amsmath}\footnote{\url{http://texdoc.net/pkg/amsmath}}.
92
93
Equation~\ref{eq:test} is numbered and can be referenced in the text:
94
\begin{filecontents*}[overwrite]{\democodefile}
95
\begin{align}
96
\label{eq:test}
97
x = y
98
\end{align}
99
\end{filecontents*}
100
\PrintDemo{style=parallel}
101
102
The following equation is not numbered because of using \texttt{\textbackslash align*} as environment.
103
\begin{filecontents*}[overwrite]{\democodefile}
104
\begin{align*}
105
x = y
106
\end{align*}
107
\end{filecontents*}
108
\PrintDemo{style=parallel}
109
110
The template offers \verb+\abs+ to enable the bars to scale well at the absolute value:
111
112
\begin{filecontents*}[overwrite]{\democodefile}
113
$\abs{X}$.
114
\end{filecontents*}
115
\PrintDemo{style=parallel}
116
117
The documentation available at \url{http://www.ctan.org/tex-archive/help/Catalogue/entries/voss-mathmode.html} provides more details about mathematical environments.
118
119
120
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
121
\section{Sourcecode}
122
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
123
\Cref{lst:ListingANDlstlisting} shows how to embed source code.
124
With \texttt{\textbackslash lstinputlisting} the source code can be loaded directly from files.
125
126
%Listing-Umgebung wurde durch \newfloat{Listing} definiert
127
\begin{Listing}
128
\begin{lstlisting}
129
<listing name="second sample">
130
<content>not interesting</content>
131
</listing>
132
\end{lstlisting}
133
\caption{The code is separated by two horizontal lines in the listings environment.}
134
\label{lst:ListingANDlstlisting}
135
\end{Listing}
136
137
\begin{filecontents*}[overwrite]{\democodefile}
138
Source code is also available in the text \lstinline|<listing />|.
139
\end{filecontents*}
140
\PrintDemo{style=parallel}
141
142
143
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
144
\section{Pseudocode}
145
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
146
\Cref{alg:sample} shows a sample algorithm.
147
\begin{Algorithmus} %Use the environment only if you want to place the algorithm similar to graphics from TeX
148
\caption{Sample algorithm}
149
\label{alg:sample}
150
\begin{algorithmic}
151
\Procedure{Sample}{$a$,$v_e$}
152
\State $\mathsf{parentHandled} \gets (a = \mathsf{process}) \lor \mathsf{visited}(a'), (a',c,a) \in \mathsf{HR}$
153
\State \Comment $(a',c'a) \in \mathsf{HR}$ denotes that $a'$ is the parent of $a$
154
\If{$\mathsf{parentHandled}\,\land(\mathcal{L}_\mathit{in}(a)=\emptyset\,\lor\,\forall l \in \mathcal{L}_\mathit{in}(a): \mathsf{visited}(l))$}
155
\State $\mathsf{visited}(a) \gets \text{true}$
156
\State $\mathsf{writes}_\circ(a,v_e) \gets
157
\begin{cases}
158
\mathsf{joinLinks}(a,v_e) & \abs{\mathcal{L}_\mathit{in}(a)} > 0\\
159
\mathsf{writes}_\circ(p,v_e)
160
& \exists p: (p,c,a) \in \mathsf{HR}\\
161
(\emptyset, \emptyset, \emptyset, false) & \text{otherwise}
162
\end{cases}
163
$
164
\If{$a\in\mathcal{A}_\mathit{basic}$}
165
\State \Call{HandleBasicActivity}{$a$,$v_e$}
166
\ElsIf{$a\in\mathcal{A}_\mathit{flow}$}
167
\State \Call{HandleFlow}{$a$,$v_e$}
168
\ElsIf{$a = \mathsf{process}$} \Comment Directly handle the contained activity
169
\State \Call{HandleActivity}{$a'$,$v_e$}, $(a,\bot,a') \in \mathsf{HR}$
170
\State $\mathsf{writes}_\bullet(a) \gets \mathsf{writes}_\bullet(a')$
171
\EndIf
172
\ForAll{$l \in \mathcal{L}_\mathit{out}(a)$}
173
\State \Call{HandleLink}{$l$,$v_e$}
174
\EndFor
175
\EndIf
176
\EndProcedure
177
\end{algorithmic}
178
\end{Algorithmus}
179
180
\clearpage
181
And if you want to write an algorithm that goes over several pages, you can only do this with the following \textbf{dirty} hack:
182
183
{
184
\begin{minipage}{\textwidth}
185
\hrule height .8pt width\textwidth
186
\vskip.3em%\vskip\abovecaptionskip\relax
187
\stepcounter{Algorithmus}
188
\addcontentsline{alg}{Algorithmus}{\protect\numberline{\theAlgorithmus}{\ignorespaces Description \relax}}
189
\noindent\textbf{Algorithmus \theAlgorithmus} Description
190
%\stepcounter{algorithm}
191
%\addcontentsline{alg}{Algorithmus}{\thealgorithm{}\hskip0em Description}
192
%\textbf{Algorithmus \thealgorithm} Description
193
\vskip.3em%\vskip\belowcaptionskip\relax
194
\hrule height .5pt width\textwidth
195
\end{minipage}
196
%without the following line, the text is never at the rule
197
\vskip-.3em
198
%
199
code goes here\\
200
test2\\
201
%
202
\vskip-.7em
203
\hrule height .5pt width\textwidth
204
}
205
206
207
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
208
\section{Figures}
209
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
210
The \cref{fig:chor1} and \ref{fig:chor2} are important to understand this document.
211
In the appendix \vref{fig:AnhangsChor} shows again the complete choreography.
212
213
%The parameters in square brackets are optional - e.g. [htb!]
214
%htb! means: Dear LaTeX, please place this image here first ("_h_ere"). If this does not work, place it at the "_t_op" of the page. And if this is not possible, please place it at the "_b_ottom" of the page. And please, please prefer here and above, even if it doesn't look so optimal ("!")
215
%These should NOT be used if possible. LaTeX's algorithm for placing the glide environment is already very good!
216
\begin{figure}
217
\centering
218
\includegraphics[width=\textwidth]{choreography.pdf}
219
\caption{Example Choreography}
220
\label{fig:chor1}
221
\end{figure}
222
223
\begin{figure}
224
\centering
225
\includegraphics[width=.8\textwidth]{choreography.pdf}
226
\caption[Example Choreography]{The example choreography. Now slightly smaller to demonstrate \texttt{\textbackslash textwidth}. And also the use of alternative captions for the list of images. However, the latter is only conditionally recommended, because who reads so much text under a picture? Or is it just a matter of style?}
227
\label{fig:chor2}
228
\end{figure}
229
230
231
\begin{figure}
232
\hfill
233
\begin{subfigure}{.3\textwidth}
234
\includegraphics[width=\textwidth]{choreography.pdf}
235
\caption{Choreography 1}
236
\label{fig:subfigA}
237
\end{subfigure}
238
\hfill
239
\begin{subfigure}{.3\textwidth}
240
\includegraphics[width=\textwidth]{choreography.pdf}
241
\caption{Choreography 2}
242
\label{fig:subfigB}
243
\end{subfigure}
244
\hfill
245
\begin{subfigure}{.3\textwidth}
246
\includegraphics[width=.9\textwidth]{choreography.pdf}
247
\caption{Choreography 3}
248
\label{fig:subfigC}
249
\end{subfigure}
250
\caption{Example to place 3 illustrations next to each other. Further, it is possible to reference each separately.}
251
\label{fig:subfig_example}
252
\end{figure}
253
254
\Cref{fig:subfig_example} shows the usage of the package subcaption.
255
It is indeed possible to reference to sub figures: \Cref{fig:subfigA}.
256
257
It is possible to convert SVGs to PDF directly during compilation.
258
This is described in the source code of latex-tipps.tex, but commented out.
259
260
\iffalse % <-- Take this away if inkscape is in the path
261
The SVG in \cref{fig:directSVG} is directly included, while the text in the SVG in \cref{fig:latexSVG} is set using pdflatex.
262
If you want to see the graphics, inkscape must be in PATH and in the text source \texttt{\textbackslash{}iffalse} and \text{\textbackslash{}iftrue} have to be commented out.
263
264
\begin{figure}
265
\centering
266
\includegraphics{svgexample.svg}
267
\caption{SVG directly included}
268
\label{fig:directSVG}
269
\end{figure}
270
271
\begin{figure}
272
\centering
273
\def\svgwidth{.4\textwidth}
274
\includesvg{svgexample}
275
\caption{Text in SVN set via \LaTeX{}}
276
\label{fig:latexSVG}
277
\end{figure}
278
\fi % <-- Take this away if inkscape is in the path
279
280
281
282
\section{More Illustrations}
283
\Cref{fig:AnhangsChor,fig:AnhangsChor2} show two choreographies, which should further explain the facts. The second figure is rotated 90 degrees to demonstrate the \texttt{pdflscape} package.
284
285
\begin{figure}
286
\centering
287
\includegraphics[width=\textwidth]{choreography.pdf}
288
\caption{Example Choreography I}
289
\label{fig:AnhangsChor}
290
\end{figure}
291
292
\begin{landscape}
293
%sidewaysfigure
294
\begin{figure}
295
\centering
296
\includegraphics[width=\textwidth]{choreography.pdf}
297
\caption{Example Choreography II}
298
\label{fig:AnhangsChor2}
299
\end{figure}
300
\end{landscape}
301
302
303
\IfFileExists{pgfplots.sty}{
304
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
305
\section{Plots with pgfplots}
306
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
307
The package pdfplots provides plotting of functions directly in \LaTeX~like with matlab or gnuplot. Some visual examples are available here\footnote{\url{http://texdoc.net/pkg/visualtikz}}.
308
\begin{figure}[h]
309
\centering
310
\begin{tikzpicture}
311
\begin{axis}[xlabel=$x$,
312
ylabel=$\sin(x)$]
313
\addplot {sin(deg(x))}; % Print sine function
314
\end{axis}
315
\end{tikzpicture}
316
\caption{Plot of $\sin(x)$ direclty inside the figure environment with pgfplots.}
317
\end{figure}
318
319
\begin{figure}[h]
320
\centering
321
\begin{tikzpicture}
322
\begin{axis}[xlabel=$x$,
323
ylabel=$y$]
324
\addplot table [x=a, y=c, col sep=comma] {data/data.csv}; % Read coordinates from csv file and plot them
325
\end{axis}
326
\end{tikzpicture}
327
\caption{Coordinates $x$ and $y$ read from csv file and plotted pgfplots.}
328
\end{figure}
329
330
}{}
331
332
333
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
334
\section{Figures with tikz}
335
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
336
The tikz is a package for creating graphics programmatically. With this package grids or other regular strucutres can be easliy generated.
337
338
\begin{figure}[ht]
339
\centering
340
\begin{tikzpicture}
341
\draw(0,0) rectangle (4,4);
342
\foreach \x in {0.5,1,1.5,2,2.5,3,3.5}
343
\foreach \y in {0.5,1,1.5,2,2.5,3,3.5}
344
\draw(\x,\y) circle (1pt);
345
\end{tikzpicture}
346
\caption{A regular grid generated easily with two for loops.}\label{fig:tikz_example}
347
\end{figure}
348
349
350
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
351
\section{UML diagrams using tikz-uml}
352
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
353
354
\Cref{fig:uml} presents a class diagram typeset using tikz-uml.
355
356
\begin{figure}
357
\centering
358
\begin{tikzpicture}
359
\begin{umlpackage}{p}
360
\begin{umlpackage}{sp1}
361
\umlclass[template=T]{A}{
362
n : uint \\ t : float
363
}{}
364
\umlclass[y=-3]{B}{
365
d : double
366
}{
367
\umlvirt{setB(b : B) : void} \\ getB() : B}
368
\end{umlpackage}
369
\begin{umlpackage}[x=10,y=-6]{sp2}
370
\umlinterface{C}{
371
n : uint \\ s : string
372
}{}
373
\end{umlpackage}
374
\umlclass[x=2,y=-10]{D}{
375
n : uint
376
}{}
377
\end{umlpackage}
378
379
\umlassoc[geometry=-|-, arg1=tata, mult1=*, pos1=0.3, arg2=toto, mult2=1, pos2=2.9, align2=left]{C}{B}
380
\umlunicompo[geometry=-|, arg=titi, mult=*, pos=1.7, stereo=vector]{D}{C}
381
\umlimport[geometry=|-, anchors=90 and 50, name=import]{sp2}{sp1}
382
\umlaggreg[arg=tutu, mult=1, pos=0.8, angle1=30, angle2=60, loopsize=2cm]{D}{D}
383
\umlinherit[geometry=-|]{D}{B}
384
\umlnote[x=2.5,y=-6, width=3cm]{B}{A note with respect to class B}
385
\umlnote[x=7.5,y=-2]{import-2}{A anotation}
386
\end{tikzpicture}
387
\caption{Class diagram generated with tikz-uml. Example adapted from Nicolas Kielbasiewicz.}
388
\label{fig:uml}
389
\end{figure}
390
391
\section{UML diagrams using PlantUML}
392
393
In case \lualatex{} is used and PlantUML is installed, UML diagrams can be defined using PlantUML.
394
395
% Only works if "--shell-escape" is activated. Please activate only if you are sure, your compilation settings are correct
396
%\IfFileExists{plantuml.sty}{\input{latexhints-english-plantuml}}{}
397
398
399
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
400
\section{Linguistic Forests}
401
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
402
403
\begin{filecontents*}[overwrite]{\democodefile}
404
\begin{forest}
405
[VP
406
[DP]
407
[V
408
[V]
409
[DP]
410
]
411
]
412
\end{forest}
413
\end{filecontents*}
414
\PrintDemo{style=parallel}
415
416
417
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
418
\section{Tables}
419
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
420
\cref{tab:Ergebnisse} shows results and \cref{tab:Werte} shows how numerical data can be represented in a table.
421
\begin{table}
422
\centering
423
\begin{tabular}{ccc}
424
\toprule
425
\multicolumn{2}{c}{\textbf{summed}} & \textbf{Title} \\ \midrule
426
Table & as & in \\
427
\url{tabsatz.pdf} & recommended & gesetzt \\
428
429
\multirow{2}{*}{Example} & \multicolumn{2}{c}{a nice example} \\
430
& \multicolumn{2}{c}{for using \qq{multirow}} \\
431
\bottomrule
432
\end{tabular}
433
\caption[Example Table]{Exampe Table -- see \url{http://www.ctan.org/tex-archive/info/german/tabsatz/}}
434
\label{tab:Ergebnisse}
435
\end{table}
436
437
\begin{table}
438
\centering
439
\begin{tabular}{l *{8}{d{3.2}}}
440
\toprule
441
442
& \multicolumn{2}{c}{\textbf{Parameter 1}} & \multicolumn{2}{c}{\textbf{Parameter 2}} & \multicolumn{2}{c}{\textbf{Parameter 3}} & \multicolumn{2}{c}{\textbf{Parameter 4}} \\
443
\cmidrule(r){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7}\cmidrule(l){8-9}
444
445
\textbf{Bedingungen} & \multicolumn{1}{c}{\textbf{M}} & \multicolumn{1}{c}{\textbf{SD}} & \multicolumn{1}{c}{\textbf{M}} & \multicolumn{1}{c}{\textbf{SD}} & \multicolumn{1}{c}{\textbf{M}} & \multicolumn{1}{c}{\textbf{SD}} & \multicolumn{1}{c}{\textbf{M}} & \multicolumn{1}{c}{\textbf{SD}} \\
446
\midrule
447
448
W & 1.1 & 5.55 & 6.66 & .01 & & & & \\
449
X & 22.22 & 0.0 & 77.5 & .1 & & & & \\
450
Y & 333.3 & .1 & 11.11 & .05 & & & & \\
451
Z & 4444.44 & 77.77 & 14.06 & .3 & & & & \\
452
\bottomrule
453
\end{tabular}
454
455
\caption{Example table for 4 constraints (W-Z), each having 4 parameters with (M und SD). Note: use always the same number of decimal places.}
456
\label{tab:Werte}
457
\end{table}
458
459
\IfFileExists{pgfplotstable.sty}{
460
461
\subsection{Tables with pgfplots}
462
With the pgfplotstable package tables can be directly generated from a csv file.
463
464
\begin{table}[h]
465
\centering
466
\pgfplotstabletypeset[
467
col sep = comma,
468
every head row/.style={before row=\toprule,after row=\midrule},
469
every last row/.style={after row=\bottomrule},
470
display columns/0/.style={string type,column name={}}
471
]
472
{data/data.csv}
473
\caption{Table directly generated from the values of a csf file.}
474
\end{table}
475
}{}
476
477
478
\section{Tables spanning multiple pages}
479
480
481
\begin{longtable}{|l|l|l|}
482
\caption{A sample long table.} \label{tab:long} \\
483
484
\hline \multicolumn{1}{|c|}{\textbf{First column}} & \multicolumn{1}{c|}{\textbf{Second column}} & \multicolumn{1}{c|}{\textbf{Third column}} \\ \hline
485
\endfirsthead
486
487
\multicolumn{3}{c}%
488
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
489
\hline \multicolumn{1}{|c|}{\textbf{First column}} & \multicolumn{1}{c|}{\textbf{Second column}} & \multicolumn{1}{c|}{\textbf{Third column}} \\ \hline
490
\endhead
491
492
\hline \multicolumn{3}{|r|}{{Continued on next page}} \\ \hline
493
\endfoot
494
495
\hline \hline
496
\endlastfoot
497
498
A & BC & D \\
499
A & BC & D \\
500
A & BC & D \\
501
A & BC & D \\
502
A & BC & D \\
503
A & BC & D \\
504
A & BC & D \\
505
A & BC & D \\
506
A & BC & D \\
507
A & BC & D \\
508
A & BC & D \\
509
A & BC & D \\
510
A & BC & D \\
511
A & BC & D \\
512
A & BC & D \\
513
A & BC & D \\
514
A & BC & D \\
515
A & BC & D \\
516
A & BC & D \\
517
A & BC & D \\
518
A & BC & D \\
519
A & BC & D \\
520
A & BC & D \\
521
A & BC & D \\
522
A & BC & D \\
523
A & BC & D \\
524
A & BC & D \\
525
A & BC & D \\
526
A & BC & D \\
527
A & BC & D \\
528
A & BC & D \\
529
A & BC & D \\
530
A & BC & D \\
531
A & BC & D \\
532
A & BC & D \\
533
A & BC & D \\
534
A & BC & D \\
535
A & BC & D \\
536
A & BC & D \\
537
A & BC & D \\
538
A & BC & D \\
539
A & BC & D \\
540
A & BC & D \\
541
A & BC & D \\
542
A & BC & D \\
543
A & BC & D \\
544
A & BC & D \\
545
A & BC & D \\
546
A & BC & D \\
547
A & BC & D \\
548
A & BC & D \\
549
A & BC & D \\
550
A & BC & D \\
551
A & BC & D \\
552
A & BC & D \\
553
A & BC & D \\
554
A & BC & D \\
555
A & BC & D \\
556
A & BC & D \\
557
A & BC & D \\
558
A & BC & D \\
559
A & BC & D \\
560
A & BC & D \\
561
A & BC & D \\
562
A & BC & D \\
563
A & BC & D \\
564
A & BC & D \\
565
A & BC & D \\
566
A & BC & D \\
567
A & BC & D \\
568
A & BC & D \\
569
A & BC & D \\
570
A & BC & D \\
571
A & BC & D \\
572
A & BC & D \\
573
A & BC & D \\
574
A & BC & D \\
575
A & BC & D \\
576
A & BC & D \\
577
A & BC & D \\
578
\end{longtable}
579
580
581
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
582
\section{Abbreviations}
583
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
584
At the first pass, the \gls{fr} was 5.
585
At the second pass was \gls{fr} 3.
586
The plural form can be seen here: \glspl{er}.
587
To demonstrate what the list of abbreviations looks like for longer description texts, \glspl{rdbms} must be mentioned here.
588
589
With \verb+\gls{...}+ you can enter abbreviations, the first time you call it, the long form is used.
590
When reusing \verb+\gls{..}+ the short form is automatically displayed.
591
The abbreviation is also automatically inserted in the abbreviation list.
592
With \verb+\glspl{...}+ the plural form is used.
593
If you want the short form to appear directly at the first use, you can use \verb+\glsunset{..}+ to mark an abbreviation as already used.
594
The opposite is achieved with \verb+\glsreset{..}+.
595
596
Abbreviations are defined in \verb+\content\ausarbeitung.tex+ by means of \verb+\newacronym{...}{...}{...}+.
597
598
More information at: \url{http://tug.ctan.org/macros/latex/contrib/glossaries/glossariesbegin.pdf}
599
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
600
\section{References}
601
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
602
For distant sections \qq{varioref} is recommended:
603
\qq{See \vref{sec:mf}}.
604
The command \texttt{\textbackslash{}vref} works similarly to \texttt{\textbackslash{}cref} the difference being that a reference to the page is additionally added.
605
\texttt{vref}: \qq{\vref{sec:firstsectioninlatexhints}}, \texttt{cref}: \qq{\cref{sec:firstsectioninlatexhints}}, \texttt{ref}: \qq{\ref{sec:firstsectioninlatexhints}}.
606
607
If \qq{varioref} causes difficulties, then \qq{cref} can be used instead.
608
This also creates the word \qq{section} automatically: \cref{sec:mf}.
609
This is also possible for illustrations etc.
610
In English please use \verb1\Cref{...}1 (with large \qq{C} at the beginning).
611
612
%With MiKTeX installation from 2012-01-16 no longer necessary.
613
%If a section becomes longer than one page and you want to refer to a specific place in the section with \texttt{\textbackslash{}vref}, then you should use \texttt{\textbackslash{}phantomsection} then using \texttt{vref} will also display the correct page number.
614
615
%%The link location will be placed on the line below.
616
%%Tipp von http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing#The_hyperref_package_and_.5Cphantomsection
617
%\phantomsection
618
%\label{alabel}
619
%View the example for \texttt{\textbackslash{}phantomsection} in the \LaTeX{} source code.
620
621
%Here is the example: See Section \vref{hack1} and Section \vref{hack2}.
622
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
623
\section{Definitions}
624
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
625
\begin{definition}[Title]
626
\label{def:def1}
627
Definition Text
628
\end{definition}
629
630
\Cref{def:def1} shows \ldots
631
632
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
633
\section{Footnotes}
634
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
635
Footnotes are provided by the command \verb+\footnote{...}+\footnote{\label{fussnote}Example footnote.}. Citing footnotes is possible by provinding a label\verb+\footnote{\label{...}...}+ and cite the footnote with \verb+\cref{...}+ in the text\cref{fussnote}.
636
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
637
638
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
639
\section{Various Things}
640
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
641
\label{sec:diff}
642
\ifdeutsch
643
Numbers (123\,654\,789) are nicely set.
644
Either in a line or as a non-lining figure.
645
The latter is reached by the parameter \texttt{osf} at package \texttt{libertine} or.\ \texttt{mathpazo} in \text{fonts.tex}.
646
\fi
647
648
\begin{filecontents*}[overwrite]{\democodefile}
649
\begin{compactenum}[I.]
650
\item You can also keep the numbering compact thanks to paralist
651
\item and switch to a different numbering
652
\end{compactenum}
653
\end{filecontents*}
654
\PrintDemo{style=parallel}
655
656
The words \qq{workflow} and \qq{dwarflike} can be copied from the PDF and pasted to a text file.
657
658
\begin{filecontents*}[overwrite]{\democodefile}
659
In case \LuaLaTeX{} is used as the compiler, there is no ligature at \qq{f\/l} in the word \qq{dwarflike} (in contrast to \qq{fl} at \qq{workflow}).
660
In other words: \qq{dwarflike} and \qq{dwarf\/like} look the same in the PDF.
661
In case they do not, there is an issue with Lua\LaTeX{} and the selnolig package.
662
\end{filecontents*}
663
\PrintDemo{style=parallel}
664
% Meta comment: The precise form of the optimal ligation suppression command may vary depending on the character pairs involved - see https://tex.stackexchange.com/q/28437/9075
665
666
667
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
668
\section{Closing remarks}
669
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
670
Please feel free to provide enhancements for this template and create a new ticket on GitHub (\url{https://github.com/latextemplates/uni-stuttgart-computer-science-template/issues}).
671
672