[OS X TeX] Re: longtable
Denis Chabot
chabotd at globetrotter.net
Mon Jan 24 22:31:31 CET 2005
Hi,
I found part of the answer to my query. I must not put a longtable
environment inside a table environment.
I did this because I read in:
LATEX Tutorials
A PRIMER
Indian TEX Users Group
Trivandrum, India
2003 September
that:
" just use the commands
\begin{longtable} ... \end{longtable} instead of the \begin{tabular}
... \end{tabular}
commands." p. 73
Since my tabular was inside a table environment...
I did what I should have done to start with, read the documentation for
longtable. In case it helps others, here is what it has become:
\begin{longtable}[c]{lrrr}
\caption{Number of sets and stomachs for each stratum of the survey
area.
\label{tab:n_sets_stratum}}\\
\toprule
Origin & Strata & Nb of sets & Nb of stomachs\\ \midrule
\endhead
NGSL&101& 10& 90\\
NGSL&102& 13& 108\\
NGSL&103& 17& 94\\
lots of lines like this
SGSL&439& 12& 140\\
SGSL&& 13& 224\\
\bottomrule
\end{longtable}
I apologize for wasting your time,
Denis
Le 24 janv. 2005, à 20:58, Denis Chabot a écrit :
> Well it is a problem-laden night for me!
>
> I'm trying longtable for the first time. I have this in the preamble:
> \usepackage{booktabs}
> \usepackage{longtable}
>
> The long table has fairly short lines. It begins like this:
>
> \begin{table}[htbp]
> \begin{center}
> \caption{Number of sets and stomachs for each stratum of the
> survey area.}
> \label{tab:n_sets_stratum}
> \begin{longtable}[t]{lrrr}\toprule
> Origin & Strata & Nb of sets & Nb of stomachs\\ \midrule
> \endhead
> NGSL&$101$&$ 10$&$ 90$\\
> NGSL&$102$&$ 13$&$ 108$\\
>
> many more lines
>
> SGSL&$439$&$ 12$&$ 140$\\
> SGSL&$$&$ 13$&$ 224$\\
> \bottomrule
> \end{longtable}
> \end{center}
> \end{table}
>
>
> This table goes to the very bottom of the page, way past the margin,
> and does not continue on the next page.
>
> I tried if there was any clue in the console, but did not find
> anything very informative, or at least anything I recognized as
> useful!
>
> To get around the problem, at least temporarily, I even tried a manual
> page break at a spot that I judged adequate to just about fill the
> first page:
>
> NGSL&$829$&$ 23$&$ 163$\\
> \newpage
> NGSL&$830$&$ 24$&$ 176$\\
>
> This had no effect.
>
> What am I doing wrong?
>
> Sincerely,
>
> Denis Chabot
>
>
>
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list