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

Mathjax subscript colliding with markdown italics #662

Open
billylanchantin opened this issue Apr 3, 2018 · 1 comment
Open

Mathjax subscript colliding with markdown italics #662

billylanchantin opened this issue Apr 3, 2018 · 1 comment
Labels
A-MathJax Area: MathJax

Comments

@billylanchantin
Copy link

Output

screen shot 2018-04-03 at 2 10 52 pm

Code

## Works
```
\\[
a_{n} = b_{n}
\\]
```
\\[
a_{n} = b_{n}
\\]

## Doesn't work
```
\\[
\bar{a}_{n} = b_{n}
\\]
```
\\[
\bar{a}_{n} = b_{n}
\\]

## Workaround
```
\\[
\bar{a}\_{n} = b_{n}
\\]
```
\\[
\bar{a}\_{n} = b_{n}
\\]

Notes

  • Sorry if this is a duplicate. I see that the MathJax support is in flux right now (though I couldn't find this particular issue).
  • The workaround will not work in LaTeX. $a\_{n}$ forces a literal underscore.
  • You can reproduce the error with just {a}_{n} = b_{n} (I used \bar{a}_{n} = b_{n} because it's something someone might actually want to write).
@seanswyi
Copy link

I know this is a bit old, but this was very helpful! I couldn't find out what was going wrong despite having a hunch it was the italics and subscripts colliding. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-MathJax Area: MathJax
Projects
None yet
Development

No branches or pull requests

3 participants