summaryrefslogtreecommitdiff
path: root/tryk/_issue.yml
blob: bdc118b478e7756ecfcd2a144f9cea6e58569c1e (plain)
  1. format:
  2.   pdf:
  3. # links-as-notes: true
  4. colorlinks: false
  5. pdf-engine: lualatex
  6. documentclass: scrartcl
  7. classoption:
  8. - DIV=calc
  9. - twocolumn
  10. csquotes: true
  11. papersize: a4
  12. # extract-media: img
  13. include-in-header:
  14. # recalculate page margins, since mainfont was set after documentclass
  15. - text: |
  16. \KOMAoptions{DIV=last}
  17. # avoid widow or orphan lines
  18. - text: |
  19. \usepackage[defaultlines=4,all]{nowidow}
  20. # set page footer to danish page count "side X af Y"
  21. - text: |
  22. \usepackage{lastpage}
  23. \usepackage{scrlayer-scrpage}
  24. \cfoot{side \thepage\ af \pageref{LastPage}}
  25. # balance columns on last page
  26. - text: |
  27. \usepackage{pbalance}
  28. # cludge to support markdown tables in twocolumn page layout
  29. - text: |
  30. \usepackage{float}
  31. \makeatletter
  32. \let\oldlt\longtable
  33. \let\endoldlt\endlongtable
  34. \def\longtable{\@ifnextchar[\longtable@i \longtable@ii}
  35. \def\longtable@i[#1]{\begin{figure}[H]
  36. \onecolumn
  37. \begin{minipage}{0.5\textwidth}
  38. \oldlt[#1]
  39. }
  40. \def\longtable@ii{\begin{figure}[H]
  41. \onecolumn
  42. \begin{minipage}{0.5\textwidth}
  43. \oldlt
  44. }
  45. \def\endlongtable{\endoldlt
  46. \end{minipage}
  47. \twocolumn
  48. \end{figure}}
  49. \makeatother
  50. # suppress figure label
  51. - text: |
  52. \usepackage[labelformat=empty]{caption}
  53. include-before-content:
  54. # avoid english style of added space after punctuation
  55. - text: |
  56. \frenchspacing