home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fonts 1
/
freshfonts1.bin
/
programs
/
amiga
/
pastex
/
macros
/
distribs
/
array
/
longtable.doc
< prev
next >
Wrap
Text File
|
1992-10-11
|
50KB
|
1,440 lines
% \iffalse
%
% This file is part of the array package.
% ---------------------------------------
%
% This file was contributed. In case of error please inform the
% original author.
%
% \fi
%\iffalse
%%% ====================================================================
%%% @LaTeX-style-file{
%%% filename = "longtable.sty",
%%% version = "3.04",
%%% date = "12 October 1992",
%%% time = "11:51:56 BST",
%%% author = "David Carlisle",
%%% address = "Computer Science Department
%%% Manchester University
%%% Oxford Road
%%% Manchester
%%% England
%%% M13 9PL",
%%% telephone = "+44 61 275 6139",
%%% FAX = "+44 61 275 6236",
%%% checksum = "08304 1428 6676 49483",
%%% email = "carlisle@cs.man.ac.uk (Internet)",
%%% codetable = "ISO/ASCII",
%%% keywords = "LaTeX, array, tabular, page",
%%% supported = "yes",
%%% docstring = "
%%%
%%% longtable.sty
%%%
%%% A LaTeX style option defining a multi-page version of tabular.
%%%
%%% The checksum field above was produced by
%%% Robert Solovay's checksum utility.",
%%% }
%%% ====================================================================
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Version 1 20-Dec-1990
%
% Version 2 17-June-1991
%
% * Works with the New Font Selection Scheme.
% * Works with Mittelbach's array.sty.
%
% Version 3 16-March-1992
%
% * New implementation. longtables may now start anywhere on the page.
% * The code is now self-documenting, using Mittelbach's doc.sty.
%
% Version 3.01 6-April-1992
%
% * (Michel Goossens) If a chunk ends on a line in which the first
% entry is empty, wierd errors occur. Added special begin and end
% groups, ({\ifnum0=`}\fi) stuff as explained in Appendix D.
%
% Version 3.02 9-April-1992
%
% * (Michel Goossens) Longtable fails if the table counter is reset
% during a document. Now use an internal counter, but still
% increment table so \caption and \label work out right.
%
% Version 3.03 25-June-1992
%
% * Add \@ifundefined{reset@font} so that the documentation may be
% processed with old versions of LaTeX.
% * Modify the treatment of \d@llar to match the new versions of
% Mittelbach's array.sty (array.sty v2.0h)
% * Added the standard file header proposed by Nelson Beebe
%
% Version 3.04 12-October-1992
%
% * (Jean-Pierre Drucbert) Longtable failed when used with
% \includeonly. Fixed by replacing the \newcount\LT@tables by
% \newcounter{LT@tables} as LaTeX counters are correctly preserved
% by \include. (This bug was introduced in V3.02, as previously the
% LaTeX counter `table' was used.)
% * Fix bug which stopped \kill working correctly in headings.
% * (Graham Gough) Made \setlongtables issue a warning message.
% * (Sebastian Rahtz) longtable ran out of memory on really long
% tables. Another bug introduced in V3! I had forgotten to call \par
% to force the page-breaker to consider page breaks after every
% chunk.
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\fi
%
\def\fileversion{v3.04}
\def\filedate{92/10/12}
\def\docdate {92/10/12}
%
% \CheckSum{863}
% \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
% Lower-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
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
%
%
%
% \makeatletter
% \@ifundefined{reset@font}{}{}
% \def\@oddfoot{\reset@font\rm\dotfill Page \thepage\dotfill}
% \def\@oddhead{\dotfill{\reset@font\tt longtable.sty}\dotfill}
% \def\ps@titlepage{\let\@oddhead\@empty}
% \makeatother
%
%
% \LTleft=\parindent
% \LTright=\fill
% \LTchunksize=10
%
% \title{longtable.sty\thanks
% {Version \fileversion, revised \filedate, documentation dated
% \docdate}}
% \author{D. P. Carlisle}
% \date{12 October 1992}
%
%
% \maketitle
%
% \begin{abstract}
% This style defines the {\tt longtable} environment, a multi-page
% version of {\tt tabular}.
% \end{abstract}
%
% ^^A \vbox to 100pt makes the page breaks the same on the first run.
% \vbox to 100pt{\listoftables\vss}
%
% \section{Introduction}
%
% {\tt longtable.sty} defines a new environment, \DescribeEnv{longtable}
% {\tt longtable}, which has most of the features of the {\tt tabular}
% environment, but produces tables which may be broken by \TeX's
% standard page-breaking algorithm. It also shares some features with
% the {\tt table} environment. In particular it uses the same counter,
% {\tt table}, and has a similar "\caption" command. Also, the standard
% "\listoftables" command lists tables produced by either the {\tt
% table} or {\tt longtable} environments.
%
% The following example uses most of the features of the {\tt longtable}
% environment. An edited listing of the input for this example appears
% in Section~\ref{listing}.
%
% \begin{longtable}{@{*}r||p{1in}@{*}}
% KILLED & LINE!!!! \kill
% \caption[An optional caption (for the list of tables)]{A long
% table\label{long}}\\
% \hline\hline
% \multicolumn{2}{@{*}c@{*}}%
% {This part appears at the top of the table}\\
% \sc First&\sc Second\\
% \hline\hline
% \endfirsthead
% \caption[]{(continued)}\\
% \hline\hline
% \multicolumn{2}{@{*}c@{*}}%
% {This part appears at the top of every other page}\\
% \bf First&\bf Second\\
% \hline\hline
% \endhead
% \hline
% This goes at the&bottom.\\
% \hline
% \endfoot
% \hline
% These lines will&appear\\
% in place of the & usual foot\\
% at the end& of the table\\
% \hline
% \endlastfoot
% {\tt longtable} columns are specified& in the \\
% same way as in the {\tt tabular}& environment.\\
% "@{*}r||p{1in}@{*}"& in this case.\\
% Each row ends with a& "\\" command.\\
% The "\\" command has an& optional\\
% argument, just as in& the\\
% {\tt tabular}&environment.\\[10pt]
% See the effect of "\\[10pt]"&?\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Also "\hline" may be used,& as in {\tt tabular}.\\
% \hline
% That was a "\hline"&.\\
% \hline\hline
% That was "\hline\hline"&.\\
% \multicolumn{2}{||c||}%
% {This is a \tt\char`\\multicolumn\char`{2\char`}\char`{||c||\char`}}\\
% If a page break occurs at a "\hline" then& a line is drawn\\
% at the bottom of one page and at the& top of the next.\\
% \hline
% The "[t] [b] [c]" argument of {\tt tabular}& can not be used.\\
% The optional argument may be one of& "[l] [r] [c]"\\
% to specify whether the table should be& adjusted\\
% to the left, right& or centrally.\\
% \hline\hline
% Some lines may take up a lot of space, like this: &
% \begin{flushright} This last column is a ``p'' column so this
% ``row'' of the table can take up several lines. Note however that
% \TeX\ will never break a page within such a row. Page breaks only
% occur between rows of the table or at "\hline" commands.
% \end{flushright}\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots of lines& like this.\\
% Lots o