Skip to content

Commit 9673f40

Browse files
committed
Fix typo
1 parent 83f703f commit 9673f40

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

example/example.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fi fj fl ffl ffi Ty
152152
#index("Theorems")
153153
=== Several equations
154154
#index("Theorems!Several equations")
155-
This where is a theorem consisting of several equations.
155+
This is a theorem consisting of several equations.
156156
#theorem(name: "Name of the theorem")[
157157
In $E=bb(R)^n$ all norms are equivalent. It has the properties:
158158
$ abs(norm(bold(x)) - norm(bold(y))) <= norm(bold(x-y)) $

typst-orange.typ

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,22 @@
173173
set par(leading: 0.5em)
174174
set enum(numbering: "1.a.i.")
175175
set list(marker: ([•], [--], [◦]))
176+
// show math.equation.where(block: true): e => {
177+
// counter(math.equation).step()
178+
// locate(loc => {
179+
// pad(left: 3em, box({
180+
// box(e)
181+
// h(1fr)
182+
// "(" + str(counter(heading).at(loc).at(0)) + "." + str(counter(math.equation).at(loc).first()) + ")"
183+
// }))
184+
// })
185+
// }
176186
set math.equation(numbering: (..nums) => {
177187
locate(loc => {
178188
"(" + str(counter(heading).at(loc).at(0)) + "." + str(nums.pos().first()) + ")"
179189
})
180190

181-
},)
191+
},)
182192
set page(
183193
paper: "a4",
184194
margin: (x: 3cm, bottom: 2.5cm, top: 3cm),

0 commit comments

Comments
 (0)