El 19/03/00, Herbert Voss escribi�:
> 1. the caption for the nonfloating table:
>
> \centerline{Table Nr. \stepcounter{table}\thetable : My own caption for
> my own table \vspace{0.5cm}}
>
> 2. add this for the list of tables "lot"
>
> \addcontentsline{lot}{table}{\thetable\hspace{1.5em} My own caption for
> my own table}
>
>
> Herbert
It works nice Herbert, but there is still a problem. When you issue the
command \stepcounter{table} the counter moves right to the next number and
the caption (wich I put on top of the table) apears with the rigth number,
so does the line on the list of tables; but LyX, I don't know why,
apparently steps the counter of the tables when a longtable appears, even
if the table is not on a float.
So in the table of contents there is a table 5.6 (which is our anoying
longtable) and then a jump to the table 5.8, which is supossed to be
table 5.7.
If I remove the \stepcounter{table} an put both the "caption" and the
"addcontents" line on the bottom of the table, everyting is numbered and
referenced rigth, but the caption MUST be on top of the table (thesis
typography rules of my faculty).
A workarround would be a comand that does and opposite action to
\stepcounter{} (is there one?), but any other solution will do fine.
Thanks in advance
Diego