summaryrefslogtreecommitdiff
path: root/_extensions/js/stylish-issue/_extension.yaml
blob: 9f8f312e0c430705585c95ccbe57709faa7f3700 (plain)
  1. name: Stylish-issue
  2. author: Jonas Smedegaard
  3. version: 0.0.1
  4. contributes:
  5. formats:
  6. pdf:
  7. fontsize: 12pt
  8. indent: true
  9. # links-as-notes: true
  10. colorlinks: false
  11. pdf-engine: lualatex
  12. documentclass: scrartcl
  13. classoption:
  14. - headings=big
  15. csquotes: true
  16. papersize: a4
  17. # extract-media: img
  18. template-partials:
  19. - before-title.tex
  20. include-in-header:
  21. # larger section font
  22. - text: |
  23. \RedeclareSectionCommand[font=\Huge]{section}
  24. # support multiple tagged columns (class option twocolumn is not tagged)
  25. - text: |
  26. \usepackage[a4paper, margin=0.5in, bottom=1in]{geometry}
  27. \usepackage{multicol}
  28. \setlength{\multicolsep}{0pt}
  29. \setlength{\columnsep}{1.5em}
  30. \setlength{\columnseprule}{0.4pt}
  31. # avoid widow headline or definition description
  32. - text: |
  33. \usepackage{needspace}
  34. \let\oldsection\section
  35. \renewcommand{\section}[1]{%
  36. \needspace{7\baselineskip}
  37. \oldsection{#1}%
  38. }
  39. \let\olddesc\description
  40. \renewcommand{\description}[1][]{%
  41. \olddesc[#1]%
  42. \needspace{2\baselineskip}
  43. }
  44. # avoid widow or orphan lines
  45. - text: |
  46. \usepackage[defaultlines=3,all]{nowidow}
  47. # add newline between definition list description and items
  48. - text: |
  49. \usepackage{enumitem}
  50. \setlist[description]{leftmargin=1em,style=nextline}
  51. # set page footer to danish page count "side X af Y"
  52. - text: |
  53. \usepackage{lastpage}
  54. \usepackage{scrlayer-scrpage}
  55. \cfoot*{side \thepage\ af \pageref{LastPage}}
  56. # suppress figure label, and adjust styling
  57. - text: |
  58. \usepackage[labelformat=empty,font={sf,small},skip=0.5ex]{caption}
  59. # newspaper styling of title header
  60. - text: |
  61. \usepackage[useregional,showdow]{datetime2}
  62. \makeatletter
  63. \renewcommand{\maketitle}{
  64. {
  65. \rightline{\@subtitle, \DTMdate{\@date}}
  66. \centerline{\resizebox{\linewidth+18pt}{!}{\textsc{\@title}}}
  67. }
  68. }
  69. \makeatother