File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Makie = "0.21.2"
35
35
Poppler_jll = " 21.9, 22, 23"
36
36
Rsvg = " 1"
37
37
julia = " 1.9"
38
- Typstry = " 0.2, 0. 3"
38
+ Typstry = " 0.3"
39
39
tectonic_jll = " 0"
40
40
41
41
[extras ]
Original file line number Diff line number Diff line change 63
63
``` @example main
64
64
using MakieTeX, CairoMakie
65
65
66
- typst_string = typst"$ integral_0^pi sin(x)^2 diff x $";
66
+ typst_string = typst"$ integral_0^pi sin(x)^2 dif x $";
67
67
typst_document = TypstDocument(typst_string);
68
68
cached_typst = CachedTypst(typst_document);
69
69
Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ Compile the given document as a String and return the resulting PDF (also as a S
14
14
"""
15
15
function compile_typst (document:: AbstractString )
16
16
#=
17
- Typst_jll v0.11+ supports compiling from `stdin`.
18
- It does not yet support compiling to `stdout`.
17
+ Typst_jll v0.11+ supports reading from `stdin`.
18
+ Typst_jll v0.12+ will likely support writing to `stdout`.
19
19
20
20
See also:
21
21
https://github.com/typst/typst/issues/410
22
22
https://github.com/typst/typst/pull/3339
23
+ https://github.com/typst/typst/pull/3632
23
24
=#
24
25
return mktempdir () do dir
25
26
cd (dir) do
@@ -39,7 +40,7 @@ function compile_typst(document::AbstractString)
39
40
try
40
41
# `pipeline` is not yet supported for `TypstCommand`
41
42
redirect_stdio (stdout = out, stderr = err) do
42
- run (ignorestatus (typst ` compile temp.typ` ))
43
+ run (ignorestatus (addenv ( typst ` compile temp.typ` , " TYPST_FONT_PATHS " => Typstry . julia_mono) ))
43
44
end
44
45
45
46
close (out. in)
You can’t perform that action at this time.
0 commit comments