Path: blob/main/latexhints-english.tex
340 views
% !TeX root = main-english.tex1% !TeX spellcheck = en-US2% !TeX encoding = utf83% -*- coding:utf-8 mod:LaTeX -*-45%This smart spell only works if no changes have been made to the chapter6%using the options proposed in preambel/chapterheads.tex.7\setchapterpreamble[u]{%8\dictum[Albert Einstein]{We cannot solve our problems with the same level of thinking that created them}9}10\chapter{LaTeX Hints}11\label{chap:latexhints}1213One sentence per line.14This rule is important for the usage of version control systems.15A new line is generated with a blank line.16As you would do in Word:17New paragraphs are generated by pressing enter.18In LaTeX, this does not lead to a new paragraph as LaTeX joins subsequent lines.19In case you want a new paragraph, just press enter twice (!).20This leads to an empty line.21In word, there is the functionality to press shift and enter.22This leads to a hard line break.23The text starts at the beginning of a new line.24In LaTeX, you can do that by using two backslashes (\textbackslash\textbackslash).25This is rarely used.2627Please do \textit{not} use two backslashes for new paragraphs.28For instance, this sentence belongs to the same paragraph, whereas the last one started a new one.29A long motivation for that is provided at \url{http://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/#section.3}.3031One can write \emph{emphasized text (rendered in italics)} and \textbf{bold text}.3233\section{File Encoding and Support of Umlauts}34\label{sec:firstsectioninlatexhints}35The template offers foll UTF-8 support.36All recent editors should not have issues with that.3738\section{Citations}394041References are set by means of \texttt{\textbackslash cite[key]}.4243\begin{filecontents*}[overwrite]{\democodefile}44Example: \cite{WSPA} or by author input: \citet{WSPA}.45\end{filecontents*}46\PrintDemo{style=parallel}4748The following sentence demonstrates49\begin{inparaenum}[1.]50\item the capitalization of author names at the beginning of the sentence,51\item the correct citation using author names and the reference,52\item that the author names are a hyperlink to the bibliography and that53\item the bibliography contains the name prefix \qq{van der} of \qq{Wil M.\,P.\ van der Aalst}.54\end{inparaenum}5556\begin{filecontents*}[overwrite]{\democodefile}57\Citet{RVvdA2016} present a study on the effectiveness of workflow management systems.58\end{filecontents*}59\PrintDemo{style=parallel}6061The 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.6263\begin{filecontents*}[overwrite]{\democodefile}64The workflow engine Apache ODE \cite{ApacheODE} executes \BPEL processes reliably.65\end{filecontents*}66\PrintDemo{style=parallel}6768\begin{filecontents*}[overwrite]{\democodefile}69Words are best enclosed using \texttt{\textbackslash qq\{..\}}, then the correct quotes are used.70\end{filecontents*}71\PrintDemo{style=parallel}7273When creating the Bibtex file it is recommended to make sure that the DOI is listed.7475\section{Formulas and Equations}76\label{sec:mf}7778\begin{filecontents*}[overwrite]{\democodefile}79Equations $f(x)=x$ inside the text can be provided.80\end{filecontents*}81\PrintDemo{style=parallel}8283A list with all available mathematical symbols is provided at \url{http://texdoc.net/pkg/symbols-a4}.8485\begin{filecontents*}[overwrite]{\democodefile}86As an example, the set of natural numbers is given by $\mathbb{N}$.87\end{filecontents*}88\PrintDemo{style=parallel}8990For the documentation of editing mathematical formulas read the package documentation of \texttt{amsmath}\footnote{\url{http://texdoc.net/pkg/amsmath}}.9192Equation~\ref{eq:test} is numbered and can be referenced in the text:93\begin{filecontents*}[overwrite]{\democodefile}94\begin{align}95\label{eq:test}96x = y97\end{align}98\end{filecontents*}99\PrintDemo{style=parallel}100101The following equation is not numbered because of using \texttt{\textbackslash align*} as environment.102\begin{filecontents*}[overwrite]{\democodefile}103\begin{align*}104x = y105\end{align*}106\end{filecontents*}107\PrintDemo{style=parallel}108109The template offers \verb+\abs+ to enable the bars to scale well at the absolute value:110111\begin{filecontents*}[overwrite]{\democodefile}112$\abs{X}$.113\end{filecontents*}114\PrintDemo{style=parallel}115116The documentation available at \url{http://www.ctan.org/tex-archive/help/Catalogue/entries/voss-mathmode.html} provides more details about mathematical environments.117118119%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%120\section{Sourcecode}121%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%122\Cref{lst:ListingANDlstlisting} shows how to embed source code.123With \texttt{\textbackslash lstinputlisting} the source code can be loaded directly from files.124125%Listing-Umgebung wurde durch \newfloat{Listing} definiert126\begin{Listing}127\begin{lstlisting}128<listing name="second sample">129<content>not interesting</content>130</listing>131\end{lstlisting}132\caption{The code is separated by two horizontal lines in the listings environment.}133\label{lst:ListingANDlstlisting}134\end{Listing}135136\begin{filecontents*}[overwrite]{\democodefile}137Source code is also available in the text \lstinline|<listing />|.138\end{filecontents*}139\PrintDemo{style=parallel}140141142%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%143\section{Pseudocode}144%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%145\Cref{alg:sample} shows a sample algorithm.146\begin{Algorithmus} %Use the environment only if you want to place the algorithm similar to graphics from TeX147\caption{Sample algorithm}148\label{alg:sample}149\begin{algorithmic}150\Procedure{Sample}{$a$,$v_e$}151\State $\mathsf{parentHandled} \gets (a = \mathsf{process}) \lor \mathsf{visited}(a'), (a',c,a) \in \mathsf{HR}$152\State \Comment $(a',c'a) \in \mathsf{HR}$ denotes that $a'$ is the parent of $a$153\If{$\mathsf{parentHandled}\,\land(\mathcal{L}_\mathit{in}(a)=\emptyset\,\lor\,\forall l \in \mathcal{L}_\mathit{in}(a): \mathsf{visited}(l))$}154\State $\mathsf{visited}(a) \gets \text{true}$155\State $\mathsf{writes}_\circ(a,v_e) \gets156\begin{cases}157\mathsf{joinLinks}(a,v_e) & \abs{\mathcal{L}_\mathit{in}(a)} > 0\\158\mathsf{writes}_\circ(p,v_e)159& \exists p: (p,c,a) \in \mathsf{HR}\\160(\emptyset, \emptyset, \emptyset, false) & \text{otherwise}161\end{cases}162$163\If{$a\in\mathcal{A}_\mathit{basic}$}164\State \Call{HandleBasicActivity}{$a$,$v_e$}165\ElsIf{$a\in\mathcal{A}_\mathit{flow}$}166\State \Call{HandleFlow}{$a$,$v_e$}167\ElsIf{$a = \mathsf{process}$} \Comment Directly handle the contained activity168\State \Call{HandleActivity}{$a'$,$v_e$}, $(a,\bot,a') \in \mathsf{HR}$169\State $\mathsf{writes}_\bullet(a) \gets \mathsf{writes}_\bullet(a')$170\EndIf171\ForAll{$l \in \mathcal{L}_\mathit{out}(a)$}172\State \Call{HandleLink}{$l$,$v_e$}173\EndFor174\EndIf175\EndProcedure176\end{algorithmic}177\end{Algorithmus}178179\clearpage180And if you want to write an algorithm that goes over several pages, you can only do this with the following \textbf{dirty} hack:181182{183\begin{minipage}{\textwidth}184\hrule height .8pt width\textwidth185\vskip.3em%\vskip\abovecaptionskip\relax186\stepcounter{Algorithmus}187\addcontentsline{alg}{Algorithmus}{\protect\numberline{\theAlgorithmus}{\ignorespaces Description \relax}}188\noindent\textbf{Algorithmus \theAlgorithmus} Description189%\stepcounter{algorithm}190%\addcontentsline{alg}{Algorithmus}{\thealgorithm{}\hskip0em Description}191%\textbf{Algorithmus \thealgorithm} Description192\vskip.3em%\vskip\belowcaptionskip\relax193\hrule height .5pt width\textwidth194\end{minipage}195%without the following line, the text is never at the rule196\vskip-.3em197%198code goes here\\199test2\\200%201\vskip-.7em202\hrule height .5pt width\textwidth203}204205206%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%207\section{Figures}208%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%209The \cref{fig:chor1} and \ref{fig:chor2} are important to understand this document.210In the appendix \vref{fig:AnhangsChor} shows again the complete choreography.211212%The parameters in square brackets are optional - e.g. [htb!]213%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 ("!")214%These should NOT be used if possible. LaTeX's algorithm for placing the glide environment is already very good!215\begin{figure}216\centering217\includegraphics[width=\textwidth]{choreography.pdf}218\caption{Example Choreography}219\label{fig:chor1}220\end{figure}221222\begin{figure}223\centering224\includegraphics[width=.8\textwidth]{choreography.pdf}225\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?}226\label{fig:chor2}227\end{figure}228229230\begin{figure}231\hfill232\begin{subfigure}{.3\textwidth}233\includegraphics[width=\textwidth]{choreography.pdf}234\caption{Choreography 1}235\label{fig:subfigA}236\end{subfigure}237\hfill238\begin{subfigure}{.3\textwidth}239\includegraphics[width=\textwidth]{choreography.pdf}240\caption{Choreography 2}241\label{fig:subfigB}242\end{subfigure}243\hfill244\begin{subfigure}{.3\textwidth}245\includegraphics[width=.9\textwidth]{choreography.pdf}246\caption{Choreography 3}247\label{fig:subfigC}248\end{subfigure}249\caption{Example to place 3 illustrations next to each other. Further, it is possible to reference each separately.}250\label{fig:subfig_example}251\end{figure}252253\Cref{fig:subfig_example} shows the usage of the package subcaption.254It is indeed possible to reference to sub figures: \Cref{fig:subfigA}.255256It is possible to convert SVGs to PDF directly during compilation.257This is described in the source code of latex-tipps.tex, but commented out.258259\iffalse % <-- Take this away if inkscape is in the path260The SVG in \cref{fig:directSVG} is directly included, while the text in the SVG in \cref{fig:latexSVG} is set using pdflatex.261If 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.262263\begin{figure}264\centering265\includegraphics{svgexample.svg}266\caption{SVG directly included}267\label{fig:directSVG}268\end{figure}269270\begin{figure}271\centering272\def\svgwidth{.4\textwidth}273\includesvg{svgexample}274\caption{Text in SVN set via \LaTeX{}}275\label{fig:latexSVG}276\end{figure}277\fi % <-- Take this away if inkscape is in the path278279280281\section{More Illustrations}282\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.283284\begin{figure}285\centering286\includegraphics[width=\textwidth]{choreography.pdf}287\caption{Example Choreography I}288\label{fig:AnhangsChor}289\end{figure}290291\begin{landscape}292%sidewaysfigure293\begin{figure}294\centering295\includegraphics[width=\textwidth]{choreography.pdf}296\caption{Example Choreography II}297\label{fig:AnhangsChor2}298\end{figure}299\end{landscape}300301302\IfFileExists{pgfplots.sty}{303%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%304\section{Plots with pgfplots}305%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%306The 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}}.307\begin{figure}[h]308\centering309\begin{tikzpicture}310\begin{axis}[xlabel=$x$,311ylabel=$\sin(x)$]312\addplot {sin(deg(x))}; % Print sine function313\end{axis}314\end{tikzpicture}315\caption{Plot of $\sin(x)$ direclty inside the figure environment with pgfplots.}316\end{figure}317318\begin{figure}[h]319\centering320\begin{tikzpicture}321\begin{axis}[xlabel=$x$,322ylabel=$y$]323\addplot table [x=a, y=c, col sep=comma] {data/data.csv}; % Read coordinates from csv file and plot them324\end{axis}325\end{tikzpicture}326\caption{Coordinates $x$ and $y$ read from csv file and plotted pgfplots.}327\end{figure}328329}{}330331332%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%333\section{Figures with tikz}334%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%335The tikz is a package for creating graphics programmatically. With this package grids or other regular strucutres can be easliy generated.336337\begin{figure}[ht]338\centering339\begin{tikzpicture}340\draw(0,0) rectangle (4,4);341\foreach \x in {0.5,1,1.5,2,2.5,3,3.5}342\foreach \y in {0.5,1,1.5,2,2.5,3,3.5}343\draw(\x,\y) circle (1pt);344\end{tikzpicture}345\caption{A regular grid generated easily with two for loops.}\label{fig:tikz_example}346\end{figure}347348349%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%350\section{UML diagrams using tikz-uml}351%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%352353\Cref{fig:uml} presents a class diagram typeset using tikz-uml.354355\begin{figure}356\centering357\begin{tikzpicture}358\begin{umlpackage}{p}359\begin{umlpackage}{sp1}360\umlclass[template=T]{A}{361n : uint \\ t : float362}{}363\umlclass[y=-3]{B}{364d : double365}{366\umlvirt{setB(b : B) : void} \\ getB() : B}367\end{umlpackage}368\begin{umlpackage}[x=10,y=-6]{sp2}369\umlinterface{C}{370n : uint \\ s : string371}{}372\end{umlpackage}373\umlclass[x=2,y=-10]{D}{374n : uint375}{}376\end{umlpackage}377378\umlassoc[geometry=-|-, arg1=tata, mult1=*, pos1=0.3, arg2=toto, mult2=1, pos2=2.9, align2=left]{C}{B}379\umlunicompo[geometry=-|, arg=titi, mult=*, pos=1.7, stereo=vector]{D}{C}380\umlimport[geometry=|-, anchors=90 and 50, name=import]{sp2}{sp1}381\umlaggreg[arg=tutu, mult=1, pos=0.8, angle1=30, angle2=60, loopsize=2cm]{D}{D}382\umlinherit[geometry=-|]{D}{B}383\umlnote[x=2.5,y=-6, width=3cm]{B}{A note with respect to class B}384\umlnote[x=7.5,y=-2]{import-2}{A anotation}385\end{tikzpicture}386\caption{Class diagram generated with tikz-uml. Example adapted from Nicolas Kielbasiewicz.}387\label{fig:uml}388\end{figure}389390\section{UML diagrams using PlantUML}391392In case \lualatex{} is used and PlantUML is installed, UML diagrams can be defined using PlantUML.393394% Only works if "--shell-escape" is activated. Please activate only if you are sure, your compilation settings are correct395%\IfFileExists{plantuml.sty}{\input{latexhints-english-plantuml}}{}396397398%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%399\section{Linguistic Forests}400%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%401402\begin{filecontents*}[overwrite]{\democodefile}403\begin{forest}404[VP405[DP]406[V’407[V]408[DP]409]410]411\end{forest}412\end{filecontents*}413\PrintDemo{style=parallel}414415416%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%417\section{Tables}418%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%419\cref{tab:Ergebnisse} shows results and \cref{tab:Werte} shows how numerical data can be represented in a table.420\begin{table}421\centering422\begin{tabular}{ccc}423\toprule424\multicolumn{2}{c}{\textbf{summed}} & \textbf{Title} \\ \midrule425Table & as & in \\426\url{tabsatz.pdf} & recommended & gesetzt \\427428\multirow{2}{*}{Example} & \multicolumn{2}{c}{a nice example} \\429& \multicolumn{2}{c}{for using \qq{multirow}} \\430\bottomrule431\end{tabular}432\caption[Example Table]{Exampe Table -- see \url{http://www.ctan.org/tex-archive/info/german/tabsatz/}}433\label{tab:Ergebnisse}434\end{table}435436\begin{table}437\centering438\begin{tabular}{l *{8}{d{3.2}}}439\toprule440441& \multicolumn{2}{c}{\textbf{Parameter 1}} & \multicolumn{2}{c}{\textbf{Parameter 2}} & \multicolumn{2}{c}{\textbf{Parameter 3}} & \multicolumn{2}{c}{\textbf{Parameter 4}} \\442\cmidrule(r){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7}\cmidrule(l){8-9}443444\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}} \\445\midrule446447W & 1.1 & 5.55 & 6.66 & .01 & & & & \\448X & 22.22 & 0.0 & 77.5 & .1 & & & & \\449Y & 333.3 & .1 & 11.11 & .05 & & & & \\450Z & 4444.44 & 77.77 & 14.06 & .3 & & & & \\451\bottomrule452\end{tabular}453454\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.}455\label{tab:Werte}456\end{table}457458\IfFileExists{pgfplotstable.sty}{459460\subsection{Tables with pgfplots}461With the pgfplotstable package tables can be directly generated from a csv file.462463\begin{table}[h]464\centering465\pgfplotstabletypeset[466col sep = comma,467every head row/.style={before row=\toprule,after row=\midrule},468every last row/.style={after row=\bottomrule},469display columns/0/.style={string type,column name={}}470]471{data/data.csv}472\caption{Table directly generated from the values of a csf file.}473\end{table}474}{}475476477\section{Tables spanning multiple pages}478479480\begin{longtable}{|l|l|l|}481\caption{A sample long table.} \label{tab:long} \\482483\hline \multicolumn{1}{|c|}{\textbf{First column}} & \multicolumn{1}{c|}{\textbf{Second column}} & \multicolumn{1}{c|}{\textbf{Third column}} \\ \hline484\endfirsthead485486\multicolumn{3}{c}%487{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\488\hline \multicolumn{1}{|c|}{\textbf{First column}} & \multicolumn{1}{c|}{\textbf{Second column}} & \multicolumn{1}{c|}{\textbf{Third column}} \\ \hline489\endhead490491\hline \multicolumn{3}{|r|}{{Continued on next page}} \\ \hline492\endfoot493494\hline \hline495\endlastfoot496497A & BC & D \\498A & BC & D \\499A & BC & D \\500A & BC & D \\501A & BC & D \\502A & BC & D \\503A & BC & D \\504A & BC & D \\505A & BC & D \\506A & BC & D \\507A & BC & D \\508A & BC & D \\509A & BC & D \\510A & BC & D \\511A & BC & D \\512A & BC & D \\513A & BC & D \\514A & BC & D \\515A & BC & D \\516A & BC & D \\517A & BC & D \\518A & BC & D \\519A & BC & D \\520A & BC & D \\521A & BC & D \\522A & BC & D \\523A & BC & D \\524A & BC & D \\525A & BC & D \\526A & BC & D \\527A & BC & D \\528A & BC & D \\529A & BC & D \\530A & BC & D \\531A & BC & D \\532A & BC & D \\533A & BC & D \\534A & BC & D \\535A & BC & D \\536A & BC & D \\537A & BC & D \\538A & BC & D \\539A & BC & D \\540A & BC & D \\541A & BC & D \\542A & BC & D \\543A & BC & D \\544A & BC & D \\545A & BC & D \\546A & BC & D \\547A & BC & D \\548A & BC & D \\549A & BC & D \\550A & BC & D \\551A & BC & D \\552A & BC & D \\553A & BC & D \\554A & BC & D \\555A & BC & D \\556A & BC & D \\557A & BC & D \\558A & BC & D \\559A & BC & D \\560A & BC & D \\561A & BC & D \\562A & BC & D \\563A & BC & D \\564A & BC & D \\565A & BC & D \\566A & BC & D \\567A & BC & D \\568A & BC & D \\569A & BC & D \\570A & BC & D \\571A & BC & D \\572A & BC & D \\573A & BC & D \\574A & BC & D \\575A & BC & D \\576A & BC & D \\577\end{longtable}578579580%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%581\section{Abbreviations}582%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%583At the first pass, the \gls{fr} was 5.584At the second pass was \gls{fr} 3.585The plural form can be seen here: \glspl{er}.586To demonstrate what the list of abbreviations looks like for longer description texts, \glspl{rdbms} must be mentioned here.587588With \verb+\gls{...}+ you can enter abbreviations, the first time you call it, the long form is used.589When reusing \verb+\gls{..}+ the short form is automatically displayed.590The abbreviation is also automatically inserted in the abbreviation list.591With \verb+\glspl{...}+ the plural form is used.592If you want the short form to appear directly at the first use, you can use \verb+\glsunset{..}+ to mark an abbreviation as already used.593The opposite is achieved with \verb+\glsreset{..}+.594595Abbreviations are defined in \verb+\content\ausarbeitung.tex+ by means of \verb+\newacronym{...}{...}{...}+.596597More information at: \url{http://tug.ctan.org/macros/latex/contrib/glossaries/glossariesbegin.pdf}598%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%599\section{References}600%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%601For distant sections \qq{varioref} is recommended:602\qq{See \vref{sec:mf}}.603The command \texttt{\textbackslash{}vref} works similarly to \texttt{\textbackslash{}cref} the difference being that a reference to the page is additionally added.604\texttt{vref}: \qq{\vref{sec:firstsectioninlatexhints}}, \texttt{cref}: \qq{\cref{sec:firstsectioninlatexhints}}, \texttt{ref}: \qq{\ref{sec:firstsectioninlatexhints}}.605606If \qq{varioref} causes difficulties, then \qq{cref} can be used instead.607This also creates the word \qq{section} automatically: \cref{sec:mf}.608This is also possible for illustrations etc.609In English please use \verb1\Cref{...}1 (with large \qq{C} at the beginning).610611%With MiKTeX installation from 2012-01-16 no longer necessary.612%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.613614%%The link location will be placed on the line below.615%%Tipp von http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing#The_hyperref_package_and_.5Cphantomsection616%\phantomsection617%\label{alabel}618%View the example for \texttt{\textbackslash{}phantomsection} in the \LaTeX{} source code.619620%Here is the example: See Section \vref{hack1} and Section \vref{hack2}.621%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%622\section{Definitions}623%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%624\begin{definition}[Title]625\label{def:def1}626Definition Text627\end{definition}628629\Cref{def:def1} shows \ldots630631%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%632\section{Footnotes}633%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%634Footnotes 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}.635%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%636637%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%638\section{Various Things}639%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%640\label{sec:diff}641\ifdeutsch642Numbers (123\,654\,789) are nicely set.643Either in a line or as a non-lining figure.644The latter is reached by the parameter \texttt{osf} at package \texttt{libertine} or.\ \texttt{mathpazo} in \text{fonts.tex}.645\fi646647\begin{filecontents*}[overwrite]{\democodefile}648\begin{compactenum}[I.]649\item You can also keep the numbering compact thanks to paralist650\item and switch to a different numbering651\end{compactenum}652\end{filecontents*}653\PrintDemo{style=parallel}654655The words \qq{workflow} and \qq{dwarflike} can be copied from the PDF and pasted to a text file.656657\begin{filecontents*}[overwrite]{\democodefile}658In 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}).659In other words: \qq{dwarflike} and \qq{dwarf\/like} look the same in the PDF.660In case they do not, there is an issue with Lua\LaTeX{} and the selnolig package.661\end{filecontents*}662\PrintDemo{style=parallel}663% 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/9075664665666%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%667\section{Closing remarks}668%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%669Please 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}).670671672