Skip to content

Commit d122ba0

Browse files
committed
updated example
1 parent 8509bfd commit d122ba0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Example Usage:
66
```typ
7-
#import "@preview/theoretic:0.1.0": *
7+
#import "@preview/theoretic:0.1.0" as theoretic: theorem, proof, qed
88
99
// Otherwise, references won't work.
1010
#show ref: theoretic.show-ref
@@ -15,7 +15,10 @@ Example Usage:
1515
// ..etc
1616
1717
// use
18-
#corollary[]
18+
#theorem(title: [Important Theorem])[#lorem(5)]
19+
#corollary[#lorem(5)]
20+
#example[#lorem(5)]
21+
// ..etc
1922
```
2023

2124
[Full manual: ![first page of the documentation](https://github.com/nleanba/typst-theoretic/raw/refs/heads/main/preview.svg)](https://github.com/nleanba/typst-theoretic/blob/main/main.pdf)

0 commit comments

Comments
 (0)