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

Fix #3704: (latex) wrong \label positioning for figures with a legend #5513

Merged
merged 1 commit into from Oct 7, 2018

Conversation

jfbu
Copy link
Contributor

@jfbu jfbu commented Oct 7, 2018

Figures may have a "legend" which may contain arbitrary contents, so \label should be located immediately after \caption, else hyperlink might get wrong target.

see #3704 for example of what was wrong

@jfbu jfbu added this to the 1.8.2 milestone Oct 7, 2018
@codecov
Copy link

codecov bot commented Oct 7, 2018

Codecov Report

Merging #5513 into 1.8 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              1.8    #5513      +/-   ##
==========================================
+ Coverage   82.07%   82.07%   +<.01%     
==========================================
  Files         306      306              
  Lines       40364    40366       +2     
  Branches     6236     6237       +1     
==========================================
+ Hits        33128    33131       +3     
  Misses       5852     5852              
+ Partials     1384     1383       -1
Impacted Files Coverage Δ
tests/test_build_latex.py 95.27% <ø> (ø) ⬆️
sphinx/writers/latex.py 84.06% <100%> (+0.02%) ⬆️
sphinx/builders/html.py 82.93% <0%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ccd53e...7ab09b5. Read the comment docs.

Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jfbu
Copy link
Contributor Author

jfbu commented Oct 7, 2018

Thanks @tk0miya for quick review! merging

@jfbu jfbu merged commit 9875a57 into sphinx-doc:1.8 Oct 7, 2018
@jfbu jfbu deleted the 3704_latex_figure_labelpos branch October 7, 2018 11:22
jfbu added a commit that referenced this pull request Oct 30, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants