summaryrefslogtreecommitdiff
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-12-30 20:51:27 +0000
committerFred Drake <fdrake@acm.org>2002-12-30 20:51:27 +0000
commit9e9d9ff7e57dd0491ae1302996436d91ec543cce (patch)
tree6ebea41bf9d9fc5ab24c8b9d89826ed08de89b2a /Doc/texinputs
parentf9ac700b82b3ff165f4ffc15a2d165fdfe70c758 (diff)
downloadcpython-9e9d9ff7e57dd0491ae1302996436d91ec543cce.tar.gz
Start something that might make table notes easier to deal with,
eventually.
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/python.sty21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index b4744d799e..c89cedc311 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}