summaryrefslogtreecommitdiff
path: root/tryk/_issue.yml
blob: 1da484e3e3fe3c2210dcaf5cdbc938ce8469e282 (plain)
  1. format:
  2.   pdf:
  3. # links-as-notes: true
  4. colorlinks: false
  5. pdf-engine: lualatex
  6. documentclass: scrartcl
  7. csquotes: true
  8. papersize: a4
  9. # extract-media: img
  10. include-in-header:
  11. # support multiple tagged columns (class option twocolumn is not tagged)
  12. - text: |
  13. \usepackage[a4paper, margin=0.5in, bottom=1in]{geometry} % Set all margins to zero
  14. \usepackage{multicol}
  15. \setlength{\columnsep}{20pt} % Adjust space between columns
  16. \setlength{\columnwidth}{0.45\textwidth} % Set column width (optional)
  17. # avoid widow headline or definition description
  18. - text: |
  19. \usepackage{needspace}
  20. \let\oldsection\section
  21. \renewcommand{\section}[1]{%
  22. \needspace{6\baselineskip}
  23. \oldsection{#1}%
  24. }
  25. \let\olddesc\description
  26. \renewcommand{\description}[1][]{%
  27. \olddesc[#1]%
  28. \needspace{2\baselineskip}
  29. }
  30. # avoid widow or orphan lines
  31. - text: |
  32. \usepackage[defaultlines=3,all]{nowidow}
  33. # add newline between definition list description and items
  34. - text: |
  35. \usepackage{enumitem}
  36. \setlist[description]{style=nextline}
  37. # set page footer to danish page count "side X af Y"
  38. - text: |
  39. \usepackage{lastpage}
  40. \usepackage{scrlayer-scrpage}
  41. \cfoot{side \thepage\ af \pageref{LastPage}}
  42. # suppress figure label
  43. - text: |
  44. \usepackage[labelformat=empty]{caption}
  45. include-before-body:
  46. - text: |
  47. # enable multiple tagged columns
  48. - text: |
  49. \begin{multicols}{2}
  50. \raggedcolumns
  51. include-after-body:
  52. # conclude multiple tagged columns
  53. - text: |
  54. \end{multicols}