AtlatestRepositorysigil-doc
sigil-doc / tree / book / practical-sigiltheme.sgl
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-theme4
compact-study-print-options compact-study-theme)5
(begin6
;; The current edition is explicit while retaining the renderer's exact D67
;; 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. It13
;; does not change or wrap either .sgd manuscript.14
(define compact-study-print-options15
(make-print-options16
chapter-numbering: 'roman-upper17
section-numbering?: #t18
section-numbering-depth: 219
chapter-author-display: 'when-different20
chapter-author-placement: 'beneath-title21
contents-depth: 222
include-unnumbered-in-contents?: #f23
chapter-start: 'odd24
chapter-label-style: 'chapter-word25
running-header: 'publication-title))26
(define compact-study-theme27
(make-typst-theme28
paper: 'a529
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: 'semibold37
subtitle-size: (make-typst-length 12 'pt)38
chapter-size: (make-typst-length 18 'pt)39
chapter-weight: 'bold40
section-size: (make-typst-length 12.5 'pt)41
section-weight: 'semibold42
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: 6453
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: 'right59
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))))