Re: Table numbering problem

2012-02-12 Thread Uwe Stöhr

Am 26.01.2012 17:21, schrieb Emilio Murado:


I have a problem numbering tables. I have a table nested into another, and
both are inside a figure.


You have not nested them into figures and this would also only cause problems.


When I take a look at the figures inside LyX, they are all ok. But when I
export to DVI or PDF, the figures are counting in +2 increments. The first
figure is 2, the second is 4...


This is because you used longtables within table floats. These types have their own numbering and 
thus the table counter is increased by 2. Note that the concept of a longtable is that it cannot 
float but page breaks are allowed. Therefore it is not sensible to add them to table floats.


For more info about tables and longtables, see chapter 2 Tables of the EmbeddedObjects manual that 
you find in LyX's Help menu.


regards Uwe


Re: Table numbering problem

2012-02-12 Thread Uwe Stöhr

Am 26.01.2012 17:21, schrieb Emilio Murado:


I have a problem numbering tables. I have a table nested into another, and
both are inside a figure.


You have not nested them into figures and this would also only cause problems.


When I take a look at the figures inside LyX, they are all ok. But when I
export to DVI or PDF, the figures are counting in +2 increments. The first
figure is 2, the second is 4...


This is because you used longtables within table floats. These types have their own numbering and 
thus the table counter is increased by 2. Note that the concept of a longtable is that it cannot 
float but page breaks are allowed. Therefore it is not sensible to add them to table floats.


For more info about tables and longtables, see chapter 2 Tables of the EmbeddedObjects manual that 
you find in LyX's Help menu.


regards Uwe


Re: Table numbering problem

2012-02-12 Thread Uwe Stöhr

Am 26.01.2012 17:21, schrieb Emilio Murado:


I have a problem numbering tables. I have a table nested into another, and
both are inside a figure.


You have not nested them into figures and this would also only cause problems.


When I take a look at the figures inside LyX, they are all ok. But when I
export to DVI or PDF, the figures are counting in +2 increments. The first
figure is 2, the second is 4...


This is because you used longtables within table floats. These types have their own numbering and 
thus the table counter is increased by 2. Note that the concept of a longtable is that it cannot 
float but page breaks are allowed. Therefore it is not sensible to add them to table floats.


For more info about tables and longtables, see chapter 2 "Tables" of the EmbeddedObjects manual that 
you find in LyX's Help menu.


regards Uwe


Re: Table numbering problem

2012-02-07 Thread Julien Rioux

On 26/01/2012 11:21 AM, Emilio Murado wrote:

Hi all.

I have a problem numbering tables. I have a table nested into another, and
both are inside a figure.

When I take a look at the figures inside LyX, they are all ok. But when I
export to DVI or PDF, the figures are counting in +2 increments. The first
figure is 2, the second is 4... I tried to replicate my problem in a simple
file and works OK even in exported files, but when I try my code in another
document, I'm still having this problem.

Can anyone help me?

The tableTest is created from scratch and numbering works OK, but the other
file (realProblem) is copied from my code and it's buggy. Can you help me,
please?

I'm sorry about my english :/

Thanks in advance.

Emilio.



Quick question: why would you nest tables within figures?

Regards,
Julien



Re: Table numbering problem

2012-02-07 Thread Julien Rioux

On 26/01/2012 11:21 AM, Emilio Murado wrote:

Hi all.

I have a problem numbering tables. I have a table nested into another, and
both are inside a figure.

When I take a look at the figures inside LyX, they are all ok. But when I
export to DVI or PDF, the figures are counting in +2 increments. The first
figure is 2, the second is 4... I tried to replicate my problem in a simple
file and works OK even in exported files, but when I try my code in another
document, I'm still having this problem.

Can anyone help me?

The tableTest is created from scratch and numbering works OK, but the other
file (realProblem) is copied from my code and it's buggy. Can you help me,
please?

I'm sorry about my english :/

Thanks in advance.

Emilio.



Quick question: why would you nest tables within figures?

Regards,
Julien



Re: Table numbering problem

2012-02-07 Thread Julien Rioux

On 26/01/2012 11:21 AM, Emilio Murado wrote:

Hi all.

I have a problem numbering tables. I have a table nested into another, and
both are inside a figure.

When I take a look at the figures inside LyX, they are all ok. But when I
export to DVI or PDF, the figures are counting in +2 increments. The first
figure is 2, the second is 4... I tried to replicate my problem in a simple
file and works OK even in exported files, but when I try my code in another
document, I'm still having this problem.

Can anyone help me?

The tableTest is created from scratch and numbering works OK, but the other
file (realProblem) is copied from my code and it's buggy. Can you help me,
please?

I'm sorry about my english :/

Thanks in advance.

Emilio.



Quick question: why would you nest tables within figures?

Regards,
Julien