diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/tabularht.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/tabularht.sty | 236 |
1 files changed, 32 insertions, 204 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/tabularht.sty b/Master/texmf-dist/tex/latex/oberdiek/tabularht.sty index da3150adc1e..85162e478fa 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/tabularht.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/tabularht.sty @@ -1,193 +1,35 @@ -% File: tabularht.sty -% Version: 2005/10/18 v2.1 -% Author: Heiko Oberdiek -% Email: <oberdiek@uni-freiburg.de> -% -% Copyright: Copyright (C) 2005 Heiko Oberdiek. -% -% This work may be distributed and/or modified under -% the conditions of the LaTeX Project Public License, -% either version 1.3 of this license or (at your option) -% any later version. The latest version of this license -% is in -% http://www.latex-project.org/lppl.txt -% and version 1.3 or later is part of all distributions -% of LaTeX version 2003/12/01 or later. -% -% This work has the LPPL maintenance status "maintained". -% -% This Current Maintainer of this work is Heiko Oberdiek. -% -% Function: This package defines some environments that adds -% a height specification to tabular and array. -% -% Use: \usepackage{tabularht} -% -% The package provides the following environments -% that extend the tabular/array environment by -% a height specification as first argument: -% * tabularht, tabularht* -% * arrayht -% * tabularxht, tabularxht* -% (if package tabularx is loaded) -% -% The height argument allows a length specification, -% package calc is supported if used. This means, -% the tabular will have the specified height. -% You can also use the prefixes "to=" and "spread=". -% "to=" is the default, "spread=" means, the natural -% height of the tabular box is changed by the length -% after "spread=". -% Examples: -% \begin{tabularht}{1in} -> height is 1in -% \begin{tabularht}{to=1in} -> height is 1in -% \begin{tabularht}{spread=0pt} -% -> natural height, same as \begin{tabular} -% \begin{tabularht}{spread=1in} -% -> natural height increased by 1in -% -% \interrowspace{...} -% Adds space between table rows. It is essentially -% the same as \noalign{\vspace{...}}. -% \interrowfill -% Short for \interrowspace{\fill} -% \interrowstart ...\interrowstop -% Marker commands, useful for option `vlines'. -% -% Option `vlines'. -% -% Vertical lines are interrupted, if space is inserted -% in \noalign, \interrowspace, \addlinespace (booktabs), -% between double \hlines. This option tries to detect -% and add the vertical lines. The lines in a tabular -% with tabularht support (environments of this package) -% are numbered from left to right. The gap that is -% controlled by \interrowspace or inbetween \interrowstart -% and \interrowstop is then filled with the detected -% vertical lines. -% If only a limited selection of the lines should be -% drawn, the commands know an optional argument with a -% list of line numbers, e.g. -% \begin{tabularht}{50mm}{|l|l|} -% Hello & World\\ -% \interrowfill[1,3] -% Foo & Bar -% \end{tabularht} -% There are three lines, but the middle line is not drawn -% in the gap between the first and second row. -% Zero can be used to suppress all lines: -% \interrowspace[0]{10mm} -% The syntax of the commands with the optional argument -% with the line number list <list>. <list> is a comma -% separated list of numbers, <height> means the -% height specification described above with the optional -% prefixes "to=" or "spread=". -% \interrowspace[<list>]{<height>} -% \interrowfill[<list>] -% \interrowstart[<list>]...\interrowstop -% -% Option `vlines' is driver dependent and uses eTeX features. -% * `pdftex': pdfTeX in PDF mode. -% Here the positions of the lines are written with the -% help of the \pdfsavepos feature into the .aux file(s). -% Therefore you need two LaTeX runs to get the lines. -% * `dvips': -% Here, PostScript's currentpoint it used to get -% the line positions. The lines are then drawn at the end -% of the page. Thus one LaTeX/dvips run is sufficient -% for this option. -% * Other drivers: -% * PostScript drivers: probably possible, an end of page -% hook would be nice. -% * VTeX: with GeX (PostScript interpreter) probably possible. -% * dvipdfm: no idea. The big problem is, how to get the -% current position? -% -% Hint: See also package `tabularkv', it provides an interface, -% where most parameters for the environments can be given -% by key-value pairs. -% -% Caution: At last a caution warning, the package, especially the -% stuff of option `vlines' is experimental. -% -% Example 1: -% \documentclass{article} -% \usepackage{tabularht} -% -% \begin{document} -% \fbox{% -% \begin{tabularht*}{1in}{4in}{@{}l@{\extracolsep{\fill}}r@{}} -% upper left corner & upper right corner\\% -% \noalign{\vfill}% -% \multicolumn{2}{@{}c@{}}{bounding box}\\ -% \noalign{\vfill}% -% lower left corner & lower right corner\\ -% \end{tabularht*}% -% } -% \end{document} -% -% Example 2: -% \documentclass{article} -% \usepackage{booktabs} -% \usepackage[dvips,vlines]{tabularht} -% -% \begin{document} -% -% \begin{tabularht}{spread=0pt}{|l|l|} -% \hline -% First&Line\\ -% \hline -% \interrowstart -% \addlinespace[10mm] -% \interrowstop -% \hline -% Second&Line\\ -% \interrowstart -% \hline -% \hline -% \interrowstop -% Third&Line\\ -% \hline -% \interrowspace{10mm} -% \hline -% Fourth&Line\\ -% \hline -% \end{tabularht} -% -% \end{document} -% -% Limitations: -% * Vertical lines are interrupted by \noalign{\vfill}. -% -% Compatibility: -% * array, delarray, tabularx are supported. -% * There can be problems with packages that -% redefine \@array (or \@@array, \@tabarray) and -% \@arrayrule (for option vlines). -% * colortbl: it should at least work, but there isn't -% support for filling the gaps with color, neither -% the rules nor the backgrounds -% -% Installation: -% CTAN location: CTAN:macros/latex/contrib/oberdiek/tabularht.sty -% TDS location: TDS:tex/latex/oberdiek/tabularht.sty -% -% History: 2005/09/22 v1.0: -% * first public version -% 2005/10/16 v2.0: -% * height specification allows -% "to=..." or "spread=...", default is "to=". -% * option vlines added, drivers pdftex and dvips -% * \interrowspace, \interrowfil, and -% \interrowstart ...\interrowstop added -% 2005/10/18 v2.1: -% * fix for package colortbl, but the colors -% of colortbl remain unsupported. -% +%% +%% This is file `tabularht.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% tabularht.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2005, 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3 of this license or (at your option) any later +%% version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file tabularht.dtx +%% and the derived files +%% tabularht.sty, tabularht.pdf, tabularht.ins, tabularht.drv, +%% tabularht-example1.tex, tabularht-example2.tex. +%% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{tabularht}% - [2005/10/18 v2.1 Tabular with height specification] - + [2006/02/20 v2.2 Tabular with height specification (HO)] \let\@toarrayheight\@empty \let\tabH@array@init\@empty @@ -258,9 +100,6 @@ } \def\tabH@to{to} \def\tabH@spread{spread} - -% First argument is the height of the table, -% then the orignal arguments for tabular follow. \newenvironment{tabularht}[1]{% \tabH@setheight{#1}% \tabular @@ -324,9 +163,6 @@ \newcommand*{\interrowstop}{% \noalign{\tabH@vspace@stop}% } - -%%% Options - \providecommand*{\tabH@driver}{} \DeclareOption{vlines}{% @@ -354,9 +190,6 @@ \endinput }{}% \endgroup - -%%% Option vlines, driver independent stuff - \newcounter{tabH@unique} \setcounter{tabH@unique}{0} \let\tabH@currenttab\@empty @@ -392,10 +225,6 @@ } \let\tabH@vrule\@gobble - - -%%% Driver pdftex - \RequirePackage{ifpdf} \ifpdf \begingroup @@ -593,9 +422,6 @@ \endinput \fi - -%%% DVI drivers - \ifx\tabH@driver\@empty \PackageError{tabularht}{% Missing DVI driver, option `vlines' disabled% @@ -741,3 +567,5 @@ end% } \endinput +%% +%% End of file `tabularht.sty'. |