-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration with Pluto.jl Notebook #64
Comments
I think it just works in Pluto.jl, right? |
Unfortunately, I think it does not. I tried to run the example (Julia 1.4.1 on Ubuntu 20.04.01) tp = TikzPicture(L"""
\draw (0,0) -- (10,10);
\draw (10,0) -- (0,10);
\node at (5,5) {tikz $\sqrt{\pi}$};"""
, options="scale=0.25", preamble="") And it throws this error. tp
Failed to show value:
LaTeX error
error(::String)@error.jl:33
#_mkTempPdf#9(::Bool, ::typeof(TikzPictures._mkTempPdf), ::TikzPictures.TikzPicture, ::String, ::String)@svg.jl:91
_mkTempPdf@svg.jl:74[inlined]
_mkTempSvg@svg.jl:100[inlined]
_mkTempSvg(::TikzPictures.TikzPicture, ::String, ::String)@svg.jl:51
(::TikzPictures.var"#19#20"{TikzPictures.TikzPicture,String})()@TikzPictures.jl:324
cd(::TikzPictures.var"#19#20"{TikzPictures.TikzPicture,String}, ::String)@file.jl:104
save(::TikzPictures.SVG, ::TikzPictures.TikzPicture)@TikzPictures.jl:317
show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::TikzPictures.TikzPicture)@TikzPictures.jl:352
#show_richest#16(::Bool, ::typeof(Main.PlutoRunner.show_richest), ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:336
show_richest(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:307
#sprint_withreturned#15(::IOContext{Base.PipeEndpoint}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::TikzPictures.TikzPicture)@PlutoRunner.jl:279
format_output(::Any)@PlutoRunner.jl:219
formatted_result_of(::Base.UUID, ::Bool)@PlutoRunner.jl:41
top-level scope@WorkspaceManager.jl:0 (The print is better formatted) |
@mossr have you tried this out? |
Hey, thanks! Idk why my texlive installation was missing some luatex components, I've fixed with this Here is the log btw
Thanks again! |
@zuckberj glad to hear it! Thanks for posting what worked for you :) |
👍 |
I'm getting the same error but with no obvious error in the logs. I already have tp
Failed to show value:
LaTeX error
error(::String)@error.jl:33
#_mkTempPdf#9(::Bool, ::typeof(TikzPictures._mkTempPdf), ::TikzPictures.TikzPicture, ::String, ::String)@svg.jl:91
_mkTempPdf@svg.jl:74[inlined]
_mkTempSvg@svg.jl:37[inlined]
_mkTempSvg(::TikzPictures.TikzPicture, ::String, ::String)@svg.jl:51
(::TikzPictures.var"#21#22"{TikzPictures.TikzPicture,String})()@TikzPictures.jl:368
cd(::TikzPictures.var"#21#22"{TikzPictures.TikzPicture,String}, ::String)@file.jl:104
save(::TikzPictures.SVG, ::TikzPictures.TikzPicture)@TikzPictures.jl:361
show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::TikzPictures.TikzPicture)@TikzPictures.jl:396
show_richest(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:609
#sprint_withreturned#28(::IOContext{Base.DevNull}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::TikzPictures.TikzPicture)@PlutoRunner.jl:557
format_output_default(::Any, ::Any)@PlutoRunner.jl:482
#format_output#[email protected]:499[inlined]
formatted_result_of(::Base.UUID, ::Bool, ::Nothing)@PlutoRunner.jl:424
top-level scope@none:1 This is what the
The only complain, I think, is this:
Any help on this will be appreciated, thanks! |
What happens if you run |
It all depends on the latex configuration. Some latex configurations require this workaround. |
Hey!
Is there any plan to integrate with the Pluto.jl notebooks?
Using tikz with Pluto would be incredible!
And it doesn't seem to be very different, but I'm very new to all of this, so idk how to help here.
Thanks!
The text was updated successfully, but these errors were encountered: