diff --git a/NEWS.md b/NEWS.md index d3bc33a..4e8aa81 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,9 +3,10 @@ ## v0.4.0 +- Support Typst version 0.12 + ### Bug Fixes - If a `TypstString` contains any characters that satisfy `!isprint`, `show(::IO, ::TypstString)` now prints a format that preserves those characters. -- Delete redundant `show_typst` documentation for `String` - Account for a [Typst bug with single-letter strings in `math` mode](https://github.com/typst/typst/issues/274#issue-1639854848) diff --git a/docs/source/tutorials/getting_started.md b/docs/source/tutorials/getting_started.md index 5fe1650..bd5a439 100644 --- a/docs/source/tutorials/getting_started.md +++ b/docs/source/tutorials/getting_started.md @@ -40,12 +40,6 @@ typst"$ π approx 3.141592653589793 $" ## Commands -Easily generate a Typst source file and compile it into a document using [`render`](@ref). - -```jldoctest 1 -julia> render(Any[true 1; 1.2 1 // 2]); -``` - Use the Typst command-line interface by [`run`](@ref)ning a [`TypstCommand`](@ref) created with its constructor or [`@typst_cmd`](@ref). @@ -53,5 +47,12 @@ Use the Typst command-line interface by [`run`](@ref)ning a julia> TypstCommand(["help"]) typst`help` -julia> run(typst`compile input.typ output.pdf`); +julia> typst`compile input.typ output.pdf` +typst`compile input.typ output.pdf` +``` + +Easily generate a Typst source file and compile it into a document using [`render`](@ref). + +```jldoctest 1 +julia> render(Any[true 1; 1.2 1 // 2]); ``` diff --git a/src/Commands.jl b/src/Commands.jl index 83bbe2c..fb8ecac 100644 --- a/src/Commands.jl +++ b/src/Commands.jl @@ -161,7 +161,7 @@ const preamble = typst""" input = "input.typ", output = "output.pdf", open = true, - preamble = Typstry.preamble, + preamble = preamble, context...) Render to a document using