Skip to content

Commit

Permalink
Fix grammar and minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed Jun 8, 2024
1 parent 0e18381 commit 57245bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ext/MakieTeXCairoMakieExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ CairoMakie.cairo_scatter_marker(v::NTuple{N, <: MakieTeX.AbstractDocument}) wher

# # Teximg

# Override `is_cairomakie_atomic_plot` to allow `TeXImg` and `TypstImg` to remain a unit,
# Override `is_cairomakie_atomic_plot` to allow `TeXImg` to remain a unit,
# instead of auto-decomposing into its component scatter plot.
CairoMakie.is_cairomakie_atomic_plot(plot::Union{TeXImg, TypstImg}) = true
CairoMakie.is_cairomakie_atomic_plot(plot::TeXImg) = true

# # Scatter markers

Expand Down
2 changes: 1 addition & 1 deletion src/recipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end
This recipe plots rendered `Typst` to your Figure or Scene.
There are three types of input you can provide:
- Any `String`, which is rendered to LaTeX cognizant of the figure's overall theme,
- Any `String`, which is rendered to Typst cognizant of the figure's overall theme,
- A [`TypstDocument`](@ref) object, which is rendered to Typst directly, and can be customized by the user,
- A [`CachedTypst`](@ref) object, which is a pre-rendered Typst document.
Expand Down
2 changes: 1 addition & 1 deletion src/rendering/typst.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function compile_typst(document::AbstractString)
close(out.in)
close(err.in)
if !isfile("temp.pdf")
println("Typst did not write temp.pdf! Using the Typst_jll.jl.")
println("Typst did not write temp.pdf! Using Typst_jll.jl.")
println("Files in temp directory are:\n" * join(readdir(), ','))
printstyled("Stdout\n", bold=true, color = :blue)
println(read(out, String))
Expand Down
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function TypstDocument(
return TypstDocument(contents)
end
end
TypstDocument(ts::LaTeXString) = TEXDocument(ts, true)
TypstDocument(ts::TypstString) = TypstDocument(ts, true)

"""
typstdoc(contents::AbstractString; kwargs...)
Expand Down

0 comments on commit 57245bb

Please sign in to comment.