Package Interoperability
This guide illustrates how to use Typstry.jl in compatible notebooks and packages.
Notebooks
IJulia.jl, Pluto.jl, and QuartoNotebookRunner.jl each render
Typst
s and TypstText
s. Pluto.jl and QuartoNotebookRunner.jl also render
TypstString
s, whereas IJulia.jl will support them in its next feature release.
Packages
MakieTeX.jl
This package re-exports @typst_str
and TypstString
.
julia> using CairoMakie, MakieTeX
julia> f = Figure(; size = (100, 100))
julia> LTeX(f[1, 1], TypstDocument(typst"$ 1 / x $"))
julia> save("makie_tex.svg", f)
TypstJlyfish.jl
#set page(margin: 1em, height: auto, width: auto, fill: white)
#set text(16pt, font: "JuliaMono")
#import "@preview/jlyfish:0.1.0": *
#read-julia-output(json("typst_jlyfish.json"))
#jl-pkg("Typstry")
#jl(`using Typstry; typst"$1 / x$"`)
julia> using TypstJlyfish, Typstry
julia> TypstJlyfish.compile("typst_jlyfish.typ";
evaluation_file = "typst_jlyfish.json",
typst_compile_args = "--format=svg --font-path=$julia_mono"
)