summaryrefslogtreecommitdiff
path: root/_extensions/js/stylish-issue/_extension.yaml
blob: 063264cf65fee8abd50ea87050c33defce73e7bc (plain)
  1. name: Stylish-issue
  2. author: Jonas Smedegaard
  3. version: 0.0.1
  4. contributes:
  5. formats:
  6. pdf:
  7. # links-as-notes: true
  8. colorlinks: false
  9. pdf-engine: lualatex
  10. documentclass: scrartcl
  11. csquotes: true
  12. papersize: a4
  13. # extract-media: img
  14. template-partials:
  15. - before-title.tex
  16. include-in-header:
  17. # support multiple tagged columns (class option twocolumn is not tagged)
  18. - text: |
  19. \usepackage[a4paper, margin=0.5in, bottom=1in]{geometry}
  20. \usepackage{multicol}
  21. \setlength{\columnsep}{20pt}
  22. # avoid widow headline or definition description
  23. - text: |
  24. \usepackage{needspace}
  25. \let\oldsection\section
  26. \renewcommand{\section}[1]{%
  27. \needspace{6\baselineskip}
  28. \oldsection{#1}%
  29. }
  30. \let\olddesc\description
  31. \renewcommand{\description}[1][]{%
  32. \olddesc[#1]%
  33. \needspace{2\baselineskip}
  34. }
  35. # avoid widow or orphan lines
  36. - text: |
  37. \usepackage[defaultlines=3,all]{nowidow}
  38. # reduce vertical space after headlines
  39. - text: |
  40. \RedeclareSectionCommands[
  41. runin=false,
  42. beforeskip=.5\baselineskip,
  43. afterskip=-1ex]{section,subsection}
  44. # add newline between definition list description and items
  45. - text: |
  46. \usepackage{enumitem}
  47. \setlist[description]{style=nextline}
  48. # set page footer to danish page count "side X af Y"
  49. - text: |
  50. \usepackage{lastpage}
  51. \usepackage{scrlayer-scrpage}
  52. \cfoot*{side \thepage\ af \pageref{LastPage}}
  53. # suppress figure label
  54. - text: |
  55. \usepackage[labelformat=empty]{caption}
  56. include-before-body:
  57. - text: |
  58. # enable multiple tagged columns
  59. - text: |
  60. \begin{multicols}{2}
  61. \raggedcolumns
  62. include-after-body:
  63. # conclude multiple tagged columns
  64. - text: |
  65. \end{multicols}