diff options
author | Fred Drake <fdrake@acm.org> | 2002-12-30 20:51:27 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-12-30 20:51:27 (GMT) |
commit | 567332abc4900adff55e8c23f1ab90cfaa9ab9dd (patch) | |
tree | 2b8555492309e5da3c7dd483082bfb5c9bcd9c07 | |
parent | 40819d551545db13cdfd46c773ffe3bc4f1f9ca0 (diff) | |
download | cpython-567332abc4900adff55e8c23f1ab90cfaa9ab9dd.zip cpython-567332abc4900adff55e8c23f1ab90cfaa9ab9dd.tar.gz cpython-567332abc4900adff55e8c23f1ab90cfaa9ab9dd.tar.bz2 |
Start something that might make table notes easier to deal with,
eventually.
-rw-r--r-- | Doc/texinputs/python.sty | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index b4744d7..c89cedc 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} |