main.tex.php 6.0 KB

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