preamble.tex 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. % Create DA color
  16. \usepackage{xcolor}
  17. \definecolor{da}{HTML}{006BC0}
  18. % Set color for headers
  19. \usepackage{sectsty}
  20. \sectionfont{\color{da}}
  21. \subsectionfont{\color{da}}
  22. % Document size and marging
  23. \usepackage[
  24. a4paper,
  25. includeheadfoot,
  26. top=1cm,
  27. bottom=1cm,
  28. right=2.0cm,
  29. left=2.0cm
  30. ]{geometry}
  31. % Links and metadata
  32. \usepackage[
  33. hidelinks,
  34. pdfauthor={\theauthor},
  35. pdftitle={\thetitle}
  36. ]{hyperref}
  37. % Newline in front of paragraph
  38. \usepackage{parskip}
  39. % Enable importing graphics
  40. \usepackage{graphicx}
  41. \graphicspath{{figs/}}
  42. % Fancy header and footer
  43. \usepackage{fancyhdr}
  44. \fancyhf{}
  45. \pagestyle{fancy}
  46. % Header
  47. \fancyhead[L]{\small\rm\textit{\rightmark}}
  48. \fancyhead[R]{\small\rm\textbf{\thepage}}
  49. \renewcommand{\headrulewidth}{0.5pt}
  50. % Footer
  51. \fancyfoot[L]{\small\rm\textit{\thetitle}}
  52. \fancyfoot[R]{\small\rm\textit{\theauthor}}
  53. \renewcommand{\footrulewidth}{0.5pt}
  54. \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}