Commit 1079129a authored by Jost Rossel's avatar Jost Rossel
Browse files

Add var printversion and refine paper-style doc

parent ceae68cc
......@@ -5,12 +5,16 @@ How can I improve my scientific writing skills?
\item \url{https://www.uni-paderborn.de/universitaet/kompetenzzentrum-schreiben/}
\end{itemize}
\ifthesis
\else % only use keywords for papers
\vspace*{2em}
{\small\textbf{Keywords:} \keywords}
\fi
\end{abstract}
\cleardoublepage
\ifthesis % only use declaration for a thesis
\pagestyle{scrplain} % switch off headers and footers
\section*{Official Declaration}
I hereby declare that I prepared this thesis entirely on my own and have not used outside sources without declaration in the text.
......@@ -31,6 +35,7 @@ Alle Ausführungen, die wörtlich oder sinngemäß übernommen worden sind, sind
\cleardoublepage
\pagestyle{scrheadings} % re-enable headers and footers
\fi
% generate table of contents
\tableofcontents
......
......@@ -4,15 +4,17 @@
% \thesisfalse % if the document is used as a paper
\thesistrue % if the document is used for a thesis
\def\type{Master} % or Bachelor or Seminar
% for Master/Bachelor set \thesistrue
% for seminar set \thesisfalse
\def\type{Master} % set \thesistrue
% \def\type{Bachelor} % set \thesistrue
% \def\type{Seminar} % set \thesisfalse
% \englishfalse % if document should be german
\englishtrue % if document should be english
% \printversionfalse % disables printing offsets and right-side page openings
\def\ResearchGroup{System Security}
\def\primarySupervisor{Prof.~Dr-Ing.~Juraj Somorovsky}
\def\primarySupervisor{Prof.~Dr.-Ing.~Juraj Somorovsky}
\def\secondarySupervisors{(insert further supervisors here)\\(and here)} % comment if not needed
% Overwrite/Set date here
......
\newif\ifenglish\englishtrue
\newif\ifthesis\thesistrue
\input{misc/config.tex}
\setcounter{tocdepth}{3} % Table of contents includes sections up to: Subsubsection
\setcounter{secnumdepth}{3} % Sections are numbered up to: Subsubsection
......
......@@ -26,7 +26,6 @@
\end{minipage}
\end{minipage}\\[50pt]
\ifthesis
\ifenglish
{\huge \type's Thesis}\\[5pt]
Submitted to the \ResearchGroup{} Research Group\\
......
No preview for this file type
......@@ -5,6 +5,12 @@
\RequirePackage{fix-cm,cmap}
\newif\ifenglish\englishtrue
\newif\ifthesis\thesistrue
\newif\ifprintversion\printversiontrue
\input{misc/config.tex}
\ifprintversion
\documentclass[
fontsize=11pt,
paper=a4,
......@@ -18,6 +24,18 @@
parskip=half+, % comment this out if you do not want an empty half line between paragraphs, but please read the KomaScript Guide and search for parskip (around page 82): ftp://ftp.dante.de/pub/tex/macros/latex/contrib/koma-script/scrguide.pdf
BCOR=1cm, % Bindekorrektur: Change this accordingly, also read the KomaScript Guide! Make sure you read the guide.
]{scrreprt}
\else
\documentclass[
fontsize=11pt,
paper=a4,
abstract=true,
numbers=noenddot,
listof=totoc,
bibliography=totoc,
cleardoublepage=plain,
parskip=half+, % comment this out if you do not want an empty half line between paragraphs, but please read the KomaScript Guide and search for parskip (around page 82): ftp://ftp.dante.de/pub/tex/macros/latex/contrib/koma-script/scrguide.pdf
]{scrreprt}
\fi
\input{misc/preamble}
\input{misc/acronyms.tex}
......@@ -52,35 +70,37 @@
\input{chapters/chap_6}
% include appendix
\appendix
% generate bibliography with bibtex, the bibfile here is "literature.bib"
\pagestyle{scrplain} % turn off headers and footers
% generate bibliography with bibtex, the bibfile here is "paper.bib"
\flushbottom
\bibliographystyle{bababbrv-fl}
\bibliography{literature/literature,cryptobib/crypto.bib,rfcbib/data/rfc.bib}
\bibliography{literature/literature.bib,cryptobib/crypto.bib,rfcbib/data/rfc.bib}
% generate list of figures, optional, remove it if you do not like it
\listoffigures
\ifthesis % list figures etc only in a thesis
% generate list of figures, optional, remove it if you do not like it
\listoffigures
\KOMAoptions{open=any} % allows chapters to start on the left hand side
\KOMAoptions{open=any} % allows chapters to start on the left hand side
% generate list of tables, optional, remove it if you do not like it
\listoftables
% generate list of tables, optional, remove it if you do not like it
\listoftables
% generate list of algorithms, optional, remove it if you do not like it
\clearpage \phantomsection
\addcontentsline{toc}{chapter}{List of Algorithms}
\listofalgorithmes
% generate list of algorithms, optional, remove it if you do not like it
\clearpage \phantomsection
\addcontentsline{toc}{chapter}{List of Algorithms}
\listofalgorithmes
% generate list of listings, optional, remove it if you do not like it
\renewcommand*{\lstlistlistingname}{List of Listings}
\lstlistoflistings
% generate list of listings, optional, remove it if you do not like it
\renewcommand*{\lstlistlistingname}{List of Listings}
\lstlistoflistings
\KOMAoptions{open=right} % requires chapters to start on the right hand side
\ifprintversion
\KOMAoptions{open=right} % requires chapters to start on the right hand side
\fi
\fi
% include appendix
\appendix
\input{chapters/chap_appendix}
\end{document}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment