header.tex 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. \usepackage{tabularx}
  10. \usepackage{multirow}
  11. \usepackage{multicol}
  12. \usepackage{rotating}
  13. \usepackage{tabularx}
  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. % llt: Define a global style for URLs, rather that the default one
  27. \makeatletter
  28. \def\url@leostyle{%
  29. \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
  30. \makeatother
  31. \urlstyle{leo}
  32. % farben
  33. \definecolor{javared}{rgb}{0.6,0,0} % for strings
  34. \definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments
  35. \definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords
  36. \definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc
  37. \definecolor{sgblue}{rgb}{0.27,0.44,0.84}
  38. \definecolor{sgyellow}{rgb}{0.97,0.97,0.64}
  39. \definecolor{sgred}{rgb}{0.67,0.2,0.0}
  40. \definecolor{sggray}{rgb}{0.4,0.4,0.4}
  41. \definecolor{sggolden}{rgb}{0.97,0.80,0.3}
  42. % quelltexte einbinden
  43. \usepackage{listings}
  44. \renewcommand{\lstlistlistingname}{List of Listings}
  45. \lstset{numbers=left,
  46. numberstyle=\tiny,
  47. basicstyle=\footnotesize,
  48. keywordstyle=\color{javapurple}\bfseries,
  49. stringstyle=\color{javared},
  50. commentstyle=\color{javagreen},
  51. morecomment=[s][\color{javadocblue}]{/**}{*/},
  52. numbersep=10pt,
  53. language=Java,
  54. frame=single
  55. }
  56. \lstset{prebreak=\raisebox{0ex}[0ex][0ex]{$\hookleftarrow$}}
  57. \lstset{postbreak=\raisebox{0ex}[0ex][0ex]{$\hookrightarrow$ }}
  58. \lstset{breaklines=true, breakatwhitespace=true}
  59. \reversemarginpar
  60. \newcommand\todo[1]{
  61. \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}}}}
  62. }