Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 14721:7f49c5864f77 | 14722:4d2e9cf1eb20 |
|---|---|
| 3 % | 3 % |
| 4 | 4 |
| 5 \NeedsTeXFormat{LaTeX2e}[1995/12/01] | 5 \NeedsTeXFormat{LaTeX2e}[1995/12/01] |
| 6 \ProvidesPackage{python} | 6 \ProvidesPackage{python} |
| 7 [1998/01/11 LaTeX package (Python markup)] | 7 [1998/01/11 LaTeX package (Python markup)] |
| 8 | |
| 9 \RequirePackage{longtable} | |
| 8 | 10 |
| 9 % Uncomment these two lines to ignore the paper size and make the page | 11 % Uncomment these two lines to ignore the paper size and make the page |
| 10 % size more like a typical published manual. | 12 % size more like a typical published manual. |
| 11 %\renewcommand{\paperheight}{9in} | 13 %\renewcommand{\paperheight}{9in} |
| 12 %\renewcommand{\paperwidth}{8.5in} % typical squarish manual | 14 %\renewcommand{\paperwidth}{8.5in} % typical squarish manual |
| 862 % Tables. | 864 % Tables. |
| 863 % | 865 % |
| 864 \newenvironment{tableii}[4]{% | 866 \newenvironment{tableii}[4]{% |
| 865 \begin{center}% | 867 \begin{center}% |
| 866 \def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}% | 868 \def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}% |
| 867 \begin{tabular}{#1}\strong{#3}&\strong{#4} \\ \hline% | 869 \begin{tabular}{#1}\strong{#3}&\strong{#4} \\* \hline\hline% |
| 868 }{% | 870 }{% |
| 869 \end{tabular}% | 871 \end{tabular}% |
| 870 \end{center}% | 872 \end{center}% |
| 871 } | 873 } |
| 872 | 874 |
| 875 \newenvironment{longtableii}[4]{% | |
| 876 \begin{center}% | |
| 877 \def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}% | |
| 878 \begin{longtable}[c]{#1}\strong{#3}&\strong{#4} \\* \hline\hline\endhead% | |
| 879 }{% | |
| 880 \end{longtable}% | |
| 881 \end{center}% | |
| 882 } | |
| 883 | |
| 873 \newenvironment{tableiii}[5]{% | 884 \newenvironment{tableiii}[5]{% |
| 874 \begin{center}% | 885 \begin{center}% |
| 875 \def\lineiii##1##2##3{\csname#2\endcsname{##1}&##2&##3\\}% | 886 \def\lineiii##1##2##3{\csname#2\endcsname{##1}&##2&##3\\}% |
| 876 \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5} \\ \hline% | 887 \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5} \\% |
| 888 \hline\hline% | |
| 877 }{% | 889 }{% |
| 878 \end{tabular}% | 890 \end{tabular}% |
| 891 \end{center}% | |
| 892 } | |
| 893 | |
| 894 \newenvironment{longtableiii}[5]{% | |
| 895 \begin{center}% | |
| 896 \def\lineiii##1##2##3{\csname#2\endcsname{##1}&##2&##3\\}% | |
| 897 \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5} \\% | |
| 898 \hline\hline\endhead% | |
| 899 }{% | |
| 900 \end{longtable}% | |
| 879 \end{center}% | 901 \end{center}% |
| 880 } | 902 } |
| 881 | 903 |
| 882 \newenvironment{tableiv}[6]{% | 904 \newenvironment{tableiv}[6]{% |
| 883 \begin{center}% | 905 \begin{center}% |
| 884 \def\lineiv##1##2##3##4{\csname#2\endcsname{##1}&##2&##3&##4\\}% | 906 \def\lineiv##1##2##3##4{\csname#2\endcsname{##1}&##2&##3&##4\\}% |
| 885 \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6} \\% | 907 \begin{tabular}{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6} \\% |
| 886 \hline% | 908 \hline\hline% |
| 887 }{% | 909 }{% |
| 888 \end{tabular}% | 910 \end{tabular}% |
| 911 \end{center}% | |
| 912 } | |
| 913 | |
| 914 \newenvironment{longtableiv}[6]{% | |
| 915 \begin{center}% | |
| 916 \def\lineiv##1##2##3##4{\csname#2\endcsname{##1}&##2&##3&##4\\}% | |
| 917 \begin{longtable}[c]{#1}\strong{#3}&\strong{#4}&\strong{#5}&\strong{#6}% | |
| 918 \\% | |
| 919 \hline\hline\endhead% | |
| 920 }{% | |
| 921 \end{longtable}% | |
| 889 \end{center}% | 922 \end{center}% |
| 890 } | 923 } |
| 891 | 924 |
| 892 % Cross-referencing (AMK, new impl. FLD) | 925 % Cross-referencing (AMK, new impl. FLD) |
| 893 % Sample usage: | 926 % Sample usage: |
