Hi,
I normally put all my tables in floats. Now I've seen in this forum that for a longtable this is not possible: When the table is inside a float, then the longtable option in the table settings cannot be activated. So I just said Insert/Table and then I could indeed make it a long table.
However, now the table isn't counted anymore and I don't get a caption. How can I get a longtable with counting and caption?
LyX ⇒ longtable | Tables with Counter and Caption
NEW: TikZ book now 40% off at Amazon.com for a short time.

longtable | Tables with Counter and Caption
Did you take a look into the longtable documentation?
Anyway, here's how:
Anyway, here's how:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{longtable}\begin{document}\begin{table}\caption{something}\label{table}\end{table}\begin{longtable}{ll}\caption{here's the caption and the label\label{longtable}}\endfirsthead % caption is placed inside the longtable usually as part of the first heada & b\end{longtable}see tables \ref{table} and \ref{longtable}\end{document}
site moderator & package author