-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Rendering of math blocks in generated notebooks doesn't display tech #182
Comments
This is due to Jupyter using different markdown variant than Weave. In this case the easiest fix is to use You could also use |
So the fix is on my end to change to using |
Can't you can use
I personally prefer to use |
There seems to be a problem with Weave writer adding I think it might be to remove that feature, but it will break documents that rely on that... |
For the notebooks to render correctly, they need to be like:
Note the newline before the |
I'll remove the align from output for now. I also think I should be able to extend the Julia markdown parser to handle FYI: math rendering without the newlines before and after |
I just remembered why align is added by default: it seemed like the best option to output math that works in both Mathjax and Latex. @ChrisRackauckas do you have a good suggestion how to ouput math in Latex instead of using aligned? by default (=after removing current weave output formatting) this markdown: becomes the following in tex:
Which then gives the following error when running xelatex:
I'm having a hard time coming up with a good fix that would work well. |
I'm not sure, I think it needs to not output the |
This is probably the best option, to check for |
I ended up extending the markdown parser so that this now also works with Weave:
|
Example: https://github.com/JuliaDiffEq/DiffEqTutorials.jl/blob/master/notebook/introduction/ode_introduction.ipynb . Jupyter seems to treat that as a markdown block.
The text was updated successfully, but these errors were encountered: