Skip to content

Commit

Permalink
better typst docs
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Jun 9, 2024
1 parent 9c88c41 commit 3132375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ using MakieTeX, CairoMakie
typst_string = typst"$ integral_0^pi sin(x)^2 diff x $";
typst_document = TypstDocument(typst_string);
cached_typst = CachedTypst(typst_document);
cached_pdf = convert(CachedPDF, cached_typst);
fig = Figure(size=(100, 100));
LTeX(fig[1, 1], cached_pdf);
fig = Figure();
LTeX(fig[1, 1], typst_document; scale = 2);
scatter(fig[2, 1], rand(10), rand(10), marker=cached_typst, markersize = 50)
fig
```

Expand Down

0 comments on commit 3132375

Please sign in to comment.