summaryrefslogtreecommitdiff
path: root/tryk/_issue.yml
blob: 42c1ad6bdac802dfd3ae18d4e861096370551bad (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. template-partials:
  11. - before-title.tex
  12. include-in-header:
  13. # support multiple tagged columns (class option twocolumn is not tagged)
  14. - text: |
  15. \usepackage[a4paper, margin=0.5in, bottom=1in]{geometry} % Set all margins to zero
  16. \usepackage{multicol}
  17. \setlength{\columnsep}{20pt} % Adjust space between columns
  18. \setlength{\columnwidth}{0.45\textwidth} % Set column width (optional)
  19. # avoid widow headline or definition description
  20. - text: |
  21. \usepackage{needspace}
  22. \let\oldsection\section
  23. \renewcommand{\section}[1]{%
  24. \needspace{6\baselineskip}
  25. \oldsection{#1}%
  26. }
  27. \let\olddesc\description
  28. \renewcommand{\description}[1][]{%
  29. \olddesc[#1]%
  30. \needspace{2\baselineskip}
  31. }
  32. # avoid widow or orphan lines
  33. - text: |
  34. \usepackage[defaultlines=3,all]{nowidow}
  35. # reduce vertical space after headlines
  36. - text: |
  37. \RedeclareSectionCommands[
  38. runin=false,
  39. beforeskip=.5\baselineskip,
  40. afterskip=-1ex]{section,subsection}
  41. # add newline between definition list description and items
  42. - text: |
  43. \usepackage{enumitem}
  44. \setlist[description]{style=nextline}
  45. # set page footer to danish page count "side X af Y"
  46. - text: |
  47. \usepackage{lastpage}
  48. \usepackage{scrlayer-scrpage}
  49. \cfoot{side \thepage\ af \pageref{LastPage}}
  50. # suppress figure label
  51. - text: |
  52. \usepackage[labelformat=empty]{caption}
  53. include-before-body:
  54. - text: |
  55. # enable multiple tagged columns
  56. - text: |
  57. \begin{multicols}{2}
  58. \raggedcolumns
  59. include-after-body:
  60. # conclude multiple tagged columns
  61. - text: |
  62. \end{multicols}