main.tex.php 5.9 KB

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