Rainer Dorsch wrote:
>
> float environments like figure and table have their respective counters. If a
> longtable occurs not within such an environment, it increases the
> float-counter for tables anyway.
>
> A reference document ist at
>
> http://www.ra.informatik.uni-stuttgart.de/~rainer/Download/table.lyx
>
> The tables are numbered 1, 2, 4 instead of 1, 2, 3.
>
> Is that a lyx or a longtable bug?
>
> Does anybody know a workaround?
lontable uses the same counter than tabular.
write in preamble:
\let\myEnd\endlongtable
\renewcommand\endlongtable{\myEnd\addtocounter{table}{-1}}
if you have a mix of longtable with and without captions,
than write after every longtable:
\addtocounter{table}{-1}
Herbert
--
http://www.educat.hu-berlin.de/~voss/lyx/