main.tex.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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. \addbibresource{main.bib}
  15. % TODO: if you have unused bib files lying around, some of theses might be incorrectly added:
  16. <?php
  17. foreach ($bibresources as $biblist)
  18. {
  19. foreach ($biblist as $bib)
  20. echo '\addbibresource{'.$bib.'}
  21. ';
  22. }
  23. if (isset($options["--cv"]))
  24. echo '\addbibresource{cv.bib}
  25. ';
  26. ?>
  27. \begin{document}
  28. %\includepdf[pages=-]{front.pdf}
  29. \frontmatter
  30. %\counterwithin{lstlisting}{section}
  31. \counterwithin{listing}{section}
  32. \title{<?php echo $thesis_title ?>}
  33. \author{<?php echo $thesis_author ?>}
  34. \date{<?php echo $thesis_date ?>}
  35. %\pagenumbering{gobble}
  36. \newcommand{\tugsq}{\raisebox{0.5ex}{\tikzset{external/export next=false}\tikz{\fill (0,0) rectangle (0.5ex,0.5ex);}}}
  37. \sodef\so{}{0.45em}{1.4em}{0em}
  38. \begin{titlepage}%
  39. \pagestyle{empty}
  40. \tikzset{external/export next=false}
  41. \begin{tikzpicture}[remember picture,overlay]
  42. \node at (current page.south west){
  43. \tikzset{external/export next=false}
  44. \begin{tikzpicture}[remember picture, overlay]
  45. \fill[white] (0,0) rectangle (\paperwidth,\paperheight);
  46. \shade[shading=axis,bottom color=black!35,top color=white]
  47. (0,0) rectangle (\paperwidth,0.92\paperheight);
  48. \node[anchor=south west,inner sep=0pt] at (-2.8,1) {\includegraphics[width=152.5mm]{figures/background.png}};
  49. \end{tikzpicture}};
  50. \node at (current page.south east){
  51. \tikzset{external/export next=false}
  52. \begin{tikzpicture}[remember picture, overlay]
  53. \node[anchor=north east] at ($({\paperwidth-21.5cm},1)$) {
  54. \color{black}\fontsize{9}{9}\selectfont\so{\sffamily SCIENCE \tugsq{} PASSION \tugsq{} TECHNOLOGY}
  55. };
  56. \node [anchor=north east] at ($({\paperwidth-18cm},1.4)$) {\resizebox{1in}{!}{
  57. \includegraphics{figures/TU_Graz_Logo}
  58. }};
  59. \end{tikzpicture}};
  60. \node at (current page.east){
  61. \begin{tikzpicture}[remember picture, overlay]
  62. \node[anchor=east,xshift=-1.075cm,yshift=-3.6cm] (inst) {
  63. \color{black}\sffamily <?php echo $thesis_institute ?>
  64. };
  65. \node[below=of inst.east,anchor=east,yshift=0.4cm] {\sffamily Graz University of Technology};
  66. \end{tikzpicture}};
  67. \end{tikzpicture}
  68. \vspace{1cm}
  69. {\sffamily\large\noindent
  70. \theauthor}
  71. \vspace{0.15cm}
  72. \hrule
  73. \vspace{0.3cm}
  74. {\sffamily\huge\noindent \thetitle}
  75. \vspace{0.2cm}
  76. \hrule
  77. \vspace{2cm}
  78. {\sffamily\Large\noindent <?php echo $thesis_type ?>}\\[0.2cm]
  79. {\sffamily\noindent Assessors: <?php echo $thesis_assessors ?>}\\[0.2cm]
  80. {\sffamily\noindent <?php echo $thesis_date ?>}\\[0.2cm]
  81. \vspace{6cm}
  82. \end{titlepage}%
  83. \cleardoublepage
  84. \addtocontents{toc}{\vspace*{\baselineskip}}
  85. \addtocontents{toc}{\vspace*{\baselineskip}}
  86. \tikzset{external/export next=true}
  87. \input{abstract}
  88. \cleardoublepage
  89. \tableofcontents
  90. \addcontentsline{toc}{chapter}{Contents}
  91. \cleardoublepage
  92. \mainmatter
  93. \addtocontents{toc}{\vspace*{\baselineskip}}
  94. \part[<?php echo $thesis_part1_title ?>]{<?php echo $thesis_part1_title ?>}
  95. \bgroup
  96. \begin{refsection}
  97. \input{intro}
  98. <?php echo $sloppy_begin; ?>
  99. \printbibliography[title={References}, heading=bibintoc]
  100. <?php echo $sloppy_end; ?>
  101. \end{refsection}
  102. \egroup
  103. \addtocontents{toc}{\vspace*{\baselineskip}}
  104. \cleardoublepage
  105. \part{Publications}
  106. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  107. \renewcommand*\thesection{\arabic{section}}
  108. \bgroup
  109. \begin{refsection}
  110. \chapter*{List of Publications}
  111. \label{sec:publicationlist}
  112. \addcontentsline{toc}{chapter}{List of Publications}
  113. 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.
  114. \newrefcontext[sorting=ydnt]
  115. <?php
  116. if (isset($options['--cv']))
  117. {
  118. echo '\nocite{CV:*}';
  119. }
  120. ?>
  121. <?php echo $sloppy_begin; ?>
  122. \printbibliography[title={Publications in this Thesis}, type=inproceedings, heading=subbibliography, keyword={mine}]
  123. \printbibliography[title={Other Contributions}, type=inproceedings, heading=subbibliography, keyword={mine_other}]
  124. <?php echo $sloppy_end; ?>
  125. \end{refsection}
  126. \egroup
  127. <?php
  128. foreach ($papers as $p => $f)
  129. {
  130. echo '
  131. \bgroup
  132. \begin{refsection}
  133. \pgfplotsset{
  134. table/search path={'.$p.'/},
  135. }
  136. ';
  137. if (isset($options['--use-subimport']))
  138. echo ' \subimport*{'.$p.'/}{'.$f.'}';
  139. elseif (isset($options['--use-include']))
  140. echo ' \include{'.$p.'/'.$f.'}';
  141. else
  142. echo ' \input{'.$p.'/'.$f.'}';
  143. echo '
  144. \end{refsection}
  145. \egroup
  146. \newpage
  147. ';
  148. }
  149. ?>
  150. <?php
  151. if (isset($options['--cv']))
  152. {
  153. echo <<<'END'
  154. \cleardoublepage
  155. \appendix
  156. \part*{Appendix}
  157. \addcontentsline{toc}{part}{Appendix}
  158. \addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
  159. \renewcommand*\thesection{\arabic{section}}
  160. \addtocontents{toc}{\vspace*{\baselineskip}}
  161. \chapter*{Curriculum Vitae}
  162. \bgroup
  163. \begin{refsection}
  164. \input{cv}
  165. \end{refsection}
  166. \egroup
  167. \cleardoublepage
  168. \chapter*{Academic Field ``Applied Computer Science''}
  169. \bgroup
  170. \begin{refsection}
  171. \input{academicfield}
  172. \end{refsection}
  173. \egroup
  174. \cleardoublepage
  175. END;
  176. }
  177. ?>
  178. <?php
  179. if (!isset($options['--no-statutory-declaration']))
  180. {
  181. echo <<<'END'
  182. \chapter*{Statutory Declaration}
  183. 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.
  184. END;
  185. }
  186. ?>
  187. \end{document}