/ _extensions / ruc-play / stylish-report / _extension.yaml
_extension.yaml
 1  name: Stylish-report
 2  author: Jonas Smedegaard
 3  version: 0.1.0
 4  quarto-required: ">=1.9.18"
 5  contributes:
 6    formats:
 7      common:
 8        papersize: a4
 9        fontsize: 12pt
10        filters:
11        - en2em
12        - nobreaks
13        - stylish-roles
14      pdf:
15        pdf-version: "2.0"
16        pdf-standard: [a-4f, ua-2]
17        template-partials:
18        - formats/pdf/pandoc/hypersetup.latex
19        - formats/pdf/pandoc/title.tex
20        csquotes: true
21        csquotesoptions:
22        - autostyle=try
23        include-in-header:
24  # avoid widow or orphan lines
25        - text: |
26            \usepackage[defaultlines=4,all]{nowidow}
27        include-before-content:
28  # use single space after punctuation to avoid "rivers"
29  # (mostly TeX-specific nowadays - "french" here means classy or fancy):
30  # <https://en.wikipedia.org/wiki/History_of_sentence_spacing#The_computer_era>
31        - text: |
32            \frenchspacing
33      html:
34        theme:
35          light: flatly
36          dark: darkly
37        html-q-tags: true
38        include-in-header:
39        - file: formats/html/pandoc/html-quotes.html
40      revealjs:
41        theme:
42          light: flatly
43          dark: darkly
44        html-q-tags: true
45        include-in-header:
46        - file: formats/html/pandoc/html-quotes.html