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

🏷️ in :math: directive puts label in front of the equation rather than after it #2122

Open
cbworden opened this issue Nov 19, 2015 · 8 comments

Comments

@cbworden
Copy link

On documentation page http://sphinx-doc.org/ext/math.html the example in the :eq: section looks like this:

.. math:: e^{i\pi} + 1 = 0
🏷️ euler

Euler's identity, equation :eq:euler, was elected one of the most

beautiful mathematical formulas.

However when I run this in Sphinx 1.3.1 on a Mac, it puts the label "(1)" at the beginning of the equation rather than at the end of the line (using mathpng). If I use mathjax, the label appears on top of the equation.

Thanks.

@tk0miya
Copy link
Member

tk0miya commented Dec 27, 2015

In my environment (Mac, Sphinx-1.3.3, MacTeX 2015, Google Chrome), the label is always put on end of the line.

Case of mathjax:
mathjax

Case of pngmth:
pngmath

Could you tell me about the issue in detail?

@cbworden
Copy link
Author

Hi,
My latex specs are:
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2014/MacPorts 2014_8)
kpathsea version 6.2.0
...
Compiled with libpng 1.6.17; using libpng 1.6.17
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.32.0

This is likely the difference between our setups. I pulled this version off of MacPorts as part of the texlive-latex, texlive-latex-recommended, and texlive-latex-extra packages.

I can send you images if you'd like, but basically the "(1)" that appears at the ends of the lines in your images appears right before the "e^ix" when running mathpng. It appears right above the equation when using mathjax. The equation itself looks correct.

Are there any other specs I can send you to help you diagnose the problem?

Thanks for looking into this.
B

tk0miya added a commit that referenced this issue Jan 2, 2016
@YingzhouLi
Copy link

I encountered exactly the same issue.

@tk0miya
Copy link
Member

tk0miya commented Jul 19, 2016

@YingzhouLi could you show me the screenshot of your case?

@YingzhouLi
Copy link

Dear Takeshi,

I am not sure if you can receive the screenshot from the attachment or not. Please let me know if you cannot see it.
[cid:9702336E-2D18-4C3E-BBA8-551FF2580A43]

Best,
Yingzhou

On Jul 18, 2016, at 6:23 PM, Takeshi KOMIYA <notifications@github.commailto:notifications@github.com> wrote:

@YingzhouLihttps://github.com/YingzhouLi could you show me the screenshot of your case?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/2122#issuecomment-233505658, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD6DT01kkZsDThrfpmF5qG_XuPUeO3QIks5qXCctgaJpZM4Gl9Zm.

@tk0miya
Copy link
Member

tk0miya commented Jul 20, 2016

@YingzhouLi Hmm, I can't see your images. Could you attach them from issue form instead of email?

@YingzhouLi
Copy link

screen shot 2016-07-21 at 9 09 31 pm

FYI

@tk0miya
Copy link
Member

tk0miya commented Jul 22, 2016

Perhaps, are you using sphinx_rtd_theme?
If true, it is a bug of the theme. I filed this problem at their github issues.
readthedocs/sphinx_rtd_theme#301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants