----- Original Message ----- From: "Geoffrey Lloyd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <lyx-users@lists.lyx.org>
Sent: Thursday, August 04, 2005 5:57 PM
Subject: Re: Longtable


According to the Docs captions cannot be used unless in a float. So it looks like you will have to do ALL this by hand in ERT. I am willing to be stood corrected though.

so

\begin{longtable}

Sorry this should read \gegin{longtable}{....}

with the {} defining the alignment of all your columns e.g {lcr} for a three column table with the first left aligned the 2nd centered and the third right.



\caption[myfirsttable]{myfirsttable} \label{tab1} \\
...............now all the table layout commands and data.............
\end{longtable}

The caption bit is split in two [] defines what goes in the List of Tables if you have one, and {} what goes in the caption next to the table. THis will put the caption above the table, just move the command to the end to put it underneath.

You can cross-reference this by putting the following in ERT whenever you need it.

\ref{tab1}

For info on how to generate tables using latex just go on the web.

Geoff
----- Original Message ----- From: "Søren O'Neill" <[EMAIL PROTECTED]>
To: <lyx-users@lists.lyx.org>
Sent: Thursday, August 04, 2005 5:23 PM
Subject: Re: Longtable


Hi Herbert and Axel - that was indeed the problem ...

obviously that leaves me with a problem: Captions and table labels etc, which
normally go inside the float ...

Kind regards
Soren

On Thursday 04 August 2005 17:45, Herbert Voss wrote:
Søren O'Neill wrote:
> Hi Axel,
> I know it was a bit short. I've never used longtabel and dont know what
> to expect, but when I right-click in a table, and tick the longtable
> checkbox, I would expect the table to automatically wrap onto the next
> page if it is too long to fit on the page - is that not the expected
> behaviour?

sure, but a longtable cannot be part of a floating
environment. So don't put a longtable inside of
a table environment.

Herbert

--
Soren O'Neill, kiropraktor, MSc, klinisk lektor
Rygambulatoriet, Sygehus Fyn
Lindevej 5, 5750 Ringe

[EMAIL PROTECTED]
http://www.dskkb.dk
tlf. 6362 1906 (arb.)



Reply via email to