Le 22/03/2018 à 10:43, jfbu a écrit :
Le 28/02/2018 à 18:33, 'Erin Kelly' via sphinx-users a écrit :
I have a document with intersphinx cross-references. I just switched from
inline URL references to footnote URL references for PDF. Everything works
fine, but for some reason the first footnote is number 43!
The numbering increases from there, so my document contains footnotes numbered
43 through 118.
I would prefer to start at 1!
Is there some way to change that? What could be causing it? I didn't find
anything online about this problem.
I'm running Sphinx 1.6.6 and using make latexpdf to build.
--
I noticed now I have a PDF document produced with Sphinx 1.6.6
which displays similar problem, but more benign, the first footnote
being numbered 2 not 1.
The footnote number is hard-coded in LaTeX file
\begin{footnote}[2]
...
\end{footnote}
So the bug isn't in the Sphinx latex styles or classes, but
it is at time of the creation of the tex file for processing
later by pdflatex.
I will give a look, thanks for reporting. Can you please open
issue on github?
ah ok, sorry in my case the minimal example looks like this
==============
FOOTNOTE ISSUE
==============
GOAL
====
A reference `Python3`_
.. _Python3: https://docs.python.org/3/tutorial/index.html
DOC
===
An explicit footnote [1]_
.. [1] Hello
and in conf.py latex_show_urls = 'footnote'
Then what happens is that in "GOAL" chapter, the created footnote
is numbered 2.
This is caused by explicit footnote later in source.
In my original document the explicit footnote numbered [1] was
on page 123, at start of Eigth chapter...
I am not sure your case is same category as this example.
Please try to produce a minimal project showing problem.
In the example above using
DOC
===
An explicit footnote [#]_
.. [#] Hello
fixes the problem. The first footnote will indeed use "1" and
the second "2".
Jean-François
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.