-
Notifications
You must be signed in to change notification settings - Fork 663
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
MathJax Rendering Issues #12
Comments
Is it possible that MathJax needs updating? If so where can I do that? |
I agree that MathJax is still a little bit buggy. Ideally I'd like to just replicate whatever MathJax logic is used in the Notebook / JupyterLab interfaces. Perhaps @minrk or @ian-r-rose or @Carreau knows something about MathJax in the notebook? https://github.com/choldgraf/textbooks-with-jupyter/blob/master/_includes/mathjax.html but it still only works sometimes (e.g., on the notebooks demo page) |
I'm not sure what could be causing the rendering issues here. |
The last equation at the end is because the
Thus mathjax does not find the math correctly. Try to deactivate the Markdown table extension ? |
Same for 14.4, it thinks |
hmmmm....so I guess the question is: is it better to support more complete mathjax equations but mess up markdown tables, or vice versa... |
Well notebook does not support markdown table. So if you are doing table they won't render in notebook. You can still make raw html table... So deactivating the table extension will still allow you to do table (but in raw html), and not screw up math. The only drawback will be no table export in PDF. Is markdown table even used in this book ? |
not in this book, but the point is be a generic "create any textbook with your jupyter notebooks" repository, so I don't want to preclude people from this functionality if I don't have to. However, I think a solution is to disable markdown tables only for the pages that were converted from notebooks, that way the behavior is the same on both platforms. |
actually, I'm not sure if it's possible to disable table auto-generation in jekyll? seems like this is something built-in to kramdown... |
You may be able to tell Jekyll to use redcarpet instead of Kramdown. |
do you have any opinions on using one vs. the other? I'm a bit hesitant since I don't know what kinds of downstream effects that would have... |
I don't remember which is which. I had issue with both. |
haha yep that sounds like markdown to me ;-) |
@dcroce it looks like all of the issues you describe are because of markdown auto-formatting of in-line equations. Could you try:
|
Alright I will see if that makes the difference. |
In addition to |, _ and * also needs to be escaped. That was able to fix all the errors I had, although it makes the textbook look different from the ipynbs. Thanks for the help! |
@dcroce could you go into more detail on what you mean by "different from the ipynbs"? :-) |
When opening the ipython notebook, the math shows up slightly different. For example the \ to escape the * will show up in the ipython notebook but on the textbook turns out as desired. There are other minor differences too. See 9.3 of the textbook and compare to the notebook for a specific example (New url is http://prob140.org/textbook/chapters/README) |
adding notebook runner to docs
I have about 8~10 issues with MathJax reading certain parts of a notebook incorrectly. Does this require a case by case fix? They are showing up as intended in the ipython notebooks.
Examples: 14.1 see technical note, 14.4 midway down the page.
See original notebooks here
Is there a basic methodology for trouble shooting? I'm not well rehearsed in MathJax syntax.
The text was updated successfully, but these errors were encountered: