-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Quarto Rendering #222
Comments
I don't know anything about Quarto, first time hearing of it, but I could maybe shed some light on what is needed here. When you latexify, you create a One thing I like to do in Pluto is |
Thanks @gustaphe. Quarto is effectively a language-agnostic upgraded version of Rmarkdown (https://quarto.org/docs/computations/julia.html). Unfortunately
Any thoughts, or is this now best to open up on Quarto? |
Latexify just generates the tex source, which in this case is correct. Whether it's rendered right is indeed a question for Quarto. However, I'm a bit uncertain if the
Does @korsbo have an opinion? |
Yeah, markdown can sometimes be a pain. There is however an Markdown.parse(latexify([1,2],[2,3], double_linebreak=true)) |
Thank you @korsbo for the suggestion, though I'm afraid it didn't seem to change the output.
|
hmm. I'm guessing that there are two bugs. One would be in the latexify recipes of Symbolics.jl. I suspect that the supplied kwarg is not passed on properly. The other is in the Markdown standard library. I really can't see why it would make sense to parse the immediate hack-fix might be to just double down on all Markdown.parse(replace(latexify(sir_ode), "\\"^2=>"\\"^4) I have not checked that it renders but the output looks like valid Markdown to me. Fixing the presumed bugs in Symbolics and Markdown requires some digging - something I can't promise I'll get to anytime soon. |
Thanks for that - it seems to render as expected. And not a problem RE Symbolics/Markdown. Thanks for looking into it! |
👋 Quarto team here. I am curious of what the Quarto does execute the .ipynb file and then will use the cell output in a .md output used to convert to LaTeX with Pandoc. I would like to know what you tried and see what would make it works. If Latexify outputs valid LaTeX code for a LaTeX rendering then it should work correctly with Quarto. But maybe there is some non expected interaction or we don't get the output right from Jupyter cell rendering. Happy to help here. |
I was wondering if it is possible to render Latex equations in Quarto (
.qmd
) files? MWE below.Output in the notebook (i.e. doesn't render the equation):
Changing to
latexify() |> render
produces:Apologies if this is more of a Quarto question, but figured it might also be due to my inexperience with Latexify and I might just be missing something obvious.
The text was updated successfully, but these errors were encountered: