summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs/python.sty
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-17 23:05:57 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-17 23:05:57 (GMT)
commitf269e5923282a7ac5934f12023775306671ebccc (patch)
tree73389143ae7e410c658ab5b68939d04a22ba7693 /Doc/texinputs/python.sty
parent1f4cc897f8db0d96126ca5d85819263c01582555 (diff)
downloadcpython-f269e5923282a7ac5934f12023775306671ebccc.zip
cpython-f269e5923282a7ac5934f12023775306671ebccc.tar.gz
cpython-f269e5923282a7ac5934f12023775306671ebccc.tar.bz2
Define new markup for 5-column tables.
Diffstat (limited to 'Doc/texinputs/python.sty')
-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 8ce759b..498fc3b 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -978,6 +978,27 @@
\end{center}%
}
+\newenvironment{tablev}[7]{%
+ \begin{center}%
+ \def\linev##1##2##3##4##5{\csname#2\endcsname{##1}&##2&##3&##4&##5\\}%
+ \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6}&\strong{#7} \\%
+ \hline%
+}{%
+ \end{tabular}%
+ \end{center}%
+}
+
+\newenvironment{longtablev}[7]{%
+ \begin{center}%
+ \def\linev##1##2##3##4##5{\csname#2\endcsname{##1}&##2&##3&##4&##5\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6}&\strong{#7}%
+ \\%
+ \hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
% Cross-referencing (AMK, new impl. FLD)
% Sample usage:
% \begin{seealso}