mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Define new markup for 5-column tables.
This commit is contained in:
parent
1f4cc897f8
commit
f269e59232
3 changed files with 109 additions and 7 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue