MasterThesis.tex 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. \documentclass[a4paper,12pt]{report}
  2. \usepackage[masterthesis,english]{comp}
  3. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. \title{A Study and Implementation of Semantic Variability in Statecharts}
  5. \author{Joeri Exelmans}
  6. \principaladviser{Hans Vangheluwe}
  7. \assistantadviser{Simon Van Mierlo}
  8. \submitdate{August 2020}
  9. \bibfile{references}
  10. \bibpunct{[}{]}{;}{a}{,}{,}
  11. % \bibliographystyle{alpha}
  12. \setcitestyle{numbers} % this fixes build error
  13. \usepackage{amssymb}
  14. \usepackage{svg}
  15. \graphicspath{ {images/} }
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17. % Python syntax highlighting
  18. % from https://tex.stackexchange.com/questions/83882/how-to-highlight-python-syntax-in-latex-listings-lstinputlistings-command
  19. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  20. % Default fixed font does not support bold face
  21. \DeclareFixedFont{\ttb}{T1}{txtt}{bx}{n}{10} % for bold
  22. \DeclareFixedFont{\ttm}{T1}{txtt}{m}{n}{10} % for normal
  23. % Custom colors
  24. \usepackage{color}
  25. \definecolor{deepblue}{rgb}{0,0,0.5}
  26. \definecolor{deepred}{rgb}{0.6,0,0}
  27. \definecolor{deepgreen}{rgb}{0,0.5,0}
  28. \usepackage{subcaption}
  29. \usepackage{tabularx}
  30. \usepackage{pdflscape}
  31. \definecolor{myblue}{RGB}{0, 0, 204}
  32. \definecolor{mygreen}{RGB}{0, 102, 0}
  33. \usepackage{listings}
  34. \lstset{frame=tb}
  35. \lstset{basicstyle=\ttfamily\footnotesize,breaklines=true}
  36. % Python style for highlighting
  37. \newcommand\pythonstyle{\lstset{
  38. language=Python,
  39. basicstyle=\ttm,
  40. otherkeywords={self}, % Add keywords here
  41. keywordstyle=\ttb\color{deepblue},
  42. emph={MyClass,__init__}, % Custom highlighting
  43. emphstyle=\ttb\color{deepred}, % Custom highlighting style
  44. stringstyle=\color{deepgreen},
  45. frame=tb, % Any extra options here
  46. showstringspaces=false %
  47. }}
  48. % Python environment
  49. \lstnewenvironment{python}[1][]
  50. {
  51. \pythonstyle
  52. \lstset{#1}
  53. }
  54. {}
  55. % Python for external files
  56. \newcommand\pythonexternal[2][]{{
  57. \pythonstyle
  58. \lstinputlisting[#1]{#2}}}
  59. % Python for inline
  60. \newcommand\pythoninline[1]{{\pythonstyle\lstinline!#1!}}
  61. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  62. % Make hyperref package use black links
  63. \hypersetup{
  64. pdfauthor={Joeri Exelmans},
  65. pdftitle={A Study and Implementation of Semantic Variability in Statecharts},
  66. pdfkeywords={statecharts},
  67. colorlinks,
  68. citecolor=black,
  69. filecolor=black,
  70. linkcolor=black,
  71. urlcolor=black
  72. }
  73. %correct faulty hyphenation here, most useful for "nederlandstalige samenvatting" as english is hyphenated automatically
  74. \hyphenation{die-nen}
  75. % Make sure links to images link correctly to the image and not the text
  76. \usepackage[all]{hypcap}
  77. %TODO COMMANDS
  78. \newcommand{\todo}[1]{
  79. \addcontentsline{tdo}{todo}{\protect{#1}}
  80. \textcolor{blue}{TODO: #1} %\marginpar{#1}
  81. }
  82. \makeatletter \newcommand \listoftodos{\section*{Todo list} \@starttoc{tdo}}
  83. \newcommand\l@todo[2]
  84. {\par\noindent \textit{#2}, \parbox{14cm}{#1}\par} \makeatother
  85. %Make sure that subenumerations are also numbered and referenced correctly
  86. \renewcommand{\theenumii}{.\arabic{enumii}}
  87. \renewcommand{\labelenumii}{\labelenumi\arabic{enumii}}
  88. \usepackage{url}
  89. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  90. \begin{document}
  91. %\listoftodos
  92. %\newpage
  93. \frontpages
  94. \input{00-Abstract}
  95. \input{00-NedSamenvatting}
  96. \input{00-Acknowledgements}
  97. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  98. \mainbodypages
  99. \input{01-Introduction}
  100. \input{02-Background}
  101. % \input{03-SemanticOptions}
  102. \input{04-Implementation}
  103. \input{05-Evaluation}
  104. \input{98-RelatedWork}
  105. \input{99-Conclusion}
  106. \backpages
  107. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  108. \begin{appendices}
  109. \input{AA-Testcode}
  110. \end{appendices}
  111. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  112. \end{document}