diff options
author | Fred Drake <fdrake@acm.org> | 2001-07-17 23:05:57 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-07-17 23:05:57 (GMT) |
commit | f269e5923282a7ac5934f12023775306671ebccc (patch) | |
tree | 73389143ae7e410c658ab5b68939d04a22ba7693 /Doc/texinputs/python.sty | |
parent | 1f4cc897f8db0d96126ca5d85819263c01582555 (diff) | |
download | cpython-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.sty | 21 |
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} |