Skip to content
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

nbviewer fail to render latex < in some cases #647

Closed
zhangyi-hu opened this issue Dec 4, 2016 · 3 comments
Closed

nbviewer fail to render latex < in some cases #647

zhangyi-hu opened this issue Dec 4, 2016 · 3 comments
Labels
status:Resolved We believe the issue is no longer a problem for users. tag:Upstream Related to an upstream project (e.g., mistune, nbconvert) or notebook example type:Bug An unexpected behavior

Comments

@zhangyi-hu
Copy link

Hi,

I found that < is hard because it interfere with html. I've done experiments with 6 different cases and hope this can help you guys to find a solution.

How it is rendered on nbviewer:
http://nbviewer.jupyter.org/github/hzzyyy/try/blob/master/latex%20parenthesis%20bug.ipynb

How it is rendered on github:
https://github.com/hzzyyy/try/blob/master/latex%20parenthesis%20bug.ipynb

github rendered all 6 cases correctly.

If github can do it, I believe nbviewer can also do it : )

Cheers
Zhangyi

@minrk
Copy link
Member

minrk commented Jan 3, 2017

Thanks for the bug notebook! I've moved this over to jupyter/nbconvert#504

@mpacer
Copy link
Member

mpacer commented Jan 3, 2017

Technically, whether github counts as rendering these "correctly" depends on how strictly you want to interpret MathJax (and pandoc if we're thinking about pdf output).

Having no spaces around < and > is explicitly discouraged in the MathJax docs.

And for some of the examples that "work" in the notebook, in html export, and in the github viewer (and actually, for simple cases, for pdf export), these are breaking pandoc's conventions for using $…$, with the tex_math_dollars option which state, with added emphasis:

The opening $ must have a non-space character immediately to its right, while the closing $ must have a non-space character immediately to its left, and must not be followed immediately by a digit.

I'm not saying that we shouldn't support these, but that if we do we're flouting these explicit conventions.

@parente
Copy link
Member

parente commented Jul 10, 2018

The nbviewer rendering of the provided notebooks appears correct and matches the GitHub rendering when I view it today. I believe the underlying issue was fixed in jupyter/nbconvert#514 and so I'm going to close this issue.

@parente parente closed this as completed Jul 10, 2018
@parente parente added type:Bug An unexpected behavior status:Resolved We believe the issue is no longer a problem for users. tag:Upstream Related to an upstream project (e.g., mistune, nbconvert) or notebook example labels Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:Resolved We believe the issue is no longer a problem for users. tag:Upstream Related to an upstream project (e.g., mistune, nbconvert) or notebook example type:Bug An unexpected behavior
Projects
None yet
Development

No branches or pull requests

4 participants