diff Doc/texinputs/python.sty @ 18683:8ca70c9c1971 legacy-trunk

Define new markup for 5-column tables.
author Fred Drake <fdrake@acm.org>
date Tue, 17 Jul 2001 23:05:57 +0000
parents 6a5ef1994153
children dac9cca49012
line wrap: on
line diff
--- a/Doc/texinputs/python.sty	Tue Jul 17 21:56:01 2001 +0000
+++ b/Doc/texinputs/python.sty	Tue Jul 17 23:05:57 2001 +0000
@@ -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}