preamble.tex 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. % Title formatting
  19. \usepackage[noindentafter]{titlesec}
  20. \titleformat{\section}{\color{da}\bfseries\sffamily\large}{Artikel - \thesection}{1ex}{}
  21. \titleformat{\subsection}{\color{da}\bfseries\sffamily\large}{}{2em}{}
  22. \titleformat{\subsubsection}{\color{da}\sffamily\normalsize}{}{0ex}{}
  23. % Document size and marging
  24. \usepackage[
  25. a4paper,
  26. includeheadfoot,
  27. top=1cm,
  28. bottom=1cm,
  29. right=2.0cm,
  30. left=2.0cm
  31. ]{geometry}
  32. % Links and metadata
  33. \usepackage[
  34. hidelinks,
  35. pdfauthor={\theauthor},
  36. pdftitle={\thetitle}
  37. ]{hyperref}
  38. % Newline in front of paragraph
  39. \usepackage{parskip}
  40. % Enable importing graphics
  41. \usepackage{graphicx}
  42. \graphicspath{{figs/}}
  43. % Fancy header and footer
  44. \usepackage{fancyhdr}
  45. \fancyhf{}
  46. \pagestyle{fancy}
  47. % Header
  48. \fancyhead[L]{\small\rm\textit{Version \theversion}}
  49. \fancyhead[R]{\small\rm\textbf{\thepage}}
  50. \renewcommand{\headrulewidth}{0.5pt}
  51. % Footer
  52. \fancyfoot[L]{\small\rm\textit{\thedate}}
  53. \fancyfoot[R]{\small\rm\textit{\theauthor}}
  54. \renewcommand{\footrulewidth}{0.5pt}
  55. \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
  56. % Indent paragraph
  57. \leftskip 4em