Mercurial > cpython-lru_cache-weakref
diff Doc/texinputs/python.sty @ 14722:4d2e9cf1eb20 legacy-trunk
Add new environments: longtableii, longtableiii, and longtableiv, to
support long tables which might break across page boundaries. Otherwise
identical to tableii, tableiii, and tableiv.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 21 Sep 2000 15:58:02 +0000 |
| parents | 219e00221c84 |
| children | 5d2a2185c651 |
line wrap: on
line diff
--- a/Doc/texinputs/python.sty Thu Sep 21 15:53:54 2000 +0000 +++ b/Doc/texinputs/python.sty Thu Sep 21 15:58:02 2000 +0000 @@ -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}
