Søren O'Neill wrote:
I have a table 7.2 in my document, which actually contains a png figure (of a
tbale). The table (as a png) is too large for a single page, thus its been
split into to png's.
I have placed the two png's in two table floats, to spread them across two
pages. I've the added ERT: \addtocounter{table}{-1} before the title of the
second float. This seems to work: both tables are numbered 7.2, BUT the next
table (on the next page) is ALSO numbere 7.2 - after that 7.3 etc ...
How come?
Don't do it in the title!
Titles are special. They get evaluated several times, they are displayed in
the document as well as added to "list of table", possibly to running
headers
and so on. Seems the \addtocounter was evaluated twice, once before
and once after typesetting the title.
So put that ERT in some normal text instead. Perhaps outside the float even,
I'm not sure abut the best place for such things. But definitely not inside
the caption environment.
Helge Hafting