summaryrefslogtreecommitdiff
path: root/_extensions/js/stylish-issue/_extension.yaml
blob: ddc7204d6df4a14a60d609fe2d13fae12e318ad8 (plain)
  1. name: Stylish-issue
  2. author: Jonas Smedegaard
  3. version: 0.0.1
  4. contributes:
  5. formats:
  6. pdf:
  7. # fontsize: 11pt
  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. # borrow microtype tunings from somewhat similar EB Garamond
  22. - text: |
  23. \DeclareMicrotypeAlias{ETbb}{EB Garamond}
  24. # larger section font
  25. - text: |
  26. \RedeclareSectionCommand[font=\Huge]{section}
  27. # support multiple tagged columns (class option twocolumn is not tagged)
  28. - text: |
  29. \usepackage[a4paper, margin=0.5in, bottom=1in]{geometry}
  30. \usepackage{multicol}
  31. \setlength{\multicolsep}{0pt}
  32. \setlength{\columnsep}{1.5em}
  33. \setlength{\columnseprule}{0.4pt}
  34. # avoid widow headline or definition description
  35. - text: |
  36. \usepackage{needspace}
  37. \let\oldsection\section
  38. \renewcommand{\section}[1]{%
  39. \needspace{7\baselineskip}
  40. \oldsection{#1}%
  41. }
  42. \let\olddesc\description
  43. \renewcommand{\description}[1][]{%
  44. \olddesc[#1]%
  45. \needspace{2\baselineskip}
  46. }
  47. # avoid widow or orphan lines
  48. - text: |
  49. \usepackage[defaultlines=3,all]{nowidow}
  50. # add newline between definition list description and items
  51. - text: |
  52. \usepackage{enumitem}
  53. \setlist[description]{leftmargin=0em,style=nextline}
  54. # set page footer to danish page count "side X af Y"
  55. - text: |
  56. \usepackage{lastpage}
  57. \usepackage{scrlayer-scrpage}
  58. \cfoot*{side \thepage\ af \pageref{LastPage}}
  59. # suppress figure label, and adjust styling
  60. - text: |
  61. \usepackage[labelformat=empty,font={sf,small},skip=0.5ex]{caption}
  62. # newspaper styling of title header
  63. - text: |
  64. \usepackage[useregional,showdow]{datetime2}
  65. \makeatletter
  66. \renewcommand{\maketitle}{
  67. {
  68. \rightline{\@subtitle, \DTMdate{\@date}}
  69. \centerline{\resizebox{\linewidth+18pt}{!}{\textsc{\@title}}}
  70. }
  71. }
  72. \makeatother