some corrections

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

@ -15,7 +15,8 @@
$babel-lang$,
$endif$
bibliography=totocnumbered,
listof=totocnumbered
listof=totocnumbered,
toc=flat
]{scrartcl}
$if(lang)$
@ -44,7 +45,10 @@ $endif$
% Oben und unten: 2cm
% 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[printonlyused]{acronym}
@ -55,7 +59,6 @@ $endif$
\usepackage{array}
\usepackage{parskip}
\usepackage[right]{eurosym}
\usepackage[subfigure,titles]{tocloft}
\usepackage{helvet}
\usepackage{graphicx}
\usepackage[export]{adjustbox} % also loads graphicx, to have max width for graphics
@ -179,26 +182,26 @@ $endif$
pdfstartview={FitH},
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$},
$if(studium.studiengang)$
$if(studium.studiengang)$
pdfsubject={Studiengang: $studium.studiengang$},
$endif$
$endif$
pdfcreator={\LaTeX\ with package \flqq hyperref\frqq via pandoc},
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,
$if(lang)$
$if(lang)$
pdflang=$lang$,
$endif$
$endif$
pdfdisplaydoctitle=true,
$if(colorlinks)$
$if(colorlinks)$
colorlinks=true,
linkcolor=$if(linkcolor)$$linkcolor$$else$gray$endif$,
filecolor=$if(filecolor)$$filecolor$$else$magenta$endif$,
citecolor=$if(citecolor)$$citecolor$$else$gray$endif$,
urlcolor=$if(urlcolor)$$urlcolor$$else$black$endif$,
$else$
$else$
hidelinks,
$endif$
$endif$
}
% Designing blockquote
@ -293,9 +296,9 @@ $if(numbersections)$
%\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
$endif$
% ----------------------------------------------------------------------------
% --------------------------------------------------------------
% begin document
% ----------------------------------------------------------------------------
% --------------------------------------------------------------
\begin{document}
@ -309,9 +312,9 @@ $if(assignment.beforetitle)$
$endif$
$endif$
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
% Kopf und Fußzeile
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
\renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\leftmark}{\rightmark}
\pagestyle{fancy}
@ -333,21 +336,21 @@ $endif$
\let\oldsection\section
\renewcommand\section{\clearpage\oldsection}
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
% Titelseite
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
\thispagestyle{empty}
\begin{center}
$if(logo)$
\includegraphics[max width=\textwidth]{$logo$}\\
$else$
% Kein Logo definiert
$-- Do Nothing if no logo is defined --$
$endif$
$if(hochschule)$
$if(hochschule.name)$
$if(logo)$
% Logo eingefügt anstelle des Hochschulnamen
$-- Do Nothing if the logo is defined --$
$else$
\Huge \textbf{$hochschule$} \\
\Huge \textbf{$hochschule.name$} \\
$endif$
$endif$
@ -411,30 +414,35 @@ $else$
\rule{0mm}{4ex}\textbf{Abgabedatum:} & \today \\ % No date set, use today
$endif$
\end{tabular}
\vfill
$if(hochschule.adresse)$
$hochschule.name$ $hochschule.adresse$
$endif$
\end{center}
\pagebreak
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
% Assignment
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
$if(assignment.file)$
$if(assignment.beforetitle)$
$-- Do Nothing if the assignment is before the title! --$
$else$
\assignment
$endif$
$endif$
$if(skipfirstpage)$ % Skip first page count, if skipfirstpage = 1
$if(skipfirstpage)$ % Skip first page count, if skipfirstpage = true
\clearpage
\setcounter{page}{1}
$endif$
$if(abstract)$
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
% Abstract
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
\begin{abstract}
$abstract$
\end{abstract}
@ -442,9 +450,9 @@ $endif$
$for(include-before)$
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
% include-before Section
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
$include-before$
$endfor$
@ -454,14 +462,14 @@ $if(toc-title)$
$endif$
{
$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$
\setcounter{tocdepth}{$toc-depth$}
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
% Inhaltsverzeichnis
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
% TODO Typ vor Nummer
\renewcommand{\cfttabpresnum}{Tab. }
\renewcommand{\cftfigpresnum}{Abb. }
@ -469,50 +477,19 @@ $endif$
\settowidth{\cftfignumwidth}{Abb. 10\quad}
\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$}
\phantomsection
\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}
\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$}}
\addtocounter{section}{1} % reset the section counter to 1
\tableofcontents
\pagebreak
}
$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
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
\renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{}
@ -528,15 +505,55 @@ $endif$
%\renewcommand{\includegraphics}[1][]{\includegraphics[width=0.9\columnwidth,keepaspectratio]{#1}}
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
% Inhalt
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
$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
% ----------------------------------------------------------------------------------------------------------
% --------------------------------------------------------------
$if(natbib)$
$if(bibliography)$
@ -551,7 +568,7 @@ $if(natbib)$
\begin{frame}[allowframebreaks]{$biblio-title$}
\bibliographytrue
$endif$
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
\bibliography{$for(bibliography)$$bibliography$$sep$, $endfor$}
$if(beamer)$
\end{frame}
$endif$
@ -574,51 +591,10 @@ $include-after$
$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)$
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
% Erklärung zur Selbstständigkeit
% ----------------------------------------------------------------------------------------------------------
% -------------------------------------------------------------
\newpage
\thispagestyle{empty}
\begin{center}

Loading…
Cancel
Save