summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/tabularht.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/tabularht.dtx190
1 files changed, 119 insertions, 71 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx b/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
index c4ecd3ef961..2fab037126d 100644
--- a/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
@@ -1,6 +1,7 @@
% \iffalse meta-comment
%
-% Copyright (C) 2005, 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+% Copyright (C) 2005, 2006, 2007 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
@@ -58,7 +59,7 @@
%
%<*ignore>
\begingroup
- \def\x{LaTeX2e}
+ \def\x{LaTeX2e}%
\expandafter\endgroup
\ifcase 0\ifx\install y1\fi\expandafter
\ifx\csname processbatchFile\endcsname\relax\else1\fi
@@ -69,7 +70,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: tabularht 2006/12/22 v2.3 Tabular with height specification (HO)}
+\Msg{* Package: tabularht 2007/04/11 v2.5 Tabular with height specification (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -79,7 +80,8 @@
This is a generated file.
-Copyright (C) 2005, 2006 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+Copyright (C) 2005, 2006, 2007 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
@@ -133,16 +135,16 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{tabularht.drv}%
- [2006/12/22 v2.3 Tabular with height specification (HO)]
+ [2007/04/11 v2.5 Tabular with height specification (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}
\begin{document}
- \DocInput{tabularht.dtx}
+ \DocInput{tabularht.dtx}%
\end{document}
%</driver>
% \fi
%
-% \CheckSum{647}
+% \CheckSum{651}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -163,7 +165,7 @@ and the derived files
% \GetFileInfo{tabularht.drv}
%
% \title{The \xpackage{tabularht} package}
-% \date{2006/12/22 v2.3}
+% \date{2007/04/11 v2.5}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -325,12 +327,12 @@ and the derived files
\begin{document}
\fbox{%
- \begin{tabularht*}{1in}{4in}{@{}l@{\extracolsep{\fill}}r@{}}
+ \begin{tabularht*}{1in}{4in}{@{}l@{\extracolsep{\fill}}r@{}}%
upper left corner & upper right corner\\%
\noalign{\vfill}%
- \multicolumn{2}{@{}c@{}}{bounding box}\\
+ \multicolumn{2}{@{}c@{}}{bounding box}\\%
\noalign{\vfill}%
- lower left corner & lower right corner\\
+ lower left corner & lower right corner\\%
\end{tabularht*}%
}
\end{document}
@@ -349,22 +351,22 @@ and the derived files
\begin{tabularht}{spread=0pt}{|l|l|}
\hline
- First&Line\\
+ First&Line\\%
\hline
\interrowstart
- \addlinespace[10mm]
+ \addlinespace[10mm]%
\interrowstop
\hline
- Second&Line\\
+ Second&Line\\%
\interrowstart
\hline
\hline
\interrowstop
- Third&Line\\
+ Third&Line\\%
\hline
\interrowspace{10mm}
\hline
- Fourth&Line\\
+ Fourth&Line\\%
\hline
\end{tabularht}
@@ -384,7 +386,7 @@ and the derived files
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tabularht}%
- [2006/12/22 v2.3 Tabular with height specification (HO)]
+ [2007/04/11 v2.5 Tabular with height specification (HO)]
% \end{macrocode}
%
% \subsection{Environments}
@@ -564,8 +566,10 @@ and the derived files
% \subsection{Option vlines, driver independent stuff}
%
% \begin{macrocode}
-\newcounter{tabH@unique}
-\setcounter{tabH@unique}{0}
+\begingroup
+ \let\@addtoreset\@gobbletwo
+ \newcounter{tabH@unique}%
+\endgroup
\let\tabH@currenttab\@empty
\def\tabH@array@init{%
@@ -637,10 +641,10 @@ and the derived files
\tabH@aux@vrule{#1}{\tabH@lastxpos}%
}%
\fi
- }
+ }%
- \def\tabH@lastxpos{\the\pdflastxpos}
- \def\tabH@lastypos{\the\pdflastypos}
+ \def\tabH@lastxpos{\the\pdflastxpos}%
+ \def\tabH@lastypos{\the\pdflastypos}%
% The .aux file contains three commands:
% \tabH@aux@vrule{tabular id}{x position}
@@ -656,7 +660,7 @@ and the derived files
\let\tabH@aux@done\@empty
\if@filesw
\immediate\write\@mainaux{%
- \@percentchar\@percentchar BeginProlog: tabularht
+ \@percentchar\@percentchar BeginProlog: tabularht%
}%
% items in the aux file are executed,
% if tabularht is loaded
@@ -678,10 +682,10 @@ and the derived files
}%
}%
\immediate\write\@mainaux{%
- \@percentchar\@percentchar EndProlog: tabularht
+ \@percentchar\@percentchar EndProlog: tabularht%
}%
\fi
- }
+ }%
% the x positions of vrules are stored in
% \tabH@<tabcount>list with distinct values
@@ -703,7 +707,7 @@ and the derived files
}%
\endgroup
}%
- }
+ }%
\def\tabH@do@add#1{%
\ifx\y\@undefined
\ifnum#1<\x\space
@@ -715,7 +719,7 @@ and the derived files
\fi
\fi
\noexpand\do{#1}%
- }
+ }%
\def\tabH@vspace@start#1{%
\if@filesw
@@ -764,7 +768,7 @@ and the derived files
\tabH@aux@vstop{\tabH@lastypos}%
}%
\fi
- }
+ }%
\def\tabH@do@set#1{%
\hbox to \z@{%
\hskip \dimexpr #1sp - \x sp\relax
@@ -772,7 +776,7 @@ and the derived files
\@depth\dimexpr \y sp\relax
\hss
}%
- }
+ }%
\def\tabH@do@filter{%
\@tempswafalse
\advance\count@\@ne
@@ -786,20 +790,20 @@ and the derived files
\else
\expandafter\@gobble
\fi
- }
+ }%
\protected\def\tabH@aux@vstart#1#2#3#4{%
\def\tabH@current@vstart{{#1}{#2}{#3}{#4}}%
- }
+ }%
\protected\def\tabH@aux@vstop{%
\expandafter\tabH@aux@v\tabH@current@vstart
- }
+ }%
\def\tabH@aux@v#1#2#3#4#5{%
\expandafter\gdef\csname tabH@#1row#2x\endcsname{#3}%
\expandafter\xdef\csname tabH@#1row#2y\endcsname{%
\the\numexpr #4 - #5\relax
}%
- }
+ }%
\csname fi\endcsname
\endinput
@@ -848,7 +852,7 @@ and the derived files
% thus simulate a large motion
\kern1in\relax
\tabH@literalps{%
- #1 tabH.vrule
+ #1 tabH.vrule %
Resolution neg 0 translate%
}%
\vrule#3\arrayrulewidth
@@ -878,13 +882,13 @@ and the derived files
}
\tabH@headerps{%
- userdict begin
- /tabH.list 10 dict def
- /tabH.job [] def
+ userdict begin%
+ /tabH.list 10 dict def%
+ /tabH.job [] def %
end%
/tabH.vrule{%
10 string cvs cvn dup tabH.list exch known{%
- tabH.list exch dup [ exch tabH.list exch get
+ tabH.list exch dup [ exch tabH.list exch get %
currentpoint pop round exch true exch{%
% tabH.list key [ ... x true i
% tabH.list key [ ... false i
@@ -892,32 +896,32 @@ and the derived files
% ... [ ... x i
2 copy lt{false}{%
2 copy eq{pop false}{exch true}ifelse%
- }ifelse
- }{false}ifelse
- }forall
+ }ifelse%
+ }{false}ifelse%
+ }forall %
pop%
]put%
}{%
- tabH.list exch[currentpoint pop round]put
- }ifelse
- }bind def
+ tabH.list exch[currentpoint pop round]put%
+ }ifelse%
+ }bind def%
% <tab num> <cols array> <ytop> <ybottom> <rulewidth[sp]>
/tabH.vspace{%
- userdict begin
- 10 dict dup begin
- exch 65536 div Resolution mul 72.27 div
+ userdict begin %
+ 10 dict dup begin %
+ exch 65536 div Resolution mul 72.27 div %
% dvips uses a poor man's ceil function
% see dopage.c before "drawrule": (int)(... + 0.9999999)
0.9999999 add truncate%
- /rulewidth exch def
- exch/ybottom exch def
- exch/ytop exch def
- exch/cols exch def
- exch/tabkey exch 10 string cvs cvn def
- end
- /tabH.job exch[exch userdict/tabH.job get aload pop]def
+ /rulewidth exch def %
+ exch/ybottom exch def %
+ exch/ytop exch def %
+ exch/cols exch def %
+ exch/tabkey exch 10 string cvs cvn def %
+ end%
+ /tabH.job exch[exch userdict/tabH.job get aload pop]def %
end%
- }bind def
+ }bind def %
% Now we do the work at the end of the page.
% Unhappily "eop-hook" cannot be used, because "eop"
% executes "restore" before, so that all data are lost.
@@ -927,12 +931,12 @@ and the derived files
{%
tabH.job{%
begin%
- /colarray
- tabH.list tabkey known{tabH.list tabkey get}{[]}ifelse
- def
+ /colarray %
+ tabH.list tabkey known{tabH.list tabkey get}{[]}ifelse %
+ def %
cols length 0 eq not{%
/colarray[%
- cols{1 sub
+ cols{1 sub %
dup 0 lt{pop}{%
dup colarray length ge{pop}{%
colarray exch get%
@@ -940,18 +944,18 @@ and the derived files
}ifelse%
}forall%
]def%
- }if
+ }if %
colarray{%
% (rulewidth) == rulewidth == % debug
- Resolution sub
- ytop rulewidth ytop ybottom sub v
- }forall
- end
- }forall
+ Resolution sub %
+ ytop rulewidth ytop ybottom sub v%
+ }forall %
+ end%
+ }forall%
% tabH.list{== ==}forall % debug
- }bind aload pop
- TeXDict /eop get aload pop
- ]cvx def
+ }bind aload pop %
+ TeXDict /eop get aload pop%
+ ]cvx def %
end%
}
% \end{macrocode}
@@ -961,13 +965,47 @@ and the derived files
% \end{macrocode}
% \section{Installation}
%
-% \paragraph{CTAN.} This package is available on
+% \subsection{Download}
+%
+% \paragraph{Package.} This package is available on
% CTAN\footnote{\url{ftp://ftp.ctan.org/tex-archive/}}:
% \begin{description}
% \item[\CTAN{macros/latex/contrib/oberdiek/tabularht.dtx}] The source file.
% \item[\CTAN{macros/latex/contrib/oberdiek/tabularht.pdf}] Documentation.
% \end{description}
%
+%
+% \paragraph{Bundle.} All the packages of the bundle `oberdiek'
+% are also available in a TDS compliant ZIP archive. There
+% the packages are already unpacked and the documentation files
+% are generated. The files and directories obey the TDS standard.
+% \begin{description}
+% \item[\CTAN{macros/latex/contrib/oberdiek/oberdiek-tds.zip}]
+% \end{description}
+%
+% \subsection{Bundle installation}
+%
+% \paragraph{Unpacking.} Unpack the \xfile{oberdiek-tds.zip} in the
+% TDS tree (also known as \xfile{texmf} tree) of your choice.
+% Example (linux):
+% \begin{quote}
+% |unzip oberdiek-tds.zip -d ~/texmf|
+% \end{quote}
+%
+% \paragraph{Script installation.}
+% Check the directory \xfile{TDS:scripts/oberdiek/} for
+% scripts that need further installation steps.
+% Package \xpackage{attachfile2} comes with the Perl script
+% \xfile{pdfatfi.pl} that should be installed in such a way
+% that it can be called as \texttt{pdfatfi}.
+% Example (linux):
+% \begin{quote}
+% |chmod +x scripts/oberdiek/pdfatfi.pl|\\
+% |cp scripts/oberdiek/pdfatfi.pl /usr/local/bin/|
+% \end{quote}
+%
+% \subsection{Package installation}
+%
% \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
% \docstrip\ archive. The files are extracted by running the
% \xfile{.dtx} through \plainTeX:
@@ -1000,8 +1038,10 @@ and the derived files
% TDS installing feature, then some files can already be in the right
% place, see the documentation of \docstrip.
%
-% \paragraph{Refresh file databases.} If your \TeX~distribution
-% (\teTeX, \mikTeX, \dots) rely on file databases, you must refresh
+% \subsection{Refresh file name databases}
+%
+% If your \TeX~distribution
+% (\teTeX, \mikTeX, \dots) relies on file name databases, you must refresh
% these. For example, \teTeX\ users run \verb|texhash| or
% \verb|mktexlsr|.
%
@@ -1085,6 +1125,14 @@ and the derived files
% \item
% Fix in code of option vlines.
% \end{Version}
+% \begin{Version}{2007/03/21 v2.4}
+% \item
+% Fix: Counter |tabh@unique| must not be changed by \cs{include}.
+% \end{Version}
+% \begin{Version}{2007/04/11 v2.5}
+% \item
+% Line ends sanitized.
+% \end{Version}
% \end{History}
%
% \PrintIndex