main.tex.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. \documentclass[paper=a4,fontsize=11pt,twoside,titlepage,openright]{scrbook}
  2. \newif\ifbeischnittzugabe\beischnittzugabefalse % TODO set to true for final upload (required by flyeralarm)
  3. %%% papering %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. % Flyeralarm / content: 170mm x 240mm / mit buffer: 176mm x 246mm
  5. \ifbeischnittzugabe
  6. \usepackage[paperwidth=17.6cm, paperheight=24.6cm,
  7. lmargin = 2.7cm, rmargin = 2.7cm, top = 2.3cm, headsep = 0.6cm, textheight = 19.3cm, footskip = 1.0cm]{geometry}
  8. \else
  9. \usepackage[paperwidth=17.0cm, paperheight=24.0cm,
  10. lmargin = 2.4cm, rmargin = 2.4cm, top = 2.0cm, headsep = 0.6cm, textheight = 19.3cm, footskip = 1.0cm]{geometry}
  11. \fi
  12. \usepackage{tugraz_defaults}
  13. \usepackage{moresize}
  14. \usepackage{pdfpages}
  15. \usepackage{enumitem}
  16. \usepackage{mdframed}
  17. \usepackage{import}
  18. \usepackage[breakable, theorems, skins]{tcolorbox}
  19. \usepackage[backend=biber,
  20. url=true,
  21. style=numeric,
  22. giveninits=false,
  23. maxnames=32,
  24. minnames=32,
  25. maxcitenames=2,
  26. mincitenames=1,
  27. backref=true, %
  28. ]{biblatex}
  29. \addbibresource{main.bib}
  30. <?php
  31. foreach ($bibresources as $br => $bib)
  32. {
  33. echo '\addbibresource{'.$bib.'}
  34. ';
  35. }
  36. if (isset($options["--cv"]))
  37. echo '\addbibresource{cv.bib}
  38. ';
  39. ?>
  40. \DeclareFieldFormat*{title}{#1}
  41. \DeclareFieldFormat*{booktitle}{#1}
  42. \DeclareFieldFormat*{journaltitle}{#1}
  43. \newcommand{\itemcite}[1]{\begin{itemize}\item \fullcite{#1}\end{itemize}}
  44. \renewcommand{\bf}{\bfseries}
  45. \renewcommand{\tt}{\ttfamily}
  46. \renewcommand{\and}{,\xspace}
  47. \newcommand{\CopyrightYear}{}
  48. \newcommand{\setcopyright}{}
  49. \newcommand{\conferenceinfo}{}
  50. \newcommand{\isbn}{}
  51. \newcommand{\doi}{}
  52. \newcommand{\printccsdesc}{}
  53. \newcommand{\numberofauthors}{}
  54. \newcommand{\alignauthor}{}
  55. \newcommand{\affaddr}{}
  56. \newcommand{\ccsdesc}[1]{}
  57. \newcommand{\acmPrice}{}
  58. \newcommand{\keywords}[1]{Keywords:\ #1.}
  59. \usepackage{graphicx}
  60. \usepackage[openbib,NoDate]{currvita}
  61. \preto\fullcite{\AtNextCite{\defcounter{maxnames}{99}}}
  62. \usepackage{quotchap} %
  63. \DefineBibliographyStrings{english}{%
  64. backrefpage = {p.},%
  65. backrefpages = {pp.},%
  66. }
  67. \usepackage[titles]{tocloft}
  68. \renewcommand\cftchapaftersnum{.}
  69. \setlength{\cftchapnumwidth}{2em}
  70. \usepackage{verbatim}
  71. \makeatletter
  72. \frenchspacing
  73. \widowpenalty=10000
  74. \clubpenalty=10000
  75. \setcounter{tocdepth}{1}
  76. \renewenvironment{table}
  77. {\setlength\abovecaptionskip{0\p@}%
  78. \setlength\belowcaptionskip{10\p@}%
  79. \@float{table}}
  80. {\end@float}
  81. \newenvironment{CCSXML}
  82. {\comment}
  83. {\endcomment}
  84. \makeatother
  85. \makeatletter
  86. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  87. \hbox{} \vspace*{\fill}
  88. \begin{center}
  89. \end{center}
  90. \vspace{\fill} \thispagestyle{empty}
  91. \newpage
  92. \if@twocolumn\hbox{}\newpage\fi\fi\fi}
  93. \makeatother
  94. \makeatletter
  95. \newcommand\declarecommand{\@star@or@long\@declarecommand}
  96. \newcommand\@declarecommand[1]{%
  97. \provide@command{#1}{}%
  98. \renew@command{#1}%
  99. }
  100. \makeatother
  101. \usepackage{titling}
  102. \usepackage[english]{babel}
  103. \addto{\captionsenglish}{\renewcommand*{\appendixname}{Appendix}}
  104. \renewcommand{\algorithmautorefname}{Algorithm}
  105. \renewcommand\itemautorefname{Step}
  106. \renewcommand\chapterautorefname{Chapter}
  107. \renewcommand\sectionautorefname{Section}
  108. \renewcommand\subsectionautorefname{Section}
  109. \renewcommand\subsubsectionautorefname{Section}
  110. \usepgfplotslibrary{dateplot}
  111. \usepgfplotslibrary{fillbetween}
  112. \hyphenation{}
  113. \usepackage{chngcntr}
  114. \addtokomafont{disposition}{\rmfamily}
  115. \usepackage{mypreamble}
  116. \usepackage{scrhack}
  117. \begin{document}
  118. %\includepdf[pages=-]{front.pdf}
  119. \frontmatter
  120. %\counterwithin{lstlisting}{section}
  121. \counterwithin{listing}{section}
  122. \title{<?php echo $thesis_title ?>}
  123. \author{<?php echo $thesis_author ?>}
  124. \date{<?php echo $thesis_date ?>}
  125. %\pagenumbering{gobble}
  126. \newcommand{\tugsq}{\raisebox{0.5ex}{\tikzset{external/export next=false}\tikz{\fill (0,0) rectangle (0.5ex,0.5ex);}}}
  127. \sodef\so{}{0.45em}{1.4em}{0em}
  128. \begin{titlepage}%
  129. \pagestyle{empty}
  130. \tikzset{external/export next=false}
  131. \begin{tikzpicture}[remember picture,overlay]
  132. \node at (current page.south west){
  133. \tikzset{external/export next=false}
  134. \begin{tikzpicture}[remember picture, overlay]
  135. \fill[white] (0,0) rectangle (\paperwidth,\paperheight);
  136. \shade[shading=axis,bottom color=black!35,top color=white]
  137. (0,0) rectangle (\paperwidth,0.92\paperheight);
  138. \node[anchor=south west,inner sep=0pt] at (-2.8,1) {\includegraphics[width=152.5mm]{figures/background.png}};
  139. \end{tikzpicture}};
  140. \node at (current page.south east){
  141. \tikzset{external/export next=false}
  142. \begin{tikzpicture}[remember picture, overlay]
  143. \node[anchor=north east] at ($({\paperwidth-19cm},1)$) {
  144. \color{black}\fontsize{9}{9}\selectfont\so{\sffamily SCIENCE \tugsq{} PASSION \tugsq{} TECHNOLOGY}
  145. };
  146. \node [anchor=north east] at ($({\paperwidth-16cm},1.4)$) {\resizebox{1in}{!}{
  147. \includegraphics{figures/TU_Graz_Logo}
  148. }};
  149. \end{tikzpicture}};
  150. \node at (current page.east){
  151. \begin{tikzpicture}[remember picture, overlay]
  152. \node[anchor=east,xshift=-1.075cm,yshift=-3.6cm] (inst) {
  153. \color{black}\sffamily <?php echo $thesis_institute ?>
  154. };
  155. \node[below=of inst.east,anchor=east,yshift=0.4cm] {\sffamily Graz University of Technology};
  156. \end{tikzpicture}};
  157. \end{tikzpicture}
  158. \vspace{1cm}
  159. {\sffamily\large\noindent
  160. \theauthor}
  161. \vspace{0.15cm}
  162. \hrule
  163. \vspace{0.3cm}
  164. {\sffamily\huge\noindent \thetitle}
  165. \vspace{0.2cm}
  166. \hrule
  167. \vspace{2cm}
  168. {\sffamily\Large\noindent <?php echo $thesis_type ?>}\\[0.2cm]
  169. {\sffamily\noindent Assessors: <?php echo $thesis_assessors ?>}\\[0.2cm]
  170. {\sffamily\noindent <?php echo $thesis_date ?>}\\[0.2cm]
  171. \vspace{6cm}
  172. \end{titlepage}%
  173. %\pagenumbering{arabic}
  174. \cleardoublepage
  175. \addtocontents{toc}{\vspace*{\baselineskip}}
  176. \addtocontents{toc}{\vspace*{\baselineskip}}
  177. \tikzset{external/export next=true}
  178. \input{abstract}
  179. \cleardoublepage
  180. \tableofcontents
  181. \addcontentsline{toc}{chapter}{Contents}
  182. \cleardoublepage
  183. \mainmatter
  184. \addtocontents{toc}{\vspace*{\baselineskip}}
  185. \part[<?php echo $thesis_part1_title ?>]{<?php echo $thesis_part1_title ?>}
  186. \bgroup
  187. \begin{refsection}
  188. \input{intro}
  189. <?php echo $sloppy_begin; ?>
  190. \printbibliography[title={References}, heading=bibintoc]
  191. <?php echo $sloppy_end; ?>
  192. \end{refsection}
  193. \egroup
  194. \addtocontents{toc}{\vspace*{\baselineskip}}
  195. \cleardoublepage
  196. \part{Publications}
  197. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  198. \renewcommand*\thesection{\arabic{section}}
  199. \bgroup
  200. \begin{refsection}
  201. \chapter*{List of Publications}
  202. \label{sec:publicationlist}
  203. \addcontentsline{toc}{chapter}{List of Publications}
  204. During my thesis, I contributed to <?php echo $num_publications ?> publications in conference proceedings, <?php echo $num_publications_in_thesis ?> of which are included in this thesis as shown below.
  205. \newrefcontext[sorting=ydnt]
  206. \nocite{CV:*}
  207. <?php echo $sloppy_begin; ?>
  208. \printbibliography[title={Publications in this Thesis}, type=inproceedings, heading=subbibliography, keyword={mine}]
  209. \printbibliography[title={Other Contributions}, type=inproceedings, heading=subbibliography, keyword={mine_other}]
  210. <?php echo $sloppy_end; ?>
  211. \end{refsection}
  212. \egroup
  213. <?php
  214. foreach ($papers as $p => $f)
  215. {
  216. echo '
  217. \bgroup
  218. \begin{refsection}
  219. \pgfplotsset{
  220. table/search path={'.$p.'/},
  221. }
  222. \newcommand{\thesisGenIncludePath}{'.$p.'}
  223. \subimport*{'.$p.'/}{'.$f.'}
  224. \graphicspath{}
  225. \end{refsection}
  226. \egroup
  227. \newpage
  228. ';
  229. }
  230. ?>
  231. <?php
  232. if (isset($options['--cv']))
  233. {
  234. echo <<<'END'
  235. \cleardoublepage
  236. \appendix
  237. \part*{Appendix}
  238. \addcontentsline{toc}{part}{Appendix}
  239. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  240. \renewcommand*\thesection{\arabic{section}}
  241. \addtocontents{toc}{\vspace*{\baselineskip}}
  242. \chapter*{Curriculum Vitae}
  243. \bgroup
  244. \begin{refsection}
  245. \input{cv}
  246. \end{refsection}
  247. \egroup
  248. \cleardoublepage
  249. \chapter*{Academic Field ``Applied Computer Science''}
  250. \bgroup
  251. \begin{refsection}
  252. \input{academicfield}
  253. \end{refsection}
  254. \egroup
  255. \cleardoublepage
  256. END;
  257. }
  258. ?>
  259. <?php
  260. if (!isset($options['--no-statutory-declaration']))
  261. {
  262. echo <<<'END'
  263. \chapter*{Statutory Declaration}
  264. I declare that I have authored this thesis independently, that I have not used other than the declared sources / resources, and that I have explicitly marked all material which has been quoted either literally or by content from the used sources.
  265. END;
  266. }
  267. ?>
  268. \end{document}