forked from sphinx-doc/sphinx
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt using footnote.sty to re-enable footnotes in "topic" contexts
This works from the LaTeX point of view, the footnotes are gathered and put at bottom of page like any other footnote. Applies to local tables of contents and more generally topic directives which use the same SphinxShadowBox, and applies also to the warning type boxes. (in case of box contents on two or more pages, the footnotes appear on last one) The problem is that footnote.sty is not compatible with hyperref. What happens is that in case of multiple footnotes in a topic box, only the last one has a correct hyperlink to footnote text at bottom of page. The others point to document start. This is unrecoverable apart from re-writing footnote package (which dates back to 1997) and make it hyperref compatible. Hyperref package simply says to disable hyperfootnotes in case of use of package footnote... http://tex.stackexchange.com/questions/194255/is-there-a-way-to-make-the-footnote-package-work-correctly-with-hyperref This partially reverted 9b958b6 Fix sphinx-doc#2291: pdflatex "Counter too large" error from footnotes inside tables of contents. Test files not updated. modified: sphinx/texinputs/sphinx.sty modified: sphinx/writers/latex.py
- Loading branch information
Showing
2 changed files
with
23 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters