Hi,

Le 22/03/2018 à 23:13, 'Erin Kelly' via sphinx-users a écrit :
I was able to recreate this in an example project.

It seems that all I need is to have a rst_prolog substitution with a URL, and 
set the LaTeX output to format those as footnotes.

This example shows a numbering gap before the first chapter and also between 
the two chapters.

--


thanks a lot for attached small project,

turns out at

https://github.com/sphinx-doc/sphinx/issues/3652#issuecomment-303195583

there is a possible work-around at pdflatex level, it instructs
pdflatex to ignore the Sphinx hardcoded footnote numbers and
to number them itself. This also means they are numbered per
chapter in the final pdf (for docclass 'manual'), which
are sections in your sources.

Concrectely in your test-case this means using

```
latex_elements = {
    # The paper size ('letterpaper' or 'a4paper').
    #
 'papersize': 'letterpaper',

    # The font size ('10pt', '11pt' or '12pt').
    #
    # 'pointsize': '10pt',

'releasename': ' ',

    # Additional stuff for the LaTeX preamble.
    'preamble': r'''
\makeatletter
\def\FNH@footnoteenv@i[#1]{\FNH@footnoteenv}
\def\FNH@footnotetextenv@i[#1]{\FNH@footnotetextenv}
\def\sphinxfootnotemark [#1]%
   {\ifx\thepage\relax\else\protect\spx@opt@BeforeFootnote
                             \protect\footnotemark\fi}%
\makeatother
''',

    # Latex figure (float) alignment
    #
    # 'figure_align': 'htbp',
}
```

as I pointed out in link above, this may not be fully robust
(there is a reason why Sphinx numbers itself the footnotes,
but obviously this goes bad in your use case)

Could you please open an issue at https://github.com/sphinx-doc/sphinx/issues,
attaching your zip ?

Hope the above helps,

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 sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to