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

LaTeX: fix footnote marks for multiple references #10191

Merged
merged 5 commits into from Apr 16, 2022

Commits on Apr 16, 2022

  1. LaTeX: correct footnote marks, extended with page of link target

    Fix sphinx-doc#10188
    
    Footnotes in some LaTeX environments (tables, fulllineitems for object
    descriptions) are gathered and appear after the environment, causing the
    footnote to possibly appear on a page later than some of the footnote
    marks referring it.
    
    With this commit, the footnote mark compares page numbers and
    incorporates the destination page number if it turns out to be distinct
    from the page where it stands.
    jfbu committed Apr 16, 2022
    Copy the full SHA
    184f98a View commit details
    Browse the repository at this point in the history
  2. LaTeX: comment out footnote mark enhancement for footnote environment

    Page detection left to apply as was case before this PR, i.e. only for
    the \sphinxfootnotemark mark-up, which means either in combination
    with footnotetext environment, or for multiply referred-to footnotes
    and the extra footnote marks additional to the initial one.
    
    This is to avoid a problem with each LaTeX pass in certain circumstances
    modifying the aux file, and latexmk consequently complaining.
    
    refs:
    sphinx-doc#10191 (comment)
    jfbu committed Apr 16, 2022
    Copy the full SHA
    33cc980 View commit details
    Browse the repository at this point in the history
  3. LaTeX: avoid a footnote in a signature line executing \label twice

    The signature may contain an auto-generated footnote, which now
    always sets a label (formerly this happened only for multiply
    referred-to footnotes so the problem did not arise).
    jfbu committed Apr 16, 2022
    Copy the full SHA
    a1d9127 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    2b6e42a View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    0b22f5b View commit details
    Browse the repository at this point in the history