This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
4.1 KiB

  1. % Biblatex Style
  2. \setcounter{secnumdepth}{3} % limit enumeration depth
  3. \setcounter{tocdepth}{1} % limit TOC depth
  4. % Listing Style
  5. \lstset{ %
  6. frame=shadowbox,
  7. rulesepcolor=\color{blue},
  8. backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}
  9. % basicstyle=\footnotesize, % the size of the fonts that are used for the code
  10. breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
  11. breaklines=true, % sets automatic line breaking
  12. captionpos=b, % sets the caption-position to bottom
  13. commentstyle=\color{mygreen}, % comment style
  14. deletekeywords={...}, % if you want to delete keywords from the given language
  15. escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
  16. extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
  17. frame=single, % adds a frame around the code
  18. keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
  19. keywordstyle=\color{blue}, % keyword style
  20. language=C, % the language of the code
  21. % morekeywords={*,...}, % if you want to add more keywords to the set
  22. numbers=left, % where to put the line-numbers; possible values are (none, left, right)
  23. numbersep=7pt, % how far the line-numbers are from the code
  24. numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
  25. rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
  26. showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
  27. showstringspaces=false, % underline spaces within strings only
  28. showtabs=false, % show tabs within strings adding particular underscores
  29. stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
  30. stringstyle=\color{mymauve}, % string literal style
  31. tabsize=2, % sets default tabsize to 2 spaces
  32. title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title
  33. }
  34. % Typesetting options
  35. \tolerance 2414
  36. \hbadness 2414
  37. \emergencystretch 1.5em
  38. \hfuzz 0.3pt
  39. \widowpenalty=10000 % Hurenkinder
  40. \clubpenalty=10000 % Schusterjungen
  41. \vfuzz \hfuzz
  42. \raggedbottom
  43. % use nice footnote indentation
  44. \deffootnote[1em]{1em}{1em}{\textsuperscript{\thefootnotemark}\,}
  45. % ########################################################
  46. % - Roman/Serif font for all headings.
  47. % Default is sans-serif which looks kind of unprofessional with the default font family.
  48. % - Packages like titlesec don't work well together with KOMA
  49. % - "disposition" means, that this setting is for all headings (chapter level, section level, ...)
  50. % see: https://mirror.physik.tu-berlin.de/pub/CTAN/macros/latex/contrib/koma-script/doc/scrguide.pdf
  51. \addtokomafont{disposition}{\rmfamily}
  52. % ########################################################
  53. % With the fancyhdr package we can let all pages look more professional.
  54. % Each page (except for special ones such as chapters or the cover) will contain a
  55. % header that looks like this:
  56. %
  57. % Chapter %NUM%. %CHAPTER_NAME% 3/10
  58. %
  59. % On even pages the page number is on the left, on odd pages the page number is on the right.
  60. %
  61. \pagestyle{fancy}
  62. % Reset all existing header styles
  63. \fancyhf{}
  64. % Even pages (Ex)
  65. % EL: even left: show page number
  66. \fancyhead[EL]{\thepage~/~\pageref{LastPage}}
  67. % ER: even right: show chapter
  68. \fancyhead[ER]{\leftmark}
  69. % Odd pages (Ox)
  70. % OL: odd left: show page number
  71. \fancyhead[OR]{\thepage~/~\pageref{LastPage}}
  72. % OR: odd right: show chapter
  73. \fancyhead[OL]{\rightmark}
  74. % Additionally page number always on the bottom
  75. % \fancyfoot[EC,OC]{\thepage}