diff --git a/docs/src/formats.md b/docs/src/formats.md index e734989..0c7c12a 100644 --- a/docs/src/formats.md +++ b/docs/src/formats.md @@ -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 ```