main.tex.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. \documentclass[paper=a4,fontsize=11pt,twoside,titlepage,parskip=half-,openright]{scrbook} % TODO remove draft
  2. \overfullrule=2cm % TODO fix the overfull hboxes
  3. \newif\ifbeischnittzugabe\beischnittzugabefalse % TODO set to true for final upload (required by flyeralarm)
  4. %%% papering %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  5. % Flyeralarm / content: 170mm x 240mm / mit buffer: 176mm x 246mm
  6. \ifbeischnittzugabe
  7. \usepackage[paperwidth=17.6cm, paperheight=24.6cm,
  8. lmargin = 2.7cm, rmargin = 2.7cm, top = 2.3cm, headsep = 0.6cm, textheight = 19.3cm, footskip = 1.0cm]{geometry}
  9. \else
  10. \usepackage[paperwidth=17.0cm, paperheight=24.0cm,
  11. lmargin = 2.4cm, rmargin = 2.4cm, top = 2.0cm, headsep = 0.6cm, textheight = 19.3cm, footskip = 1.0cm]{geometry}
  12. \fi
  13. \usepackage{tugraz_defaults}
  14. <?php
  15. echo '
  16. \newcommand{\thesisnameregex}{(('.$thesis_familyname.',\noexpand\s+'.$thesis_firstname.')|('.$thesis_firstname.'\noexpand\s+'.$thesis_familyname.'))}
  17. \usepackage{authorbold}
  18. \boldname{'.$thesis_familyname.'}{'.$thesis_firstname.'}{'.$thesis_initial.'}
  19. ';
  20. ?>
  21. \addbibresource{main.bib}
  22. % TODO: if you have unused bib files lying around, some of theses might be incorrectly added:
  23. <?php
  24. foreach ($bibresources as $biblist)
  25. {
  26. foreach ($biblist as $bib)
  27. echo '\addbibresource{'.$bib.'}
  28. ';
  29. }
  30. if (isset($options["--cv"]))
  31. echo '\addbibresource{cv.bib}
  32. ';
  33. ?>
  34. \begin{document}
  35. %\includepdf[pages=-]{front.pdf}
  36. \frontmatter
  37. %\counterwithin{lstlisting}{section}
  38. \counterwithin{listing}{section}
  39. \title{<?php echo $thesis_title ?>}
  40. \author{<?php echo $thesis_author ?>}
  41. \date{<?php echo $thesis_date ?>}
  42. %\pagenumbering{gobble}
  43. \newcommand{\tugsq}{\raisebox{0.5ex}{\tikzset{external/export next=false}\tikz{\fill (0,0) rectangle (0.5ex,0.5ex);}}}
  44. \sodef\so{}{0.45em}{1.4em}{0em}
  45. \begin{titlepage}%
  46. \pagestyle{empty}
  47. \tikzset{external/export next=false}
  48. \begin{tikzpicture}[remember picture,overlay]
  49. \node at (current page.south west){
  50. \tikzset{external/export next=false}
  51. \begin{tikzpicture}[remember picture, overlay]
  52. \fill[white] (0,0) rectangle (\paperwidth,\paperheight);
  53. \shade[shading=axis,bottom color=black!35,top color=white]
  54. (-1,0) rectangle (\paperwidth,0.92\paperheight);
  55. \node[anchor=south west,inner sep=0pt] at (-2.8,1) {\includegraphics[width=152.5mm]{figures/background.png}};
  56. \end{tikzpicture}};
  57. \node at (current page.south east){
  58. \tikzset{external/export next=false}
  59. \begin{tikzpicture}[remember picture, overlay]
  60. \node[anchor=north east] at ($({\paperwidth-21.5cm},1)$) {
  61. \color{black}\fontsize{9}{9}\selectfont\so{\sffamily SCIENCE \tugsq{} PASSION \tugsq{} TECHNOLOGY}
  62. };
  63. \node [anchor=north east] at ($({\paperwidth-18cm},1.4)$) {\resizebox{1in}{!}{
  64. \includegraphics{figures/TU_Graz_Logo}
  65. }};
  66. \end{tikzpicture}};
  67. \node at (current page.east){
  68. \begin{tikzpicture}[remember picture, overlay]
  69. \node[anchor=east,xshift=-1.075cm,yshift=-3.6cm] (inst) {
  70. \color{black}\sffamily <?php echo $thesis_institute ?>
  71. };
  72. \node[below=of inst.east,anchor=east,yshift=0.4cm] {\sffamily Graz University of Technology};
  73. \end{tikzpicture}};
  74. \end{tikzpicture}
  75. \vspace{1cm}
  76. {\sffamily\large\noindent
  77. \theauthor}
  78. \vspace{0.15cm}
  79. \hrule
  80. \vspace{0.3cm}
  81. {\sffamily\huge\noindent \thetitle}
  82. \vspace{0.2cm}
  83. \hrule
  84. \vspace{2cm}
  85. {\sffamily\Large\noindent <?php echo $thesis_type ?>}\\[0.2cm]
  86. {\sffamily\noindent Assessors: <?php echo $thesis_assessors ?>}\\[0.2cm]
  87. {\sffamily\noindent <?php echo $thesis_date ?>}\\[0.2cm]
  88. \vspace{6cm}
  89. \end{titlepage}%
  90. \cleardoublepage
  91. \addtocontents{toc}{\vspace*{\baselineskip}}
  92. \addtocontents{toc}{\vspace*{\baselineskip}}
  93. \tikzset{external/export next=true}
  94. \input{abstract}
  95. \cleardoublepage
  96. \tableofcontents
  97. \addcontentsline{toc}{chapter}{Contents}
  98. \cleardoublepage
  99. \mainmatter
  100. \addtocontents{toc}{\vspace*{\baselineskip}}
  101. \part[<?php echo $thesis_part1_title ?>]{<?php echo $thesis_part1_title ?>}
  102. \bgroup
  103. \begin{refsection}
  104. \input{intro}
  105. <?php echo $sloppy_begin; ?>
  106. \printbibliography[title={References}, heading=bibintoc]
  107. <?php echo $sloppy_end; ?>
  108. \end{refsection}
  109. \egroup
  110. \addtocontents{toc}{\vspace*{\baselineskip}}
  111. \cleardoublepage
  112. \part{Publications}
  113. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  114. \renewcommand*\thesection{\arabic{section}}
  115. \bgroup
  116. \begin{refsection}[main]
  117. \chapter*{List of Publications}
  118. \label{sec:publicationlist}
  119. \addcontentsline{toc}{chapter}{List of Publications}
  120. 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.
  121. \newrefcontext[sorting=nty]
  122. <?php echo $sloppy_begin; ?>
  123. \nocite{*}
  124. \defbibenvironment{mypubs}
  125. {\begin{enumerate}[]
  126. \setlength{\leftmargin}{\bibhang}%
  127. \setlength{\itemindent}{0pt}%
  128. \setlength{\itemsep}{\bibitemsep}%
  129. \setlength{\parsep}{\bibparsep}}
  130. {\end{enumerate}}
  131. {\item}
  132. \enableboldauthor
  133. \printbibliography[env=mypubs,title={Publications in this Thesis}, type=inproceedings, heading=subbibliography, keyword={mine}]
  134. \printbibliography[env=mypubs,title={Other Contributions}, type=inproceedings, heading=subbibliography, keyword={mine_other}]
  135. \disableboldauthor
  136. <?php echo $sloppy_end; ?>
  137. \end{refsection}
  138. \egroup
  139. <?php
  140. foreach ($papers as $p => $f)
  141. {
  142. echo '
  143. \bgroup
  144. \pgfplotsset{
  145. table/search path={'.$p.'/},
  146. }
  147. ';
  148. if (isset($options['--use-subimport']))
  149. echo ' \subimport*{'.$p.'/}{'.$f.'}';
  150. elseif (isset($options['--use-include']))
  151. echo ' \include{'.$p.'/'.$f.'}';
  152. else
  153. echo ' \input{'.$p.'/'.$f.'}';
  154. echo '
  155. \egroup
  156. \newpage
  157. ';
  158. }
  159. ?>
  160. <?php
  161. if (isset($options['--cv']))
  162. {
  163. echo <<<'END'
  164. \cleardoublepage
  165. \appendix
  166. \part*{Appendix}
  167. \addcontentsline{toc}{part}{Appendix}
  168. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  169. \renewcommand*\thesection{\arabic{section}}
  170. \addtocontents{toc}{\vspace*{\baselineskip}}
  171. \chapter*{Curriculum Vitae}
  172. \bgroup
  173. \begin{refsection}
  174. \input{cv}
  175. \end{refsection}
  176. \egroup
  177. \cleardoublepage
  178. \chapter*{Academic Field ``Applied Computer Science''}
  179. \bgroup
  180. \begin{refsection}
  181. \input{academicfield}
  182. \end{refsection}
  183. \egroup
  184. \cleardoublepage
  185. END;
  186. }
  187. ?>
  188. <?php
  189. if (!isset($options['--no-statutory-declaration']))
  190. {
  191. echo <<<'END'
  192. \chapter*{Statutory Declaration}
  193. I declare that I have authored this thesis independently, that I have not used anything 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.
  194. END;
  195. }
  196. ?>
  197. \end{document}