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

symbol on top of other symbol (hat, tilde, vec) puts it in superscript position #3062

Closed
mbakker7 opened this issue Nov 20, 2017 · 7 comments

Comments

@mbakker7
Copy link

The functions $\hat{x}$, $\tilde{x}$, $\vec{x}$ put the hat, tilde and vector in the superscript position rather than on top in a markdown cell. I also noticed this behavior on, for example, http://data-blog.udacity.com/posts/2016/10/latex-primer/

Strangely enough $\widehat{h}$ does work and puts a (wide) hat on top of x. So why doesn't $\hat{x}$ do that?

Is this a mathjax limitation (which would be odd), bug (I think so), something that can be easily fixed (I hope so).

Jupyter 5.0.0, Python 3.6, Safari 11.0.1

Thanks, Mark

@mbakker7 mbakker7 changed the title math problem with symbol on top of other symbols (hat, tilde, vec) symbol on top of other symbol (hat, tilde, vec) puts it in superscript position Nov 20, 2017
@biaojiang
Copy link

I met this problem as well when rendering equations using Sphinx. However, only the web file has this problem, after having compiled it to .pdf file, it is OK.

So, I think it is the Mathjax bug, you can report it to Mathjax.

@mbakker7
Copy link
Author

mbakker7 commented Jan 23, 2018 via email

@biaojiang
Copy link

Yes, I use Safari. I just tested it on PC that IE and Chrome don't have this problem.

@mbakker7
Copy link
Author

mbakker7 commented Jan 23, 2018

Seems to be a mathjax problem on Safari. Reported the bug to mathjax:

mathjax/MathJax#1913

@minrk minrk added this to the Reference milestone Sep 13, 2018
@JesseBausell
Copy link

You can try '$~{x}$' and '$^{x}$' for tilde and hat....

1 similar comment
@JesseBausell
Copy link

You can try '$~{x}$' and '$^{x}$' for tilde and hat....

@mbakker7
Copy link
Author

Problem has been solved in mathjax. $\hat{a}$ works as expected, $~{a}$ doesn't work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants