AtlatestRepositorysigil-doc
1(define-library (practical-sigil theme)
2 (import (sigil core) (sigil doc print) (sigil doc render typst))
3 (export practical-sigil-print-options practical-sigil-theme
4 compact-study-print-options compact-study-theme)
5 (begin
6 ;; The current edition is explicit while retaining the renderer's exact D6
7 ;; compatibility output. Publication policy and visual theme are normal,
8 ;; reusable Sigil values rather than manuscript annotations.
9 (define practical-sigil-print-options default-print-options)
10 (define practical-sigil-theme default-typst-theme)
12 ;; A deliberately different edition pressure-tests the public surface. It
13 ;; does not change or wrap either .sgd manuscript.
14 (define compact-study-print-options
15 (make-print-options
16 chapter-numbering: 'roman-upper
17 section-numbering?: #t
18 section-numbering-depth: 2
19 chapter-author-display: 'when-different
20 chapter-author-placement: 'beneath-title
21 contents-depth: 2
22 include-unnumbered-in-contents?: #f
23 chapter-start: 'odd
24 chapter-label-style: 'chapter-word
25 running-header: 'publication-title))
26 (define compact-study-theme
27 (make-typst-theme
28 paper: 'a5
29 margin-x: (make-typst-length 16 'mm)
30 margin-y: (make-typst-length 18 'mm)
31 body-font: "Libertinus Serif"
32 body-size: (make-typst-length 10 'pt)
33 code-font: "DejaVu Sans Mono"
34 code-size: (make-typst-length 7.5 'pt)
35 title-size: (make-typst-length 23 'pt)
36 title-weight: 'semibold
37 subtitle-size: (make-typst-length 12 'pt)
38 chapter-size: (make-typst-length 18 'pt)
39 chapter-weight: 'bold
40 section-size: (make-typst-length 12.5 'pt)
41 section-weight: 'semibold
42 heading-color: "2f496e"
43 heading-spacing: (make-typst-length 12 'pt)
44 accent-color: "b44b34"
45 syntax-comment-color: "58715f"
46 syntax-string-color: "a03c62"
47 syntax-keyword-color: "4e55a6"
48 syntax-number-color: "b05f18"
49 syntax-plain-color: "20242b"
50 code-background: "edf1f5"
51 code-padding: (make-typst-length 7 'pt)
52 code-wrap-column: 64
53 admonition-background: "f2eee3"
54 admonition-accent: "8b6f35"
55 chapter-author-size: (make-typst-length 9 'pt)
56 chapter-author-color: "546171"
57 title-author-size: (make-typst-length 10 'pt)
58 page-number-position: 'right
59 running-header-font: "Libertinus Serif"
60 running-header-size: (make-typst-length 7.5 'pt)
61 running-header-color: "546171"
62 running-header-align: 'right))))