Footnotes in ReST

Laura Creighton lac at openend.se
Sat Oct 3 08:21:25 EDT 2015


In a message of Sat, 03 Oct 2015 21:39:26 +1000, "Steven D'Aprano" writes:
>I have a document written in Restructured Text format, and I use lots of
>footnotes:
>
>    blah blah blah [1]_ and blah blah blah [2]_.
>    blah blah [3]_ blah ... blah blah
>    blah blah [999]_.
>
>    .. [1] fe
>    .. [2] fi
>    .. [3] fo
>       ...
>    .. [999] fum
>
>
>I need to add a footnote between [2] and [3], but I don't want to have to
>renumber the following 997 footnotes by hand. Is there something I can do,
>within the syntax of ReST itself, to help?
>
>
>-- 
>Steven

You shouldn't have numbered them manually in the first place.
Use '#' instead to get automatic numbered footnotes.
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#footnote-references

Laura



More information about the Python-list mailing list