main.tex.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. \documentclass[paper=a4,fontsize=11pt,twoside,titlepage,parskip=half-,openright]{scrbook}
  2. \usepackage[paperwidth=15.5cm,
  3. paperheight=23.5cm,
  4. lmargin = 2.1cm,
  5. rmargin = 1.2cm,
  6. top = 2.2cm,
  7. headsep = 0.6cm,
  8. textheight = 19.3cm,
  9. footskip = 1.0cm]{geometry}
  10. \usepackage{tugraz_defaults}
  11. \usepackage{moresize}
  12. \usepackage{pdfpages}
  13. \usepackage{enumitem}
  14. \usepackage{mdframed}
  15. \usepackage[breakable, theorems, skins]{tcolorbox}
  16. \usepackage[backend=biber,
  17. url=true,
  18. style=numeric,
  19. giveninits=false,
  20. maxnames=32,
  21. minnames=32,
  22. maxcitenames=2,
  23. mincitenames=1,
  24. backref=true, %
  25. ]{biblatex}
  26. \addbibresource{main.bib}
  27. <?php
  28. foreach ($bibresources as $br => $bib)
  29. {
  30. echo '\addbibresource{'.$bib.'}
  31. ';
  32. }
  33. if (isset($options["--cv"]))
  34. echo '\addbibresource{cv.bib}
  35. ';
  36. ?>
  37. \DeclareFieldFormat*{title}{#1}
  38. \DeclareFieldFormat*{booktitle}{#1}
  39. \DeclareFieldFormat*{journaltitle}{#1}
  40. \newcommand{\itemcite}[1]{\begin{itemize}\item \fullcite{#1}\end{itemize}}
  41. \usepackage{graphicx}
  42. \usepackage[openbib,NoDate]{currvita}
  43. \preto\fullcite{\AtNextCite{\defcounter{maxnames}{99}}}
  44. \usepackage{scrhack}
  45. \usepackage{quotchap} %
  46. \DefineBibliographyStrings{english}{%
  47. backrefpage = {p.},%
  48. backrefpages = {pp.},%
  49. }
  50. \usepackage[titles]{tocloft}
  51. \renewcommand\cftchapaftersnum{.}
  52. \setlength{\cftchapnumwidth}{2em}
  53. \makeatletter
  54. \frenchspacing
  55. \widowpenalty=10000
  56. \clubpenalty=10000
  57. \setcounter{tocdepth}{1}
  58. \renewenvironment{table}
  59. {\setlength\abovecaptionskip{0\p@}%
  60. \setlength\belowcaptionskip{10\p@}%
  61. \@float{table}}
  62. {\end@float}
  63. \makeatother
  64. \makeatletter
  65. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
  66. \hbox{} \vspace*{\fill}
  67. \begin{center}
  68. \end{center}
  69. \vspace{\fill} \thispagestyle{empty}
  70. \newpage
  71. \if@twocolumn\hbox{}\newpage\fi\fi\fi}
  72. \makeatother
  73. \usepackage{titling}
  74. \usepackage[english]{babel}
  75. \addto{\captionsenglish}{\renewcommand*{\appendixname}{Appendix}}
  76. \renewcommand{\algorithmautorefname}{Algorithm}
  77. \renewcommand\itemautorefname{Step}
  78. \renewcommand\chapterautorefname{Chapter}
  79. \renewcommand\sectionautorefname{Section}
  80. \renewcommand\subsectionautorefname{Section}
  81. \renewcommand\subsubsectionautorefname{Section}
  82. \usepgfplotslibrary{dateplot}
  83. \usepgfplotslibrary{fillbetween}
  84. \hyphenation{}
  85. \usepackage{chngcntr}
  86. \addtokomafont{disposition}{\rmfamily}
  87. \begin{document}
  88. %\includepdf[pages=-]{front.pdf}
  89. \frontmatter
  90. %\counterwithin{lstlisting}{section}
  91. \counterwithin{listing}{section}
  92. \title{<?php echo $thesis_title ?>}
  93. \author{<?php echo $thesis_author ?>}
  94. \date{<?php echo $thesis_date ?>}
  95. %\pagenumbering{gobble}
  96. \newcommand{\tugsq}{\raisebox{0.5ex}{\tikzset{external/export next=false}\tikz{\fill (0,0) rectangle (0.5ex,0.5ex);}}}
  97. \sodef\so{}{0.45em}{1.4em}{0em}
  98. \begin{titlepage}%
  99. \pagestyle{empty}
  100. \tikzset{external/export next=false}
  101. \begin{tikzpicture}[remember picture,overlay]
  102. \node at (current page.south west){
  103. \tikzset{external/export next=false}
  104. \begin{tikzpicture}[remember picture, overlay]
  105. \fill[white] (0,0) rectangle (\paperwidth,\paperheight);
  106. \shade[shading=axis,bottom color=black!35,top color=white]
  107. (0,0) rectangle (\paperwidth,0.92\paperheight);
  108. \node[anchor=south west,inner sep=0pt] at (-2.8,1) {\includegraphics[width=152.5mm]{figures/background.png}};
  109. \end{tikzpicture}};
  110. \node at (current page.south east){
  111. \tikzset{external/export next=false}
  112. \begin{tikzpicture}[remember picture, overlay]
  113. \node[anchor=north east] at ($({\paperwidth-19cm},1)$) {
  114. \color{black}\fontsize{9}{9}\selectfont\so{\sffamily SCIENCE \tugsq{} PASSION \tugsq{} TECHNOLOGY}
  115. };
  116. \node [anchor=north east] at ($({\paperwidth-16cm},1.4)$) {\resizebox{1in}{!}{
  117. \includegraphics{figures/TU_Graz_Logo}
  118. }};
  119. \end{tikzpicture}};
  120. \node at (current page.east){
  121. \begin{tikzpicture}[remember picture, overlay]
  122. \node[anchor=east,xshift=-1.075cm,yshift=-3.6cm] (inst) {
  123. \color{black}\sffamily <?php echo $thesis_institute ?>
  124. };
  125. \node[below=of inst.east,anchor=east,yshift=0.4cm] {\sffamily Graz University of Technology};
  126. \end{tikzpicture}};
  127. \end{tikzpicture}
  128. \vspace{1cm}
  129. {\sffamily\large\noindent
  130. \theauthor}
  131. \vspace{0.15cm}
  132. \hrule
  133. \vspace{0.3cm}
  134. {\sffamily\huge\noindent \thetitle}
  135. \vspace{0.2cm}
  136. \hrule
  137. \vspace{2cm}
  138. {\sffamily\Large\noindent <?php echo $thesis_type ?>}\\[0.2cm]
  139. {\sffamily\noindent Assessors: <?php echo $thesis_assessors ?>}\\[0.2cm]
  140. {\sffamily\noindent <?php echo $thesis_date ?>}\\[0.2cm]
  141. \vspace{6cm}
  142. \end{titlepage}%
  143. %\pagenumbering{arabic}
  144. \cleardoublepage
  145. \addtocontents{toc}{\vspace*{\baselineskip}}
  146. \addtocontents{toc}{\vspace*{\baselineskip}}
  147. \tikzset{external/export next=true}
  148. \input{abstract}
  149. \cleardoublepage
  150. \tableofcontents
  151. \addcontentsline{toc}{chapter}{Contents}
  152. \cleardoublepage
  153. \mainmatter
  154. \addtocontents{toc}{\vspace*{\baselineskip}}
  155. \part[<?php echo $thesis_part1_title ?>]{<?php echo $thesis_part1_title ?>}
  156. \bgroup
  157. \begin{refsection}
  158. \input{intro}
  159. \begin{sloppypar}
  160. \printbibliography[title={References}, heading=bibintoc]
  161. \end{sloppypar}
  162. \end{refsection}
  163. \egroup
  164. \addtocontents{toc}{\vspace*{\baselineskip}}
  165. \cleardoublepage
  166. \part{Publications}
  167. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  168. \renewcommand*\thesection{\arabic{section}}
  169. \bgroup
  170. \begin{refsection}
  171. \chapter*{List of Publications}
  172. \label{sec:publicationlist}
  173. \addcontentsline{toc}{chapter}{List of Publications}
  174. 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.
  175. \newrefcontext[sorting=ydnt]
  176. \nocite{CV:*}
  177. \begin{sloppypar}
  178. \printbibliography[title={Publications in this Thesis}, type=inproceedings, heading=subbibliography, keyword={mine}]
  179. \printbibliography[title={Other Contributions}, type=inproceedings, heading=subbibliography, keyword={mine_other}]
  180. \end{sloppypar}
  181. \end{refsection}
  182. \egroup
  183. <?php
  184. foreach ($papers as $p => $f)
  185. {
  186. echo '
  187. \bgroup
  188. \begin{refsection}
  189. \input{'.$p.'/'.$f.'}
  190. \end{refsection}
  191. \egroup
  192. \newpage
  193. ';
  194. }
  195. ?>
  196. <?php
  197. if (!isset($options['--cv']))
  198. {
  199. echo <<<'END'
  200. \cleardoublepage
  201. \appendix
  202. \part*{Appendix}
  203. \addcontentsline{toc}{part}{Appendix}
  204. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  205. \renewcommand*\thesection{\arabic{section}}
  206. \addtocontents{toc}{\vspace*{\baselineskip}}
  207. \chapter*{Curriculum Vitae}
  208. \bgroup
  209. \begin{refsection}
  210. \input{cv}
  211. \end{refsection}
  212. \egroup
  213. \cleardoublepage
  214. \chapter*{Academic Field ``Applied Computer Science''}
  215. \bgroup
  216. \begin{refsection}
  217. \input{academicfield}
  218. \end{refsection}
  219. \egroup
  220. \cleardoublepage
  221. END;
  222. }
  223. ?>
  224. <?php
  225. if (!isset($options['--no-statutory-declaration']))
  226. {
  227. echo <<<'END'
  228. \chapter*{Statutory Declaration}
  229. 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.
  230. END;
  231. }
  232. ?>
  233. \end{document}