summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-21 15:58:02 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-21 15:58:02 (GMT)
commitda72b93a017441a0bf8e7d426a21f225e9076fbf (patch)
tree0555d5ca7a0d2608d63829f3d38c81d21f310629 /Doc/texinputs
parent2964268db5436f34dca6d0689620e476d519cb09 (diff)
downloadcpython-da72b93a017441a0bf8e7d426a21f225e9076fbf.zip
cpython-da72b93a017441a0bf8e7d426a21f225e9076fbf.tar.gz
cpython-da72b93a017441a0bf8e7d426a21f225e9076fbf.tar.bz2
Add new environments: longtableii, longtableiii, and longtableiv, to
support long tables which might break across page boundaries. Otherwise identical to tableii, tableiii, and tableiv.
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/python.sty39
1 files changed, 36 insertions, 3 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index feea3ef..8fcef4d 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -6,6 +6,8 @@
\ProvidesPackage{python}
[1998/01/11 LaTeX package (Python markup)]
+\RequirePackage{longtable}
+
% Uncomment these two lines to ignore the paper size and make the page
% size more like a typical published manual.
%\renewcommand{\paperheight}{9in}
@@ -864,31 +866,62 @@
\newenvironment{tableii}[4]{%
\begin{center}%
\def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}%
- \begin{tabular}{#1}\strong{#3}&\strong{#4} \\ \hline%
+ \begin{tabular}{#1}\strong{#3}&\strong{#4} \\* \hline\hline%
}{%
\end{tabular}%
\end{center}%
}
+\newenvironment{longtableii}[4]{%
+ \begin{center}%
+ \def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4} \\* \hline\hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
\newenvironment{tableiii}[5]{%
\begin{center}%
\def\lineiii##1##2##3{\csname#2\endcsname{##1}&##2&##3\\}%
- \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5} \\ \hline%
+ \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5} \\%
+ \hline\hline%
}{%
\end{tabular}%
\end{center}%
}
+\newenvironment{longtableiii}[5]{%
+ \begin{center}%
+ \def\lineiii##1##2##3{\csname#2\endcsname{##1}&##2&##3\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5} \\%
+ \hline\hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
\newenvironment{tableiv}[6]{%
\begin{center}%
\def\lineiv##1##2##3##4{\csname#2\endcsname{##1}&##2&##3&##4\\}%
\begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6} \\%
- \hline%
+ \hline\hline%
}{%
\end{tabular}%
\end{center}%
}
+\newenvironment{longtableiv}[6]{%
+ \begin{center}%
+ \def\lineiv##1##2##3##4{\csname#2\endcsname{##1}&##2&##3&##4\\}%
+ \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6}%
+ \\%
+ \hline\hline\endhead%
+}{%
+ \end{longtable}%
+ \end{center}%
+}
+
% Cross-referencing (AMK, new impl. FLD)
% Sample usage:
% \begin{seealso}