From: Fred Drake Date: Mon, 30 Dec 2002 20:51:27 +0000 (+0000) Subject: Start something that might make table notes easier to deal with, X-Git-Tag: v2.3c1~2800 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=567332abc4900adff55e8c23f1ab90cfaa9ab9dd;p=thirdparty%2FPython%2Fcpython.git Start something that might make table notes easier to deal with, eventually. --- diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index b4744d799ee5..c89cedc31103 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -1103,6 +1103,27 @@ \end{center}% } +% XXX Don't think we can use this yet, though it cleans up some +% tedious markup. There's no equivalent for the HTML transform yet, +% and that needs to exist. I don't know how to write it. +% +% This should really have something that makes it easier to bind a +% table's ``Notes'' column and an associated tablenotes environment, +% and generates the right magic for getting the numbers right in the +% table. +% +% So this is quite incomplete. +% +\newcounter{py@tablenotescounter} +\newenvironment{tablenotes}{% + \noindent Notes: + \par + \setcounter{py@tablenotescounter}{0} + \begin{list}{(\arabic{py@tablenotescounter})}% + {\usecounter{py@tablenotescounter}} +}{\end{list}} + + % Cross-referencing (AMK, new impl. FLD) % Sample usage: % \begin{seealso}