Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed Jun 13, 2024
2 parents 502f080 + 998127e commit 50bcb9c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ julia> using Typstry
## Showcase

```julia-repl
julia> show_typst(IOContext(stdout, :mode => code), 'a')
"'a'"
julia> show_typst(IOContext(stdout, :mode => code), true)
true
julia> show(stdout, "text/typst", Typst([true 1; 1.0 [Any[true 1; 1.0 nothing]]]))
$mat(
Expand Down Expand Up @@ -111,8 +111,8 @@ typst`compile input.typ output.pdf`
- A symbolic `TypstFunction`?
- May faciliate Julia to Typst transpilation
- Examples
- `TypstString(TypstFunction(eval, 1 // 2; mode = code)) == typst"eval("(1 / 2)", mode: \"code\")"`
- `TypstString(TypstFunction(*, "a", "b"; mode = math)) == typst"(a) (b)"`
- `TypstString(TypstFunction(eval, :(1//2); mode = code)) == typst"eval("(1 / 2)", mode: \"code\")"`
- `TypstString(TypstFunction(*, :a, :b; mode = math)) == typst"(a) (b)"`

## Related Packages

Expand All @@ -129,3 +129,4 @@ typst`compile input.typ output.pdf`
- [LaTeXStrings.jl](https://github.com/JuliaStrings/LaTeXStrings.jl)
- [LatexPrint.jl](https://github.com/scheinerman/LatexPrint.jl)
- [MakieTeX.jl](https://github.com/JuliaPlots/MakieTeX.jl)
- [MathJaxRenderer.jl](https://github.com/MichaelHatherly/MathJaxRenderer.jl)

0 comments on commit 50bcb9c

Please sign in to comment.