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

vertical space before equation in latex #4574

Closed
aszekMosek opened this issue Feb 7, 2018 · 1 comment
Closed

vertical space before equation in latex #4574

aszekMosek opened this issue Feb 7, 2018 · 1 comment

Comments

@aszekMosek
Copy link
Contributor

It seems to me that equations without a label are written to the latex source as

handles problems of the form:
\begin{equation*}

and equations with a label as:

form of a linear minimization problem is:

\phantomsection\label{\detokenize{linear:equation-eq-linear-standard1}}\begin{equation}\label{equation:linear:eq-linear-standard1}

The extra empty line before phantomsection starts a paragraph and causes an unnecessarily large vertical space before equation, unlike for equation* where it is OK.

Removing the empty line fixes the problem.

Also, I'm not sure phantomsection is necessary for equations. hyperref seems to produce links to equations without it just as well.

Sphinx 1.6.7

@tk0miya tk0miya added this to the 1.7.1 milestone Feb 8, 2018
@tk0miya tk0miya modified the milestones: 1.7.1, 1.7.2 Feb 18, 2018
jfbu added a commit that referenced this issue Mar 15, 2018

Verified

This commit was signed with the committer’s verified signature.
jeevatkm Jeevanandam M.
Fix vertical space before equation in latex (closes: #4574)
@jfbu
Copy link
Contributor

jfbu commented Mar 15, 2018

Fixed at e1e46cd. Thanks for report!

@jfbu jfbu closed this as completed Mar 15, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 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

3 participants