header.tex 2.3 KB

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