Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #97372

Re: Footnotes in ReST

Path csiph.com!news.mixmin.net!news2.arglkargh.de!easy.in-chemnitz.de!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'scripting': 0.09; 'advance': 0.10; 'syntax': 0.13; 'do,': 0.15; '[3],': 0.16; 'footnote': 0.16; 'footnotes': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'help?': 0.16; 'numbered': 0.16; 'sure.': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'otherwise,': 0.20; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'rest': 0.26; 'message-id:@mail.gmail.com': 0.27; '[2]': 0.27; 'itself,': 0.29; 'url:peps': 0.29; "i'd": 0.31; 'probably': 0.31; 'url:python': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'add': 0.34; 'received:google.com': 0.35; 'url:dev': 0.35; 'something': 0.35; 'but': 0.36; 'too': 0.36; 'there': 0.36; 'url:org': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'doing': 0.38; 'within': 0.64; 'between': 0.65; "they're": 0.66; 'chrisa': 0.84; 'hand.': 0.84; 'to:none': 0.91; 'thing,': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=PcHZSytSvY9kMtUFn7PKgLhdfbjK+048uh8DRT2nKaE=; b=oItPXDPqjrqIFk6BV4NNvaNNXYBfmCaDmQJ5L7iatFyJMy0S46sAIfy78BrET80sWP 4F3jT/yc9+t8hQML0l6rMViSrv9QqK7qN2+E2hBVQn+nygYQj2q/eyVV5ZphEt72uTO0 rF6VhMWffPG6ruVNZU2Uy2Q26/CVxYmXTRgBt1DH+6SUiQ7L97ibhTEzltNyvEatu3tI 7dCujegXi+rDsn+ketS+DeCqAwLtDMBJrQS0Vx83KDoSduqczF4Br3kwi12sdaBJ1e5j dJSc5Z3LP7EGwcuPsZ5KiCU8KPybvVKUS2evTI2jrdHHFuh9NWP//hvW8G5XBw8mzcgj 9EJg==
MIME-Version 1.0
X-Received by 10.107.36.72 with SMTP id k69mr19280430iok.157.1443873475167; Sat, 03 Oct 2015 04:57:55 -0700 (PDT)
In-Reply-To <560fbe70$0$1586$c3e8da3$5496439d@news.astraweb.com>
References <560fbe70$0$1586$c3e8da3$5496439d@news.astraweb.com>
Date Sat, 3 Oct 2015 21:57:55 +1000
Subject Re: Footnotes in ReST
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.362.1443873478.28679.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1443873478 news.xs4all.nl 23825 [2001:888:2000:d::a6]:50826
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97372

Show key headers only | View raw


On Sat, Oct 3, 2015 at 9:39 PM, Steven D'Aprano <steve@pearwood.info> 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 numbered manually? Not sure. But if you know in
advance you're going to have that kind of thing, there are other ways
to do footnotes:

https://hg.python.org/peps/file/tip/pep-0498.txt
https://www.python.org/dev/peps/pep-0498/

Otherwise, I'd look at scripting the 997-footnote changes. It
shouldn't be too hard to script - will probably take only twice as
long as doing it manually would have...

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Footnotes in ReST Steven D'Aprano <steve@pearwood.info> - 2015-10-03 21:39 +1000
  Re: Footnotes in ReST Chris Angelico <rosuav@gmail.com> - 2015-10-03 21:57 +1000
  Re: Footnotes in ReST Laura Creighton <lac@openend.se> - 2015-10-03 14:21 +0200
    Re: Footnotes in ReST Steven D'Aprano <steve@pearwood.info> - 2015-10-04 00:22 +1000
  Re: Footnotes in ReST Peter Otten <__peter__@web.de> - 2015-10-04 11:50 +0200
  Re: Footnotes in ReST Peter Otten <__peter__@web.de> - 2015-10-04 12:14 +0200

csiph-web