summaryrefslogtreecommitdiff
path: root/tryk/_issue.yml
blob: da6584a3d31b7143a7f1ad52cb21e11261181dc9 (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. # reduce vertical space after headlines
  34. - text: |
  35. \RedeclareSectionCommands[
  36. runin=false,
  37. beforeskip=.5\baselineskip,
  38. afterskip=-1ex]{section,subsection}
  39. # add newline between definition list description and items
  40. - text: |
  41. \usepackage{enumitem}
  42. \setlist[description]{style=nextline}
  43. # set page footer to danish page count "side X af Y"
  44. - text: |
  45. \usepackage{lastpage}
  46. \usepackage{scrlayer-scrpage}
  47. \cfoot{side \thepage\ af \pageref{LastPage}}
  48. # suppress figure label
  49. - text: |
  50. \usepackage[labelformat=empty]{caption}
  51. include-before-body:
  52. - text: |
  53. # enable multiple tagged columns
  54. - text: |
  55. \begin{multicols}{2}
  56. \raggedcolumns
  57. include-after-body:
  58. # conclude multiple tagged columns
  59. - text: |
  60. \end{multicols}