LyXtable numbering wrong in pdf

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
amplifier
Posts: 10
Joined: Fri Mar 11, 2011 1:51 pm

table numbering wrong in pdf

Post by amplifier »

Hi there,

I'm a new Lyx user and I recognized something weird, when I exported my document to a pdf. The table numbering is different from the one in my document. While Lyx counts correctly (table 1,2,3 and so on) the pdf shows odd numbers (table 1,3,5 and so on)... so table 2 in my document becomes table 3 in the pdf...

how can I fix that?

Thanks a lot for your help!

Amp
Last edited by amplifier on Sun Mar 13, 2011 12:07 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: table numbering wrong in pdf

Post by sommerfee »

Are you using longtables without \caption? Please note that these will increase the table counter anyway, so you will get a gap in the numbering.
amplifier
Posts: 10
Joined: Fri Mar 11, 2011 1:51 pm

Re: table numbering wrong in pdf

Post by amplifier »

I switched longtabels off and now it counts correctly :)

Thanks a lot!
Amp
andresudea
Posts: 1
Joined: Thu Dec 08, 2011 10:34 pm

Re: table numbering wrong in pdf

Post by andresudea »

add this at the end of longtable

" {\addtocounter{table}{-1}} "
KumarDinesh
Posts: 1
Joined: Tue Nov 24, 2015 12:34 pm

Re: table numbering wrong in pdf

Post by KumarDinesh »

{\addtocounter{table}{-1}}

It gives right result when we add after -
\end{longtabu}
Post Reply