Skip to content

Commit 3e381a1

Browse files
committed
update README.md and manual.typ
1 parent ae525a9 commit 3e381a1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ To activate the appendix environment, all you have to do is to place the followi
4040

4141
### Subfigures
4242

43-
Subfigures are not built-in features of Typst, but the #package[Elsearticle] template provides a way to handle them. To create a subfigure, you can use the following syntax:
43+
Subfigures are not built-in features of Typst, but the `elsearticle` template provides a way to handle them. It is based on the `subpar` package that allows you to create subfigures and properly reference them.
4444

4545
```typ
46-
#figure(
47-
grid(columns: 2, gutter: 1em,
48-
[#subfigure(image("image1.png")) <figa>],
49-
[#subfigure(image("image2.png")) <figb>]
50-
),
51-
caption: [(a) Left image and (b) Right image],
52-
) <fig>
46+
#subfigure(
47+
figure(image("image1.png"), caption: []), <figa>,
48+
figure(image("image2.png"), caption: []), <figb>,
49+
columns: (1fr, 1fr),
50+
caption: [(a) Left image and (b) Right image],
51+
label: <fig>
52+
)
5353
```
5454

5555
>**NOTE**

docs/manual.pdf

13 Bytes
Binary file not shown.

docs/manual.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ To activate the appendix environment, all you have to do is to place the followi
151151

152152
=== Subfigures
153153

154-
Subfigures are not built-in features of Typst, but the #package[Elsearticle] template provides a way to handle them. It is based on the #package[subpar] that allows you to create subfigures and properly reference them.
154+
Subfigures are not built-in features of Typst, but the #package[Elsearticle] template provides a way to handle them. It is based on the #package[subpar] package that allows you to create subfigures and properly reference them.
155155

156156
To create a subfigure, you can use the following syntax:
157157

0 commit comments

Comments
 (0)