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

equation number is not aligned to right #301

Open
tk0miya opened this issue Jun 10, 2016 · 4 comments · May be fixed by #383
Open

equation number is not aligned to right #301

tk0miya opened this issue Jun 10, 2016 · 4 comments · May be fixed by #383
Labels
Bug A bug

Comments

@tk0miya
Copy link
Contributor

tk0miya commented Jun 10, 2016

In sphinx default, the equation number is aligned right.
but this theme does not do that.

in sphinx/themes/basic/static/basic.css_t, the element is styled as following:

span.eqno {
    float: right;
}
@partofthething
Copy link

Anything I can do to help get this fix (#383) merged? Very willing to help.

@rdzman
Copy link

rdzman commented Aug 4, 2022

New user here fighting with the same bug, apparently still in 1.0.0. Any suggested workaround, as it seems there has been no action on #383 in years?

My best solution so far is to just add an additional CSS file via html_css_files with ...

.eqno {
    float: right;
}

This makes the header link invisible, but at least it looks better.

Any better workarounds appreciated.

@romintomasetti
Copy link

Hi there! We too are affected by this bug. The label of each equation is put on top of the equation instead of "to its right".

We therefore resort to the fix proposed by @rdzman in #301 (comment).

A fix in the theme itself would be more than appreciated 😄

@eebasso
Copy link

eebasso commented Jan 17, 2024

After some testing, I've found that the following addition to one's .css file aligns the equation number to the right and makes the header link appear:

span.eqno {
    float: right;
}
span.eqno a.headerlink {
    position: relative;
    z-index: 1;
}

I think this would be straight-forward to implement in the _theme_mathjax.sass as shown in PR #383. It would be really great if this could finally be resolved after 7+ years.

Edit: this just comes directly from the Sphinx basic theme.

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

Successfully merging a pull request may close this issue.

8 participants