header.tex 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. \documentclass[longdoc,colorback,linedtoc,parskip=half*,accentcolor=tud9d,12pt]{tudreport}
  2. %%%%%%%%%%%%%%%%
  3. %Some helpful packages and commands. Modify to your needs.
  4. \usepackage[nottoc,notlot,notlof]{tocbibind}
  5. \usepackage[english,ngerman]{babel}
  6. \usepackage[utf8]{inputenc}
  7. \usepackage{comment}
  8. \usepackage{graphicx}
  9. \graphicspath{ {graphics/} }
  10. \usepackage{tabularx}
  11. \usepackage{multirow}
  12. \usepackage{multicol}
  13. \usepackage{rotating}
  14. \usepackage{array}
  15. \usepackage{url}
  16. \usepackage[ngerman,pdfview=FitH,pdfstartview=FitV]{hyperref}
  17. \usepackage[a-1b]{pdfx}
  18. \usepackage{prettyref}
  19. \usepackage{booktabs}
  20. \usepackage{ccicons} % for Creative Commons citation icons
  21. \usepackage{ragged2e} % for tighter hyphenation
  22. \usepackage{soul}
  23. \usepackage{marginnote}
  24. \usepackage{wrapfig}
  25. \usepackage{blindtext}
  26. \usepackage{csquotes}
  27. \usepackage{lscape}
  28. \usepackage{subcaption}
  29. \usepackage{acronym}
  30. % llt: Define a global style for URLs, rather that the default one
  31. \makeatletter
  32. \def\url@leostyle{%
  33. \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
  34. \makeatother
  35. \urlstyle{leo}
  36. % farben
  37. \definecolor{javared}{rgb}{0.6,0,0} % for strings
  38. \definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments
  39. \definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords
  40. \definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc
  41. \definecolor{sgblue}{rgb}{0.27,0.44,0.84}
  42. \definecolor{sgyellow}{rgb}{0.97,0.97,0.64}
  43. \definecolor{sgred}{rgb}{0.67,0.2,0.0}
  44. \definecolor{sggray}{rgb}{0.4,0.4,0.4}
  45. \definecolor{sggolden}{rgb}{0.97,0.80,0.3}
  46. % quelltexte einbinden
  47. \usepackage{listings}
  48. \renewcommand{\lstlistlistingname}{List of Listings}
  49. \lstset{numbers=left,
  50. numberstyle=\tiny,
  51. basicstyle=\footnotesize,
  52. keywordstyle=\color{javapurple}\bfseries,
  53. stringstyle=\color{javared},
  54. commentstyle=\color{javagreen},
  55. morecomment=[s][\color{javadocblue}]{/**}{*/},
  56. numbersep=10pt,
  57. language=Java,
  58. frame=single
  59. }
  60. \lstset{prebreak=\raisebox{0ex}[0ex][0ex]{$\hookleftarrow$}}
  61. \lstset{postbreak=\raisebox{0ex}[0ex][0ex]{$\hookrightarrow$ }}
  62. \lstset{breaklines=true, breakatwhitespace=true}
  63. \reversemarginpar
  64. \newcommand\todo[1]{
  65. \marginnote{\hspace*{-2cm}\fcolorbox{sggolden}{sgyellow}{\textbf{\textcolor{sgred}{\textbf{!}}}}\hspace*{0.75cm}} \textsf{\scriptsize{\fcolorbox{sggolden}{sgyellow}{\textbf{\textcolor{red}{TODO}} \textcolor{sgred}{#1}}}}
  66. }