Re: Footnotes in ReST

2015-10-04 Thread Blake Garretson
On Oct 3, 2015 7:40 AM, "Steven D'Aprano" wrote: > 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? I would use a regular

Re: Footnotes in ReST

2015-10-04 Thread Peter Otten
Blake Garretson wrote: > On Oct 3, 2015 7:40 AM, "Steven D'Aprano" wrote: >> 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?

Re: Footnotes in ReST

2015-10-04 Thread Peter Otten
Peter Otten wrote: > Changing numbers to make room for a new footnote is not much harder (but > less convenient as you have to repeat it for every new footnote): > def replace(match, n=2): > ... index = int(match.group(1)) > ... if index >= n: > ... index += 1 > ...

Footnotes in ReST

2015-10-03 Thread Steven D'Aprano
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

Re: Footnotes in ReST

2015-10-03 Thread Steven D'Aprano
On Sat, 3 Oct 2015 10:21 pm, Laura Creighton wrote: > 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: [...] > You shouldn't have numbered them manually in the first place. > Use '#'

Re: Footnotes in ReST

2015-10-03 Thread Laura Creighton
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 >

Re: Footnotes in ReST

2015-10-03 Thread Chris Angelico
On Sat, Oct 3, 2015 at 9:39 PM, Steven D'Aprano wrote: > 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? Now that they're all