header.tex 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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]{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{tabularx}
  15. \usepackage{array}
  16. \usepackage{url}
  17. \usepackage[ngerman,pdfview=FitH,pdfstartview=FitV]{hyperref}
  18. \usepackage[a-1b]{pdfx}
  19. \usepackage{prettyref}
  20. \usepackage{booktabs}
  21. \usepackage{ccicons} % for Creative Commons citation icons
  22. \usepackage{ragged2e} % for tighter hyphenation
  23. \usepackage{soul}
  24. \usepackage{marginnote}
  25. \usepackage{wrapfig}
  26. \usepackage{blindtext}
  27. \usepackage{csquotes}
  28. % llt: Define a global style for URLs, rather that the default one
  29. \makeatletter
  30. \def\url@leostyle{%
  31. \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
  32. \makeatother
  33. \urlstyle{leo}
  34. % farben
  35. \definecolor{javared}{rgb}{0.6,0,0} % for strings
  36. \definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments
  37. \definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords
  38. \definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc
  39. \definecolor{sgblue}{rgb}{0.27,0.44,0.84}
  40. \definecolor{sgyellow}{rgb}{0.97,0.97,0.64}
  41. \definecolor{sgred}{rgb}{0.67,0.2,0.0}
  42. \definecolor{sggray}{rgb}{0.4,0.4,0.4}
  43. \definecolor{sggolden}{rgb}{0.97,0.80,0.3}
  44. % quelltexte einbinden
  45. \usepackage{listings}
  46. \renewcommand{\lstlistlistingname}{List of Listings}
  47. \lstset{numbers=left,
  48. numberstyle=\tiny,
  49. basicstyle=\footnotesize,
  50. keywordstyle=\color{javapurple}\bfseries,
  51. stringstyle=\color{javared},
  52. commentstyle=\color{javagreen},
  53. morecomment=[s][\color{javadocblue}]{/**}{*/},
  54. numbersep=10pt,
  55. language=Java,
  56. frame=single
  57. }
  58. \lstset{prebreak=\raisebox{0ex}[0ex][0ex]{$\hookleftarrow$}}
  59. \lstset{postbreak=\raisebox{0ex}[0ex][0ex]{$\hookrightarrow$ }}
  60. \lstset{breaklines=true, breakatwhitespace=true}
  61. \reversemarginpar
  62. \newcommand\todo[1]{
  63. \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}}}}
  64. }