some corrections

main
Sebastian Preisner 2 years ago
parent 6cdcaae9ba
commit 92baf0b387

@ -15,7 +15,8 @@
$babel-lang$, $babel-lang$,
$endif$ $endif$
bibliography=totocnumbered, bibliography=totocnumbered,
listof=totocnumbered listof=totocnumbered,
toc=flat
]{scrartcl} ]{scrartcl}
$if(lang)$ $if(lang)$
@ -44,7 +45,10 @@ $endif$
% Oben und unten: 2cm % Oben und unten: 2cm
% Rechts: 4cm (Korrekturrand) % Rechts: 4cm (Korrekturrand)
% ------------------------------------------------------------ % ------------------------------------------------------------
\usepackage[a4paper, top=$if(seite.rand_oben)$$seite.rand_oben$$else$27mm$endif$, left=$if(seite.rand_links)$$seite.rand_links$$else$20mm$endif$, right=$if(seite.rand_rechts)$$seite.rand_rechts$$else$40mm$endif$, bottom=$if(seite.rand_unten)$$seite.rand_unten$$else$35mm$endif$, headsep=10mm, footskip=12mm]{geometry} \usepackage[a4paper, top=$if(seite.rand_oben)$$seite.rand_oben$$else$25mm$endif$, left=$if(seite.rand_links)$$seite.rand_links$$else$25mm$endif$, right=$if(seite.rand_rechts)$$seite.rand_rechts$$else$40mm$endif$, bottom=$if(seite.rand_unten)$$seite.rand_unten$$else$30mm$endif$, headsep=10mm, footskip=12mm]{geometry}
% Style the toc like discribed in DIN 1421
\usepackage[subfigure,titles]{tocloft} % style for toc lot and lof
\usepackage[right]{eurosym} \usepackage[right]{eurosym}
\usepackage[printonlyused]{acronym} \usepackage[printonlyused]{acronym}
@ -55,7 +59,6 @@ $endif$
\usepackage{array} \usepackage{array}
\usepackage{parskip} \usepackage{parskip}
\usepackage[right]{eurosym} \usepackage[right]{eurosym}
\usepackage[subfigure,titles]{tocloft}
\usepackage{helvet} \usepackage{helvet}
\usepackage{graphicx} \usepackage{graphicx}
\usepackage[export]{adjustbox} % also loads graphicx, to have max width for graphics \usepackage[export]{adjustbox} % also loads graphicx, to have max width for graphics
@ -179,26 +182,26 @@ $endif$
pdfstartview={FitH}, pdfstartview={FitH},
pdftitle={$if(title)$$title$$endif$$if(aufgabe.code)$: $aufgabe.code$$endif$- \studentname}, pdftitle={$if(title)$$title$$endif$$if(aufgabe.code)$: $aufgabe.code$$endif$- \studentname},
pdfauthor={$if(author)$$author$$else$\studentname$endif$$if(student.matrikelnr)$, Matrikelnummer: $student.matrikelnr$$endif$}, pdfauthor={$if(author)$$author$$else$\studentname$endif$$if(student.matrikelnr)$, Matrikelnummer: $student.matrikelnr$$endif$},
$if(studium.studiengang)$ $if(studium.studiengang)$
pdfsubject={Studiengang: $studium.studiengang$}, pdfsubject={Studiengang: $studium.studiengang$},
$endif$ $endif$
pdfcreator={\LaTeX\ with package \flqq hyperref\frqq via pandoc}, pdfcreator={\LaTeX\ with package \flqq hyperref\frqq via pandoc},
pdfproducer={pdfTeX \the\pdftexversion.\pdftexrevision}, pdfproducer={pdfTeX \the\pdftexversion.\pdftexrevision},
pdfkeywords={$if(aufgabe.typ)$$aufgabe.typ$,$endif$ $if(student.matrikelnr)$$student.matrikelnr$,$endif$ $if(aufgabe.code)$$aufgabe.code$,$endif$ $if(keywords)$ $for(keywords)$ $keywords$ $sep$, $endfor$$endif$}, pdfkeywords={$if(aufgabe.typ)$$aufgabe.typ$,$endif$ $if(student.matrikelnr)$$student.matrikelnr$,$endif$ $if(aufgabe.code)$$aufgabe.code$,$endif$ $if(keywords)$ $for(keywords)$ $keywords[, ]$ $endfor$$endif$},
pdfnewwindow=true, pdfnewwindow=true,
$if(lang)$ $if(lang)$
pdflang=$lang$, pdflang=$lang$,
$endif$ $endif$
pdfdisplaydoctitle=true, pdfdisplaydoctitle=true,
$if(colorlinks)$ $if(colorlinks)$
colorlinks=true, colorlinks=true,
linkcolor=$if(linkcolor)$$linkcolor$$else$gray$endif$, linkcolor=$if(linkcolor)$$linkcolor$$else$gray$endif$,
filecolor=$if(filecolor)$$filecolor$$else$magenta$endif$, filecolor=$if(filecolor)$$filecolor$$else$magenta$endif$,
citecolor=$if(citecolor)$$citecolor$$else$gray$endif$, citecolor=$if(citecolor)$$citecolor$$else$gray$endif$,
urlcolor=$if(urlcolor)$$urlcolor$$else$black$endif$, urlcolor=$if(urlcolor)$$urlcolor$$else$black$endif$,
$else$ $else$
hidelinks, hidelinks,
$endif$ $endif$
} }
% Designing blockquote % Designing blockquote
@ -293,9 +296,9 @@ $if(numbersections)$
%\setcounter{secnumdepth}{-\maxdimen} % remove section numbering %\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
$endif$ $endif$
% ---------------------------------------------------------------------------- % --------------------------------------------------------------
% begin document % begin document
% ---------------------------------------------------------------------------- % --------------------------------------------------------------
\begin{document} \begin{document}
@ -309,9 +312,9 @@ $if(assignment.beforetitle)$
$endif$ $endif$
$endif$ $endif$
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
% Kopf und Fußzeile % Kopf und Fußzeile
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
\renewcommand{\sectionmark}[1]{\markright{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\leftmark}{\rightmark} \renewcommand{\leftmark}{\rightmark}
\pagestyle{fancy} \pagestyle{fancy}
@ -333,21 +336,21 @@ $endif$
\let\oldsection\section \let\oldsection\section
\renewcommand\section{\clearpage\oldsection} \renewcommand\section{\clearpage\oldsection}
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
% Titelseite % Titelseite
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
\thispagestyle{empty} \thispagestyle{empty}
\begin{center} \begin{center}
$if(logo)$ $if(logo)$
\includegraphics[max width=\textwidth]{$logo$}\\ \includegraphics[max width=\textwidth]{$logo$}\\
$else$ $else$
% Kein Logo definiert $-- Do Nothing if no logo is defined --$
$endif$ $endif$
$if(hochschule)$ $if(hochschule.name)$
$if(logo)$ $if(logo)$
% Logo eingefügt anstelle des Hochschulnamen $-- Do Nothing if the logo is defined --$
$else$ $else$
\Huge \textbf{$hochschule$} \\ \Huge \textbf{$hochschule.name$} \\
$endif$ $endif$
$endif$ $endif$
@ -411,30 +414,35 @@ $else$
\rule{0mm}{4ex}\textbf{Abgabedatum:} & \today \\ % No date set, use today \rule{0mm}{4ex}\textbf{Abgabedatum:} & \today \\ % No date set, use today
$endif$ $endif$
\end{tabular} \end{tabular}
\vfill
$if(hochschule.adresse)$
$hochschule.name$ $hochschule.adresse$
$endif$
\end{center} \end{center}
\pagebreak \pagebreak
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
% Assignment % Assignment
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
$if(assignment.file)$ $if(assignment.file)$
$if(assignment.beforetitle)$ $if(assignment.beforetitle)$
$-- Do Nothing if the assignment is before the title! --$
$else$ $else$
\assignment \assignment
$endif$ $endif$
$endif$ $endif$
$if(skipfirstpage)$ % Skip first page count, if skipfirstpage = 1 $if(skipfirstpage)$ % Skip first page count, if skipfirstpage = true
\clearpage \clearpage
\setcounter{page}{1} \setcounter{page}{1}
$endif$ $endif$
$if(abstract)$ $if(abstract)$
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
% Abstract % Abstract
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
\begin{abstract} \begin{abstract}
$abstract$ $abstract$
\end{abstract} \end{abstract}
@ -442,9 +450,9 @@ $endif$
$for(include-before)$ $for(include-before)$
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
% include-before Section % include-before Section
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
$include-before$ $include-before$
$endfor$ $endfor$
@ -454,14 +462,14 @@ $if(toc-title)$
$endif$ $endif$
{ {
$if(colorlinks)$ $if(colorlinks)$
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$} % Setup the link color of the toc \hypersetup{linkcolor=$if(toc-color)$$toc-color$$else$black$endif$} % Setup the link color of the toc
$endif$ $endif$
\setcounter{tocdepth}{$toc-depth$} \setcounter{tocdepth}{$toc-depth$}
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
% Inhaltsverzeichnis % Inhaltsverzeichnis
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
% TODO Typ vor Nummer % TODO Typ vor Nummer
\renewcommand{\cfttabpresnum}{Tab. } \renewcommand{\cfttabpresnum}{Tab. }
\renewcommand{\cftfigpresnum}{Abb. } \renewcommand{\cftfigpresnum}{Abb. }
@ -469,50 +477,19 @@ $endif$
\settowidth{\cftfignumwidth}{Abb. 10\quad} \settowidth{\cftfignumwidth}{Abb. 10\quad}
\singlespacing \singlespacing
\rhead{$if(lang)$INHALTSVERZEICHNIS$else$TABLE OF CONTENTS$endif$} \rhead{$if(lang)$INHALTSVERZEICHNIS$else$TABLE OF CONTENTS$endif$} % Set Headline right to INHALTSVERZEICHNIS
\renewcommand{\contentsname}{I $if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$} \renewcommand{\contentsname}{I $if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}
\phantomsection \phantomsection % Needet to hyperref the section
\addcontentsline{toc}{section}{\texorpdfstring{I \hspace{0.35em}$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}{$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}} %\addcontentsline{toc}{section}{\texorpdfstring{I \hspace{0.35em}$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}{$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}}
\addtocounter{section}{1} \addtocounter{section}{1} % reset the section counter to 1
\tableofcontents \tableofcontents
\pagebreak \pagebreak
} }
$endif$ $endif$
$if(lot)$ % --------------------------------------------------------------
% ----------------------------------------------------------------------------------------------------------
% Tabellenverzeichnis
% ----------------------------------------------------------------------------------------------------------
\rhead{$if(lang)$TABELLENVERZEICHNIS$else$LIST OF TABLES$endif$}
\listoftables
\pagebreak
$endif$
$if(lof)$
% ----------------------------------------------------------------------------------------------------------
% Abbildungsverzeichnis
% ----------------------------------------------------------------------------------------------------------
\rhead{$if(lang)$ABBILDUNGSVERZEICHNIS$else$LIST OF FIGURES$endif$}
\listoffigures
\pagebreak
$endif$
$if(abk)$
% ----------------------------------------------------------------------------------------------------------
% Abkürzungsverzeichnis
% ----------------------------------------------------------------------------------------------------------
\rhead{$if(lang)$ABKÜRZUNGSVERZEICHNIS$else$LIST OF ABBREVIATIONS$endif$}
\section{Abkürzungsverzeichnis}
\begin{acronym}[OSGi] % längste Abkürzung steht in eckigen Klammern
\setlength{\itemsep}{-\parsep} % geringerer Zeilenabstand
\acro{OSGi}{Open Service Gateway initiative}
\end{acronym}
\newpage
$endif$
% ----------------------------------------------------------------------------------------------------------
% Einrichtung der Kopfzeile % Einrichtung der Kopfzeile
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
\renewcommand{\sectionmark}[1]{\markright{#1}} \renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{} \renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{} \renewcommand{\subsubsectionmark}[1]{}
@ -528,15 +505,55 @@ $endif$
%\renewcommand{\includegraphics}[1][]{\includegraphics[width=0.9\columnwidth,keepaspectratio]{#1}} %\renewcommand{\includegraphics}[1][]{\includegraphics[width=0.9\columnwidth,keepaspectratio]{#1}}
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
% Inhalt % Inhalt
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
$body$ $body$
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
% Verzeichnisse
% --------------------------------------------------------------
\pagebreak % wird benötigt um den header erst auf der folgeseite beginnen zu lassen.
\lhead{} % remove the left part of header
$if(lof)$
% --------------------------------------------------------------
% Abbildungsverzeichnis
% --------------------------------------------------------------
\rhead{$if(lang)$ABBILDUNGSVERZEICHNIS$else$LIST OF FIGURES$endif$}
\listoffigures
\pagebreak
$endif$
$if(acronym)$
% --------------------------------------------------------------
% Abkürzungsverzeichnis
% --------------------------------------------------------------
\rhead{$if(lang)$ABKÜRZUNGSVERZEICHNIS$else$LIST OF ABBREVIATIONS$endif$}
\section*{Abkürzungsverzeichnis}
\addcontentsline{toc}{section}{Abkürzungsverzeichnis}
\begin{acronym}[$acronym.longest$] % längste Abkürzung steht in eckigen Klammern
%\setlength{\itemsep}{-\parsep} % geringerer Zeilenabstand
$for(acronym.list)$
\acro{$it.id$}[$it.short$]{$it.long$}
$endfor$
\end{acronym}
\newpage
$endif$
$if(lot)$
% -----------------------------------------------------------------
% Tabellenverzeichnis
% -----------------------------------------------------------------
\rhead{$if(lang)$TABELLENVERZEICHNIS$else$LIST OF TABLES$endif$}
\listoftables
\pagebreak
$endif$
% --------------------------------------------------------------
% Literaturverzeichnis % Literaturverzeichnis
% ---------------------------------------------------------------------------------------------------------- % --------------------------------------------------------------
$if(natbib)$ $if(natbib)$
$if(bibliography)$ $if(bibliography)$
@ -551,7 +568,7 @@ $if(natbib)$
\begin{frame}[allowframebreaks]{$biblio-title$} \begin{frame}[allowframebreaks]{$biblio-title$}
\bibliographytrue \bibliographytrue
$endif$ $endif$
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} \bibliography{$for(bibliography)$$bibliography$$sep$, $endfor$}
$if(beamer)$ $if(beamer)$
\end{frame} \end{frame}
$endif$ $endif$
@ -574,51 +591,10 @@ $include-after$
$endfor$ $endfor$
%$if(biblatex)$
% \pagebreak
% \lhead{}
% \rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
% \renewcommand{\refname}{Quellenverzeichnis}
% \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
% \pagebreak
%$endif$
%$if(natbib)$
% $if(bibliography)$
% \pagebreak
% \lhead{}
% \rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
% \renewcommand{\refname}{Quellenverzeichnis}
% \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
% $endif$
%$endif$
%$if(csl-refs)$
% \pagebreak
%\lhead{}
%\rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
%\renewcommand{\refname}{Quellenverzeichnis}
%$endif$
%$if(biblatex)$
% ----------------------------------------------------------------------------------------------------------
% Literatur
% ----------------------------------------------------------------------------------------------------------
% \pagebreak
% \lhead{}
% \rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
% \renewcommand{\refname}{Quellenverzeichnis}
% \ bibliographystyle{myalpha}
% \bibliography{bibo}
% \pagebreak
%\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
%$endif$
$if(insurance)$ $if(insurance)$
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
% Erklärung zur Selbstständigkeit % Erklärung zur Selbstständigkeit
% ---------------------------------------------------------------------------------------------------------- % -------------------------------------------------------------
\newpage \newpage
\thispagestyle{empty} \thispagestyle{empty}
\begin{center} \begin{center}

Loading…
Cancel
Save