-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.typ
40 lines (21 loc) · 1020 Bytes
/
example.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import "@preview/rich-counters:0.2.2": *
#set heading(numbering: "1.1")
#let mycounter = rich-counter(identifier: "mycounter", inherited_levels: 1)
// DOCUMENT
Displaying `mycounter` here: #context (mycounter.display)()
= First level heading
Displaying `mycounter` here: #context (mycounter.display)()
Stepping `mycounter` here. #(mycounter.step)()
Displaying `mycounter` here: #context (mycounter.display)()
= Another first level heading
Displaying `mycounter` here: #context (mycounter.display)()
Stepping `mycounter` here. #(mycounter.step)()
Displaying `mycounter` here: #context (mycounter.display)()
== Second level heading
Displaying `mycounter` here: #context (mycounter.display)()
Stepping `mycounter` here. #(mycounter.step)()
Displaying `mycounter` here: #context (mycounter.display)()
= Aaand another first level heading
Displaying `mycounter` here: #context (mycounter.display)()
Stepping `mycounter` here. #(mycounter.step)()
Displaying `mycounter` here: #context (mycounter.display)()