Add documentation for example number formatting

Also change the default sub-example format to "a."
This commit is contained in:
Greg Shuflin
2025-09-01 17:42:28 -07:00
parent c10d7ed52a
commit 92559deb83
3 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@@ -214,6 +214,10 @@ A global `header` field for the set can be added.
", addl-bindings: (indf: indf, pl: pl, sg: sg, def: def, dem: dem))
The parameter `sub-num-pattern` can be provided to `example`, which accepts
#link("https://typst.app/docs/reference/model/numbering/")[Typst numbering syntax]
to format sub-examples.
//TODO add a custom numbering system that can handle example 18a-c of Kartvelian Morphosyntax and Number Agreement
== Numbering Glosses
@@ -310,6 +314,10 @@ Labelling of sub-examples is possible as well, using the same `label` and `label
In @hausa there are two sub-examples: @people deals with people and @school with a school.
", addl-bindings: (pred: pred, dem: dem))
The parameter `num-pattern` can be provided to `example`, which accepts
#link("https://typst.app/docs/reference/model/numbering/")[Typst numbering syntax]
to format examples.
= Standard Abbreviations
The Leipzig Glossing Rules define a commonly-used set of short abbreviations

View File

@@ -122,7 +122,7 @@
numbering: false,
breakable: false,
num-pattern: "(1)",
sub-num-pattern: "(a)",
sub-num-pattern: "a.",
..args
) = {
let add-subexample(subexample, count) = {