preamble.tex 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. \documentclass[11pt,a4paper]{article}
  2. % Config
  3. %%%%%%%%%%%
  4. % get settings from config
  5. \input{config}
  6. \title{\thetitle}
  7. \author{\theauthor}
  8. \date{\thedate}
  9. % Packages
  10. %%%%%%%%%%%
  11. % Document language
  12. \usepackage[dutch]{babel}
  13. % Extra font settings
  14. \usepackage[utf8]{inputenc}
  15. % Document size and marging
  16. \usepackage[
  17. a4paper,
  18. includeheadfoot,
  19. top=1cm,
  20. bottom=1.0cm,
  21. right=2.0cm,
  22. left=2.0cm
  23. ]{geometry}
  24. % Links and metadata
  25. \usepackage[
  26. hidelinks,
  27. pdfauthor={\theauthor},
  28. pdftitle={\thetitle}
  29. ]{hyperref}
  30. % Newline in front of paragraph
  31. \usepackage{parskip}
  32. % Enable importing graphics
  33. \usepackage{graphicx}
  34. \graphicspath{{figs/}}
  35. % Add formating for code
  36. \usepackage{listings}
  37. \lstset{
  38. language=Java,
  39. tabsize=4,
  40. framexleftmargin=5mm,
  41. breaklines=true
  42. }
  43. % Fancy header and footer
  44. \usepackage{fancyhdr}
  45. \fancyhf{}
  46. \pagestyle{fancy}
  47. % header
  48. \fancyhead[L]{\small\rm\textit{\rightmark}}
  49. \fancyhead[R]{\small\rm\textbf{\thepage}}
  50. \renewcommand{\headrulewidth}{0.5pt}
  51. % footer
  52. \fancyfoot[L]{\small\rm\textit{\thetitle}}
  53. \fancyfoot[R]{\small\rm\textit{\theauthor– \theschool}}
  54. \renewcommand{\footrulewidth}{0.5pt}
  55. \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}