-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Interpolating LaTeXString into Markdown #1237
Comments
Unfortunately, this 'worked' because of a bug, and I fixed that bug: https://github.com/fonsp/Pluto.jl/pull/1164/files#diff-98c649aba98aa3bee0202b56f4e1d1e44ae620b564690ad53b114b49b03d69fcL351-R351 Markdown interpolation does not support latex objects (it will render them as text), you have to wrap them in a latexify_md(args...; kwargs...) = Markdown.LaTeX(repr(MIME"text/latex"(), latexify(args...; kwargs...))) or more general for LaTeXStrings: wrap_tex(x) = Markdown.LaTeX(repr(MIME"text/latex"(), x)) |
I see. Thanks a lot! |
Can you think of a good way to use this as a html show method? Base.show(io, m::MIME"text/html", x::LaTeXString) = show(io, m, Markdown.LaTeX(repr(MIME"text/latex"(), x))) doesn't work. I don't want to have to define a |
@gustaphe You need to wrap the The problem them is that you Markdown's ability to automatically switch between display math and inline math, and I don't see a way to resolve that using the html show method. Let me try something else... Interpolating LaTeX is a missing feature in Markdown, and |
This works. Cannot you add it to Pluto? It's a bit of complicated to use LaTeXStrings now in Pluto. |
Greetings, None of these methods seem to work in Pluto notebook v.0.19.29. Can anyone provide modifications of any of these solutions so it continues to work in the newer version of Pluto notebook? |
Recently I find the output of latexify() doesn't render well in markdown cell at the new versions included
v0.14.8
andv0.14.7
. However, it works well inv0.14.5
.Comparison.
v0.14.5
VS
v0.14.8
env
Both run in Chrome on Windows 10.
Also, the render doesn't work on Binder on which the Pluto version is
0.14.7
.remark
Right now I pin to
0.14.5
but I hope I can walk around this in the future versions to enjoy the amazing Pluto! Thanks.The text was updated successfully, but these errors were encountered: