@@ -4,7 +4,6 @@ keep-typ: true
44_quarto :
55 tests :
66 typst :
7- noErrors : default
87 ensureTypstFileRegexMatches :
98 -
109 - ' #remark\('
@@ -15,9 +14,38 @@ _quarto:
1514 - ' #show: show-solution'
1615 - ' #ref\(<rem-example>'
1716 - ' #ref\(<sol-exercise>'
17+ # unnumbered blocks pin their number and keep the counter still
18+ - ' #remark\(number: "", get-prefix: '
19+ - ' #proof\(number: "", get-prefix: '
20+ # a numbered proof keeps theorion's own number
21+ - ' #proof\(\)\[(\r\n?|\n)Numbered proof\.'
1822 - []
23+ ensurePdfRegexMatches :
24+ -
25+ - ' Remark\. An unnumbered remark'
26+ - ' Remark 1 \(A Remark\)'
27+ - ' Solution 1 \(A Solution\)'
28+ - ' Proof\. This is an unnumbered proof'
29+ - ' Proof 1\. Numbered proof'
30+ - ' Proof \(With code\)\. A named proof'
31+ - ' See Remark 1, Solution 1 and Proof 1'
32+ -
33+ - ' Remark 2'
34+ - ' Proof 2'
35+ - ' Proof \.'
1936---
2037
38+ An unnumbered ` proof ` , ` remark ` or ` solution ` block uses the same theorion
39+ frame, and so the same counter, as the numbered block of that kind. It must
40+ show no number and must not move the counter, so that ` rem-example ` is still
41+ Remark 1 although an unnumbered remark comes before it.
42+
43+ ::: {.remark}
44+
45+ An unnumbered remark.
46+
47+ :::
48+
2149::: {#rem-example}
2250
2351## A Remark
@@ -40,4 +68,18 @@ This is an unnumbered proof.
4068
4169:::
4270
43- See @rem-example and @sol-exercise .
71+ ::: {#prf-a}
72+
73+ Numbered proof.
74+
75+ :::
76+
77+ ::: {.proof}
78+
79+ ## With ` code `
80+
81+ A named proof.
82+
83+ :::
84+
85+ See @rem-example , @sol-exercise and @prf-a .
0 commit comments