Re: How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
Thanks Daniel. I never looked at the content of numreport.inc.

Perhaps you have an idea for my problem I uploaded here before? 
(https://lists.lyx.org/pipermail/lyx-users/2022-August/004205.html)

Thanks very much

Ehud

--- Original Message ---
On Sunday, August 28th, 2022 at 8:45 PM, Daniel  wrote:


> On 2022-08-28 20:30, tush via lyx-users wrote:
> 
> > I am just wondering how lyx knows how to display the numbering of floats
> > when the document class is book and according to what rule to change the
> > numbering when the document class is changed to article, for example.
> > 
> > Yes yes, LyX "doesn't know anything about latex", and it is actually
> > latex that takes care of the numbering, but only in the output (pdf or
> > dvi). My question is about the numbering inside the editor.
> 
> 
> stdfloats.inc contains the basic definition of the float, e.g.
> 
> 
> Float
> Type table
> GuiName Table
> Placement tbp
> Extension lot
> NumberWithin none
> Style plain
> ListName "List of Tables"
> IsPredefined true
> UsesFloatPkg false
> ListCommand listoftables
> RefPrefix tab
> End
> 
> 
> numreport.inc switches the numbering for reports and books to be within
> chapters, e.g.
> 
> 
> Float
> Type table
> NumberWithin chapter
> End
> 
> 
> Best,
> Daniel
> 
> 
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How figure and table numbering is defined?

2022-08-28 Thread Daniel

On 2022-08-28 20:30, tush via lyx-users wrote:
I am just wondering how lyx knows how to display the numbering of floats 
when the document class is book and according to what rule to change the 
numbering when the document class is changed to article, for example.


Yes yes, LyX "doesn't know anything about latex", and it is actually 
latex that takes care of the numbering, but only in the output (pdf or 
dvi). My question is about the numbering *inside*​ the editor.


stdfloats.inc contains the basic definition of the float, e.g.


Float
Type  table
GuiName   Table
Placement tbp
Extension lot
NumberWithin  none
Style plain
ListName  "List of Tables"
IsPredefined  true
UsesFloatPkg  false
ListCommand   listoftables
RefPrefix tab
End


numreport.inc switches the numbering for reports and books to be within 
chapters, e.g.



Float
Type  table
NumberWithin  chapter
End


Best,
Daniel


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
I am just wondering how lyx knows how to display the numbering of floats when 
the document class is book and according to what rule to change the numbering 
when the document class is changed to article, for example.

Yes yes, LyX "doesn't know anything about latex", and it is actually latex that 
takes care of the numbering, but only in the output (pdf or dvi). My question 
is about the numbering inside​ the editor.

 Original Message 
On Aug 28, 2022, 19:11, Ricardo Berlasso < rgb.m...@gmail.com> wrote:

> El dom, 28 ago 2022 a las 18:44, tush via lyx-users 
> () escribió:
>
>> I tried to look where the numbering (within the lyx editor) of figures and 
>> tables is defined.
>>
>> If I choose book doc class, a figure gets the number 
>> "chapter-number.figurenumber-within-the-chapter", whereas if I choose 
>> article doc class, it changes to "figure-number-within-the-whole-article".
>>
>> Nothing is mentioned about floats numbers in stdfloats.inc, stdcounters.inc 
>> or the like.
>>
>> I hope that if I will have the answer to how this numbering is done, I might 
>> be able to set nicely the numbering of a new float I want to insert into my 
>> document.
>
> LyX follows LaTeX to do the numbering, and that means you need to use either 
> modules, local formatting or code in the preamble (the "caption" package) to 
> modify the numbering beyond the standard formatting. Under Document → 
> Settings → Modules it's possible to activate modules that restart the 
> numbering for figures and tables on each sections. For more, you need to tell 
> us what you need (roman numerals?, small caps for the labels?, etc.).
>
> Regards,
> Ricardo
>
>> --
>> lyx-users mailing list
>> lyx-users@lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-users-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How figure and table numbering is defined?

2022-08-28 Thread Ricardo Berlasso
El dom, 28 ago 2022 a las 18:44, tush via lyx-users (<
lyx-users@lists.lyx.org>) escribió:

> I tried to look where the numbering (within the lyx editor) of figures and
> tables is defined.
>
> If I choose book doc class, a figure gets the number
> "chapter-number.figurenumber-within-the-chapter", whereas if I choose
> article doc class, it changes to "figure-number-within-the-whole-article".
>
> Nothing is mentioned about floats numbers in stdfloats.inc,
> stdcounters.inc or the like.
>
> I hope that if I will have the answer to how this numbering is done, I
> might be able to set nicely the numbering of a new float I want to insert
> into my document.
>

LyX follows LaTeX to do the numbering, and that means you need to use
either modules, local formatting or code in the preamble (the "caption"
package) to modify the numbering beyond the standard formatting. Under
Document → Settings → Modules it's possible to activate modules that
restart the numbering for figures and tables on each sections. For more,
you need to tell us what you need (roman numerals?, small caps for the
labels?, etc.).

Regards,
Ricardo



> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
I tried to look where the numbering (within the lyx editor) of figures and 
tables is defined.

If I choose book doc class, a figure gets the number 
"chapter-number.figurenumber-within-the-chapter", whereas if I choose article 
doc class, it changes to "figure-number-within-the-whole-article".

Nothing is mentioned about floats numbers in stdfloats.inc, stdcounters.inc or 
the like.

I hope that if I will have the answer to how this numbering is done, I might be 
able to set nicely the numbering of a new float I want to insert into my 
document.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Koma-script Book Figure/Table numbering.

2021-02-15 Thread Norman Dunbar

On 04/02/2021 16:42, José Abílio Matos wrote:


It seems that this is on purpose due to using parts.
...



In LyX you can do it, in the master document, with:

Document -> Settings -> Document Class -> Class Options -> Custom

and inserting in the Custom field: numbers=noendperiod

I hope that this helps.



Many thanks. Apologies for the delay ig responding, I've been away from 
my laptop for too long!


I have tested this solution and it works perfectly. Thanks again.

Take care, stay safe.


Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

Company Number: 05132767
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread José Abílio Matos
On Thursday, February 4, 2021 2:51:44 PM WET Norman Dunbar wrote:
> Hi Rich,
> 
> thanks for the advice. Please find the test case attached. Hopefully.
> 
> LyxTableBug is the master, childDocument is, well, the child document.
> 
> 
> Cheers,
> Norm.

It seems that this is on purpose due to using parts.

I had to search for the solution:
https://tex.stackexchange.com/questions/179285/redefine-figure-counter-with-scrbook

In LyX you can do it, in the master document, with:

Document -> Settings -> Document Class -> Class Options -> Custom

and inserting in the Custom field: numbers=noendperiod

I hope that this helps.
-- 
José Abílio


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread Norman Dunbar

On 04/02/2021 14:32, Paul A. Rubin wrote:

On the subject of upgrading, you can get a .deb file by adding the 
developer PPA as a software source, doing a refresh in the update 
manager, and then updating LyX. Here's the line for adding the PPA: deb 
http://ppa.launchpad.net/lyx-devel/release/ubuntu focal main. Change 
"focal" to the Ubuntu equivalent of Mint 19 (xenial?). If you have any 
Mint-specific questions, I'm on Mint 20.


Hi Paul,

thanks for that, I will upgrade at some point very soon and see if it 
makes a difference. I'll be upgrading to Mint 20 soon as well. It's on 
my TODO list.


Cheers,
Norm.


--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

Company Number: 05132767
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread Paul A. Rubin

On 2/4/21 9:25 AM, Rich Shepard wrote:

On Thu, 4 Feb 2021, Norman Dunbar wrote:


* Lyx 2.2.4 (From the Mint distro, not downloaded.)


Norman,

Could be an issue fixed since then. The current version is 2.3.6.1.

I have a test case if anyone is interested, but I doubt I'd be 
allowed to

attach it to a list posting, especially as a new subscriber.


Actually, a NWE (Minimum Working Example), attached to a message, is a
requirement. It allows folks to see the underlying LaTeX and futz with 
it to

understand what's happening. Please send it.

Rich


Norm,

On the subject of upgrading, you can get a .deb file by adding the 
developer PPA as a software source, doing a refresh in the update 
manager, and then updating LyX. Here's the line for adding the PPA: deb 
http://ppa.launchpad.net/lyx-devel/release/ubuntu focal main. Change 
"focal" to the Ubuntu equivalent of Mint 19 (xenial?). If you have any 
Mint-specific questions, I'm on Mint 20.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread Rich Shepard

On Thu, 4 Feb 2021, Norman Dunbar wrote:


* Lyx 2.2.4 (From the Mint distro, not downloaded.)


Norman,

Could be an issue fixed since then. The current version is 2.3.6.1.


I have a test case if anyone is interested, but I doubt I'd be allowed to
attach it to a list posting, especially as a new subscriber.


Actually, a NWE (Minimum Working Example), attached to a message, is a
requirement. It allows folks to see the underlying LaTeX and futz with it to
understand what's happening. Please send it.

Rich

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Koma-script Book Figure/Table numbering.

2021-02-04 Thread Norman Dunbar

Hello All,

I have searched the archives and googled for information, but I found 
nothing useful. If I have missed something, please be gentle with me! ;-)


My development setup:

* Linux Mint 19.3 64 bit.
* Lyx 2.2.4 (From the Mint distro, not downloaded.)
* Koma Script Book document class.


I have a book in progress, hopefully to be published "soon". I wrote my 
previous book in ASCIIDoctor-pdf and it was a total nightmare when the 
publisher wanted a re-jig of the chapters as the table/figure/listings 
all had to be manually renumbered. I have some experience with pure 
LaTeX, but I much prefer Lyx, I get more done that way.


The publisher requires me to number tables and figures as "n.n.n". I 
have set my Document's modules to "Number tables by section", "Number 
figures by section".


The book is split into parts and each chapter is a separate file 
inserted as child documents with include type = "include". Each child 
has the same options as the master - I have checked.


When I preview a child document, the generated PDF is correctly 
numbering the tables and figures as "n.n.n: Caption_text", however, when 
I preview the master document the tables and figures are now "n.n.n.: 
Caption_text" -- there's an extra dot before the colon.


This problem does not occur if the Standard Book document class is used. 
However, I do prefer the Koma-script one.


The problem also doesn't occur if I don't use parts. Unfortunately, I 
need parts.


I have a test case if anyone is interested, but I doubt I'd be allowed 
to attach it to a list posting, especially as a new subscriber.


Has anyone seen this problem before? If so, did you find a solution?


Thanks in advance.


Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

Company Number: 05132767
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


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



Re: Strange table numbering

2010-03-09 Thread Helge Hafting

Uwe Stöhr wrote:

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that 
there is *no* situation in which Lyx may trigger the long table option 
automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.


2. But even in that case, why does a long table inside a table float 
count

as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.


Seeing that longtable in a float is meaningless, how about disallowing 
it? I.e. gray out the longtable option for any table that resides

in a float, and clear the longtable setting on any table pasted
into a float...

Helge Hafting


Re: Strange table numbering

2010-03-09 Thread Helge Hafting

Uwe Stöhr wrote:

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that 
there is *no* situation in which Lyx may trigger the long table option 
automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.


2. But even in that case, why does a long table inside a table float 
count

as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.


Seeing that longtable in a float is meaningless, how about disallowing 
it? I.e. gray out the longtable option for any table that resides

in a float, and clear the longtable setting on any table pasted
into a float...

Helge Hafting


Re: Strange table numbering

2010-03-09 Thread Helge Hafting

Uwe Stöhr wrote:

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that 
there is *no* situation in which Lyx may trigger the long table option 
automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.


2. But even in that case, why does a long table inside a table float 
count

as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.


Seeing that longtable in a float is meaningless, how about disallowing 
it? I.e. gray out the longtable option for any table that resides

in a float, and clear the longtable setting on any table pasted
into a float...

Helge Hafting


Re: Strange table numbering

2010-03-08 Thread Stefano Franchi
On 03/07/10, Uwe Stöhr uwesto...@web.de wrote:
Am 07.03.2010 17:16, schrieb Stefano Franchi:
 1. Why the longtable setting was turned on, since these are short tables
 and I do remember NOT choosing it? It seems that Lyx had done that
 automatically. Is that possible?

I never had this case nor was this reported (except of LyX 2.0svn because
the table dialog is currently broken).


Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically? 
If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately. If the former, I'd like to learn how to avoid it.


 2. But even in that case, why does a long table inside a table float count
 as TWO tables? Is this expected Latex behavior?

A longtable inside a float doesn't make much sense because a float cannot be
placed over two pages. That is counts as two tables, is described in the
EmbeddedObjects manual, sec. 2.6.3 Longtable Captions.

Thanks for the pointer---I didn't know. I had never even thought about what 
would happen to a longtable inside a float---as you say, it does not make 
sense. That's probably why it took me a while to understand what was going on.

Cheers,

S.
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Strange table numbering

2010-03-08 Thread Jürgen Spitzmüller
Uwe Stöhr wrote:
  1. Why the longtable setting was turned on, since these are short tables
  and I do remember NOT choosing it? It seems that Lyx had done that
  automatically. Is that possible?
 
 I never had this case nor was this reported (except of LyX 2.0svn because
 the table dialog is  currently broken).

I just faced the same problem with branch (1.6.6svn). While editing a table in 
a document, I suddenly noticed it became a longtable. I'm sure I never set 
that.

I don't have time to investigate ATM.

Jürgen


Re: Strange table numbering

2010-03-08 Thread Uwe Stöhr

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.



2. But even in that case, why does a long table inside a table float count
as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.

regards uwe


Re: Strange table numbering

2010-03-08 Thread Uwe Stöhr

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.



2. But even in that case, why does a long table inside a table float count
as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.

regards uwe


Re: Strange table numbering

2010-03-08 Thread Stefano Franchi
On 03/07/10, Uwe Stöhr uwesto...@web.de wrote:
Am 07.03.2010 17:16, schrieb Stefano Franchi:
 1. Why the longtable setting was turned on, since these are short tables
 and I do remember NOT choosing it? It seems that Lyx had done that
 automatically. Is that possible?

I never had this case nor was this reported (except of LyX 2.0svn because
the table dialog is currently broken).


Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically? 
If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately. If the former, I'd like to learn how to avoid it.


 2. But even in that case, why does a long table inside a table float count
 as TWO tables? Is this expected Latex behavior?

A longtable inside a float doesn't make much sense because a float cannot be
placed over two pages. That is counts as two tables, is described in the
EmbeddedObjects manual, sec. 2.6.3 Longtable Captions.

Thanks for the pointer---I didn't know. I had never even thought about what 
would happen to a longtable inside a float---as you say, it does not make 
sense. That's probably why it took me a while to understand what was going on.

Cheers,

S.
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Strange table numbering

2010-03-08 Thread Jürgen Spitzmüller
Uwe Stöhr wrote:
  1. Why the longtable setting was turned on, since these are short tables
  and I do remember NOT choosing it? It seems that Lyx had done that
  automatically. Is that possible?
 
 I never had this case nor was this reported (except of LyX 2.0svn because
 the table dialog is  currently broken).

I just faced the same problem with branch (1.6.6svn). While editing a table in 
a document, I suddenly noticed it became a longtable. I'm sure I never set 
that.

I don't have time to investigate ATM.

Jürgen


Re: Strange table numbering

2010-03-08 Thread Uwe Stöhr

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.



2. But even in that case, why does a long table inside a table float count
as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.

regards uwe


Re: Strange table numbering

2010-03-08 Thread Uwe Stöhr

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.



2. But even in that case, why does a long table inside a table float count
as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.

regards uwe


Re: Strange table numbering

2010-03-08 Thread Stefano Franchi
On 03/07/10, Uwe Stöhr  wrote:
>Am 07.03.2010 17:16, schrieb Stefano Franchi:
>> 1. Why the longtable setting was turned on, since these are short tables
>> and I do remember NOT choosing it? It seems that Lyx had done that
>> automatically. Is that possible?
>
>I never had this case nor was this reported (except of LyX 2.0svn because
>the table dialog is currently broken).
>

Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically? 
If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately. If the former, I'd like to learn how to avoid it.


>> 2. But even in that case, why does a long table inside a table float count
>> as TWO tables? Is this expected Latex behavior?
>
>A longtable inside a float doesn't make much sense because a float cannot be
>placed over two pages. That is counts as two tables, is described in the
>EmbeddedObjects manual, sec. 2.6.3 "Longtable Captions".
>
Thanks for the pointer---I didn't know. I had never even thought about what 
would happen to a longtable inside a float---as you say, it does not make 
sense. That's probably why it took me a while to understand what was going on.

Cheers,

S.
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Strange table numbering

2010-03-08 Thread Jürgen Spitzmüller
Uwe Stöhr wrote:
> > 1. Why the longtable setting was turned on, since these are short tables
> > and I do remember NOT choosing it? It seems that Lyx had done that
> > automatically. Is that possible?
> 
> I never had this case nor was this reported (except of LyX 2.0svn because
> the table dialog is  currently broken).

I just faced the same problem with branch (1.6.6svn). While editing a table in 
a document, I suddenly noticed it became a longtable. I'm sure I never set 
that.

I don't have time to investigate ATM.

Jürgen


Re: Strange table numbering

2010-03-08 Thread Uwe Stöhr

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.



2. But even in that case, why does a long table inside a table float count
as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.

regards uwe


Re: Strange table numbering

2010-03-08 Thread Uwe Stöhr

Stefano Franchi schrieb:

Do you mean that this particular behavior was never reported, or that there is 
*no* situation in which Lyx may trigger the long table option automatically?


I meant both.

If the latter, then I think I found a bug. It would be pretty hard to 
replicate, unfortunately.


If you are once able to reproduce please report this in our bugtracker 
as this is a mustfix.



2. But even in that case, why does a long table inside a table float count
as TWO tables? Is this expected Latex behavior?


This is a LaTeX issue.

regards uwe


Re: Strange table numbering

2010-03-07 Thread Stefano Franchi
On 03/06/10, Uwe Stöhr uwesto...@web.de wrote:
Am 06.03.2010 22:49, schrieb Stefano Franchi:
 Another puzzling issue:  I have a file with two figure floats and two
 table floats. In the compiled pdf, the figures are correctly numbered as
 figure 1 and figure 2, while the tables come out as table 2 and table 4.
 Latex log output is not particularly enlightening.

Do you have a _small_ LyX example file?

I think I solved the problem, but I am even more puzzled. Exporting to latex 
and looking at the source file I noticed that both tables (one per float) had 
been set to longtables. Removing the longtable setting from within lyx 
restored correct numbering.
What I don't understand is:

1. Why the longtable setting was turned on, since these are short tables and I 
do remember NOT choosing it? It seems that Lyx had done that automatically. Is 
that possible?

2. But even in that case, why does a long table inside a table float count as 
TWO tables? Is this expected Latex behavior?

I am enclosing a short file (just the two tables), even though it may not seem 
necessary.


Puzzled,

S.




regards Uwe
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


table-numbering-test.lyx
Description: application/lyx


Re: Strange table numbering

2010-03-07 Thread Uwe Stöhr

Am 07.03.2010 17:16, schrieb Stefano Franchi:


1. Why the longtable setting was turned on, since these are short tables and I
do remember NOT choosing it? It seems that Lyx had done that automatically. Is
that possible?


I never had this case nor was this reported (except of LyX 2.0svn because the table dialog is 
currently broken).



2. But even in that case, why does a long table inside a table float count as
TWO tables? Is this expected Latex behavior?


A longtable inside a float doesn't make much sense because a float cannot be 
placed over two pages.
That is counts as two tables, is described in the EmbeddedObjects manual, sec. 2.6.3 Longtable 
Captions.


regards Uwe


Re: Strange table numbering

2010-03-07 Thread Stefano Franchi
On 03/06/10, Uwe Stöhr uwesto...@web.de wrote:
Am 06.03.2010 22:49, schrieb Stefano Franchi:
 Another puzzling issue:  I have a file with two figure floats and two
 table floats. In the compiled pdf, the figures are correctly numbered as
 figure 1 and figure 2, while the tables come out as table 2 and table 4.
 Latex log output is not particularly enlightening.

Do you have a _small_ LyX example file?

I think I solved the problem, but I am even more puzzled. Exporting to latex 
and looking at the source file I noticed that both tables (one per float) had 
been set to longtables. Removing the longtable setting from within lyx 
restored correct numbering.
What I don't understand is:

1. Why the longtable setting was turned on, since these are short tables and I 
do remember NOT choosing it? It seems that Lyx had done that automatically. Is 
that possible?

2. But even in that case, why does a long table inside a table float count as 
TWO tables? Is this expected Latex behavior?

I am enclosing a short file (just the two tables), even though it may not seem 
necessary.


Puzzled,

S.




regards Uwe
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


table-numbering-test.lyx
Description: application/lyx


Re: Strange table numbering

2010-03-07 Thread Uwe Stöhr

Am 07.03.2010 17:16, schrieb Stefano Franchi:


1. Why the longtable setting was turned on, since these are short tables and I
do remember NOT choosing it? It seems that Lyx had done that automatically. Is
that possible?


I never had this case nor was this reported (except of LyX 2.0svn because the table dialog is 
currently broken).



2. But even in that case, why does a long table inside a table float count as
TWO tables? Is this expected Latex behavior?


A longtable inside a float doesn't make much sense because a float cannot be 
placed over two pages.
That is counts as two tables, is described in the EmbeddedObjects manual, sec. 2.6.3 Longtable 
Captions.


regards Uwe


Re: Strange table numbering

2010-03-07 Thread Stefano Franchi
On 03/06/10, Uwe Stöhr <uwesto...@web.de> wrote:
>Am 06.03.2010 22:49, schrieb Stefano Franchi:
>> Another puzzling issue:  I have a file with two figure floats and two
>> table floats. In the compiled pdf, the figures are correctly numbered as
>> figure 1 and figure 2, while the tables come out as table 2 and table 4.
>> Latex log output is not particularly enlightening.
>
>Do you have a _small_ LyX example file?

I think I solved the problem, but I am even more puzzled. Exporting to latex 
and looking at the source file I noticed that both tables (one per float) had 
been set to longtables. Removing the longtable setting from within lyx 
restored correct numbering.
What I don't understand is:

1. Why the longtable setting was turned on, since these are short tables and I 
do remember NOT choosing it? It seems that Lyx had done that automatically. Is 
that possible?

2. But even in that case, why does a long table inside a table float count as 
TWO tables? Is this expected Latex behavior?

I am enclosing a short file (just the two tables), even though it may not seem 
necessary.


Puzzled,

S.



>
>regards Uwe
__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


table-numbering-test.lyx
Description: application/lyx


Re: Strange table numbering

2010-03-07 Thread Uwe Stöhr

Am 07.03.2010 17:16, schrieb Stefano Franchi:


1. Why the longtable setting was turned on, since these are short tables and I
do remember NOT choosing it? It seems that Lyx had done that automatically. Is
that possible?


I never had this case nor was this reported (except of LyX 2.0svn because the table dialog is 
currently broken).



2. But even in that case, why does a long table inside a table float count as
TWO tables? Is this expected Latex behavior?


A longtable inside a float doesn't make much sense because a float cannot be 
placed over two pages.
That is counts as two tables, is described in the EmbeddedObjects manual, sec. 2.6.3 "Longtable 
Captions".


regards Uwe


Strange table numbering

2010-03-06 Thread Stefano Franchi
Another puzzling issue:  I have a file with two figure floats and two table 
floats. In the compiled pdf, the figures are correctly numbered as figure 1 
and figure 2, while the tables come out as table 2 and table 4.
Latex log output is not particularly enlightening.


S.




__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Strange table numbering

2010-03-06 Thread Uwe Stöhr

Am 06.03.2010 22:49, schrieb Stefano Franchi:


Another puzzling issue:  I have a file with two figure floats and two table
floats. In the compiled pdf, the figures are correctly numbered as figure 1
and figure 2, while the tables come out as table 2 and table 4.
Latex log output is not particularly enlightening.


Do you have a _small_ LyX example file?

regards Uwe


Strange table numbering

2010-03-06 Thread Stefano Franchi
Another puzzling issue:  I have a file with two figure floats and two table 
floats. In the compiled pdf, the figures are correctly numbered as figure 1 
and figure 2, while the tables come out as table 2 and table 4.
Latex log output is not particularly enlightening.


S.




__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Strange table numbering

2010-03-06 Thread Uwe Stöhr

Am 06.03.2010 22:49, schrieb Stefano Franchi:


Another puzzling issue:  I have a file with two figure floats and two table
floats. In the compiled pdf, the figures are correctly numbered as figure 1
and figure 2, while the tables come out as table 2 and table 4.
Latex log output is not particularly enlightening.


Do you have a _small_ LyX example file?

regards Uwe


Strange table numbering

2010-03-06 Thread Stefano Franchi
Another puzzling issue:  I have a file with two figure floats and two table 
floats. In the compiled pdf, the figures are correctly numbered as figure 1 
and figure 2, while the tables come out as table 2 and table 4.
Latex log output is not particularly enlightening.


S.




__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237


Re: Strange table numbering

2010-03-06 Thread Uwe Stöhr

Am 06.03.2010 22:49, schrieb Stefano Franchi:


Another puzzling issue:  I have a file with two figure floats and two table
floats. In the compiled pdf, the figures are correctly numbered as figure 1
and figure 2, while the tables come out as table 2 and table 4.
Latex log output is not particularly enlightening.


Do you have a _small_ LyX example file?

regards Uwe


Re: Long table messes up table numbering

2009-02-04 Thread Jürgen Spitzmüller
Axsuul wrote:
 Anyone having this problem? It seems to be that having a long table makes
 the next table numbering skip.

http://texnik.dante.de/cgi-bin/mainFAQ.cgi?file=table/longtable#caption

Jürgen


Re: Long table messes up table numbering

2009-02-04 Thread Uwe Stöhr

Axsuul schrieb:


Anyone having this problem? It seems to be that having a long table makes the
next table numbering skip. I.e.

Table 1 (long table)

then the next table number would be

Table 3


This behaviour and the workaround is described in sec. 2.6.3 of the Embedded Objects manual that you 
find in LyX's Help menu.


regards Uwe


Re: Long table messes up table numbering

2009-02-04 Thread Jürgen Spitzmüller
Axsuul wrote:
 Anyone having this problem? It seems to be that having a long table makes
 the next table numbering skip.

http://texnik.dante.de/cgi-bin/mainFAQ.cgi?file=table/longtable#caption

Jürgen


Re: Long table messes up table numbering

2009-02-04 Thread Uwe Stöhr

Axsuul schrieb:


Anyone having this problem? It seems to be that having a long table makes the
next table numbering skip. I.e.

Table 1 (long table)

then the next table number would be

Table 3


This behaviour and the workaround is described in sec. 2.6.3 of the Embedded Objects manual that you 
find in LyX's Help menu.


regards Uwe


Re: Long table messes up table numbering

2009-02-04 Thread Jürgen Spitzmüller
Axsuul wrote:
> Anyone having this problem? It seems to be that having a long table makes
> the next table numbering skip.

http://texnik.dante.de/cgi-bin/mainFAQ.cgi?file=table/longtable#caption

Jürgen


Re: Long table messes up table numbering

2009-02-04 Thread Uwe Stöhr

Axsuul schrieb:


Anyone having this problem? It seems to be that having a long table makes the
next table numbering skip. I.e.

Table 1 (long table)

then the next table number would be

Table 3


This behaviour and the workaround is described in sec. 2.6.3 of the Embedded Objects manual that you 
find in LyX's Help menu.


regards Uwe


Long table messes up table numbering

2009-02-03 Thread Axsuul

Anyone having this problem? It seems to be that having a long table makes the
next table numbering skip. I.e.

Table 1 (long table)

then the next table number would be

Table 3
-- 
View this message in context: 
http://n2.nabble.com/Long-table-messes-up-table-numbering-tp2267503p2267503.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Long table messes up table numbering

2009-02-03 Thread Axsuul

Anyone having this problem? It seems to be that having a long table makes the
next table numbering skip. I.e.

Table 1 (long table)

then the next table number would be

Table 3
-- 
View this message in context: 
http://n2.nabble.com/Long-table-messes-up-table-numbering-tp2267503p2267503.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Long table messes up table numbering

2009-02-03 Thread Axsuul

Anyone having this problem? It seems to be that having a long table makes the
next table numbering skip. I.e.

Table 1 (long table)

then the next table number would be

Table 3
-- 
View this message in context: 
http://n2.nabble.com/Long-table-messes-up-table-numbering-tp2267503p2267503.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx's strange table numbering

2008-10-10 Thread newnoise

Hello Martina!

i solved the problem just with this command

\addcontentsline{toc}{section}{your section title}
\addcontentsline{toc}{subsection}{your section title}

you have to write this after a section or subsection.. it should work. It
works even for list of figures, table and  nomenclature

\addcontentsline{toc}{section}{LIST OF TABLES}
\addcontentsline{toc}{section}{LIST OF FIGURES}

cheers
/davide


martina.prugger wrote:
 
 Hi
 
 I use Lyx to write a document with a lot of tables. However, I have a very
 strange problem in lyx everything works fine but as soon as I create a pdf
 (or a dvi for that matter) the table numbering is 1,3,4,5,6,7, Which
 confuses me.
 
 Furthermore, I use the section*, subsection* because I don't want my
 sections to be numbered. But then if i insert a Table of Content the
 Contents field in the pdf file stays empty while it is correctly displayed
 in lyx.
 
 
 thanks
 Martina
 
 
 
 

-- 
View this message in context: 
http://n2.nabble.com/Lyx%27s-strange-table-numbering-tp481291p1315464.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx's strange table numbering

2008-10-10 Thread newnoise

Hello Martina!

i solved the problem just with this command

\addcontentsline{toc}{section}{your section title}
\addcontentsline{toc}{subsection}{your section title}

you have to write this after a section or subsection.. it should work. It
works even for list of figures, table and  nomenclature

\addcontentsline{toc}{section}{LIST OF TABLES}
\addcontentsline{toc}{section}{LIST OF FIGURES}

cheers
/davide


martina.prugger wrote:
 
 Hi
 
 I use Lyx to write a document with a lot of tables. However, I have a very
 strange problem in lyx everything works fine but as soon as I create a pdf
 (or a dvi for that matter) the table numbering is 1,3,4,5,6,7, Which
 confuses me.
 
 Furthermore, I use the section*, subsection* because I don't want my
 sections to be numbered. But then if i insert a Table of Content the
 Contents field in the pdf file stays empty while it is correctly displayed
 in lyx.
 
 
 thanks
 Martina
 
 
 
 

-- 
View this message in context: 
http://n2.nabble.com/Lyx%27s-strange-table-numbering-tp481291p1315464.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx's strange table numbering

2008-10-10 Thread newnoise

Hello Martina!

i solved the problem just with this command

\addcontentsline{toc}{section}{your section title}
\addcontentsline{toc}{subsection}{your section title}

you have to write this after a section or subsection.. it should work. It
works even for list of figures, table and  nomenclature

\addcontentsline{toc}{section}{LIST OF TABLES}
\addcontentsline{toc}{section}{LIST OF FIGURES}

cheers
/davide


martina.prugger wrote:
> 
> Hi
> 
> I use Lyx to write a document with a lot of tables. However, I have a very
> strange problem in lyx everything works fine but as soon as I create a pdf
> (or a dvi for that matter) the table numbering is 1,3,4,5,6,7, Which
> confuses me.
> 
> Furthermore, I use the section*, subsection* because I don't want my
> "sections" to be numbered. But then if i insert a "Table of Content" the
> Contents field in the pdf file stays empty while it is correctly displayed
> in lyx.
> 
> 
> thanks
> Martina
> 
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Lyx%27s-strange-table-numbering-tp481291p1315464.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx's strange table numbering

2008-10-02 Thread yehya

I've the same annoying problem. Was it solved?

Yehya

-- 
View this message in context: 
http://n2.nabble.com/Lyx%27s-strange-table-numbering-tp481291p1140559.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx's strange table numbering

2008-10-02 Thread yehya

I've the same annoying problem. Was it solved?

Yehya

-- 
View this message in context: 
http://n2.nabble.com/Lyx%27s-strange-table-numbering-tp481291p1140559.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Lyx's strange table numbering

2008-10-02 Thread yehya

I've the same annoying problem. Was it solved?

Yehya

-- 
View this message in context: 
http://n2.nabble.com/Lyx%27s-strange-table-numbering-tp481291p1140559.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Lyx's strange table numbering

2008-06-08 Thread martina.prugger
Hi

I use Lyx to write a document with a lot of tables. However, I have a very
strange problem in lyx everything works fine but as soon as I create a pdf
(or a dvi for that matter) the table numbering is 1,3,4,5,6,7, Which
confuses me.

Furthermore, I use the section*, subsection* because I don't want my
sections to be numbered. But then if i insert a Table of Content the
Contents field in the pdf file stays empty while it is correctly displayed
in lyx.


thanks
Martina




Lyx's strange table numbering

2008-06-08 Thread martina.prugger
Hi

I use Lyx to write a document with a lot of tables. However, I have a very
strange problem in lyx everything works fine but as soon as I create a pdf
(or a dvi for that matter) the table numbering is 1,3,4,5,6,7, Which
confuses me.

Furthermore, I use the section*, subsection* because I don't want my
sections to be numbered. But then if i insert a Table of Content the
Contents field in the pdf file stays empty while it is correctly displayed
in lyx.


thanks
Martina




Lyx's strange table numbering

2008-06-08 Thread martina.prugger
Hi

I use Lyx to write a document with a lot of tables. However, I have a very
strange problem in lyx everything works fine but as soon as I create a pdf
(or a dvi for that matter) the table numbering is 1,3,4,5,6,7, Which
confuses me.

Furthermore, I use the section*, subsection* because I don't want my
"sections" to be numbered. But then if i insert a "Table of Content" the
Contents field in the pdf file stays empty while it is correctly displayed
in lyx.


thanks
Martina




Re: Table numbering: subsection arabic and table no. alph

2007-05-06 Thread Uwe Stöhr

Christian Liesen schrieb:

sorry for asking, but I could not find any hints on this list or in the 
Embedded Objects-Manual on how to change table numbering to a mixed mode 
of arabic and alph.


I have several tables in a subsection, and I want the caption to look like

Table 1.3 a: foo
Table 1.3 b: foo


I'll add a section about this in the manual that refers to section 4.2.1 Footnote 
Numbering.

To get what you want, look at the attached LyX-examplefile.

regards Uwe


newfile1.lyx
Description: application/lyx


Re: Table numbering: subsection arabic and table no. alph

2007-05-06 Thread Christian Liesen

Many thanks!

Putting

\renewcommand{\thetable}{\thesubsection~\alph{table}}

in the preamble worked like a charm. Great if this goes into the manual, 
too.


Best wishes,
-- Christian



Uwe Stöhr wrote:

Christian Liesen schrieb:

sorry for asking, but I could not find any hints on this list or in 
the Embedded Objects-Manual on how to change table numbering to a 
mixed mode of arabic and alph.


I have several tables in a subsection, and I want the caption to look 
like


Table 1.3 a: foo
Table 1.3 b: foo


I'll add a section about this in the manual that refers to section 
4.2.1 Footnote Numbering.


To get what you want, look at the attached LyX-examplefile.

regards Uwe




Re: Table numbering: subsection arabic and table no. alph

2007-05-06 Thread Uwe Stöhr

Christian Liesen schrieb:

sorry for asking, but I could not find any hints on this list or in the 
Embedded Objects-Manual on how to change table numbering to a mixed mode 
of arabic and alph.


I have several tables in a subsection, and I want the caption to look like

Table 1.3 a: foo
Table 1.3 b: foo


I'll add a section about this in the manual that refers to section 4.2.1 Footnote 
Numbering.

To get what you want, look at the attached LyX-examplefile.

regards Uwe


newfile1.lyx
Description: application/lyx


Re: Table numbering: subsection arabic and table no. alph

2007-05-06 Thread Christian Liesen

Many thanks!

Putting

\renewcommand{\thetable}{\thesubsection~\alph{table}}

in the preamble worked like a charm. Great if this goes into the manual, 
too.


Best wishes,
-- Christian



Uwe Stöhr wrote:

Christian Liesen schrieb:

sorry for asking, but I could not find any hints on this list or in 
the Embedded Objects-Manual on how to change table numbering to a 
mixed mode of arabic and alph.


I have several tables in a subsection, and I want the caption to look 
like


Table 1.3 a: foo
Table 1.3 b: foo


I'll add a section about this in the manual that refers to section 
4.2.1 Footnote Numbering.


To get what you want, look at the attached LyX-examplefile.

regards Uwe




Re: Table numbering: subsection arabic and table no. alph

2007-05-06 Thread Uwe Stöhr

Christian Liesen schrieb:

sorry for asking, but I could not find any hints on this list or in the 
Embedded Objects-Manual on how to change table numbering to a mixed mode 
of arabic and alph.


I have several tables in a subsection, and I want the caption to look like

Table 1.3 a: foo
Table 1.3 b: foo


I'll add a section about this in the manual that refers to section 4.2.1 "Footnote 
Numbering".

To get what you want, look at the attached LyX-examplefile.

regards Uwe


newfile1.lyx
Description: application/lyx


Re: Table numbering: subsection arabic and table no. alph

2007-05-06 Thread Christian Liesen

Many thanks!

Putting

\renewcommand{\thetable}{\thesubsection~\alph{table}}

in the preamble worked like a charm. Great if this goes into the manual, 
too.


Best wishes,
-- Christian



Uwe Stöhr wrote:

Christian Liesen schrieb:

sorry for asking, but I could not find any hints on this list or in 
the Embedded Objects-Manual on how to change table numbering to a 
mixed mode of arabic and alph.


I have several tables in a subsection, and I want the caption to look 
like


Table 1.3 a: foo
Table 1.3 b: foo


I'll add a section about this in the manual that refers to section 
4.2.1 "Footnote Numbering".


To get what you want, look at the attached LyX-examplefile.

regards Uwe




Table numbering: subsection arabic and table no. alph

2007-05-05 Thread Christian Liesen

Hi,

sorry for asking, but I could not find any hints on this list or in the 
Embedded Objects-Manual on how to change table numbering to a mixed mode 
of arabic and alph.


I have several tables in a subsection, and I want the caption to look like

Table 1.3 a: foo
Table 1.3 b: foo

and so on, with 1.3 being the subsection and a,b,... as the table numbers.

Any ideas on how to do this or where to look?

Many thanks,
-- Christian


Table numbering: subsection arabic and table no. alph

2007-05-05 Thread Christian Liesen

Hi,

sorry for asking, but I could not find any hints on this list or in the 
Embedded Objects-Manual on how to change table numbering to a mixed mode 
of arabic and alph.


I have several tables in a subsection, and I want the caption to look like

Table 1.3 a: foo
Table 1.3 b: foo

and so on, with 1.3 being the subsection and a,b,... as the table numbers.

Any ideas on how to do this or where to look?

Many thanks,
-- Christian


Table numbering: subsection arabic and table no. alph

2007-05-05 Thread Christian Liesen

Hi,

sorry for asking, but I could not find any hints on this list or in the 
Embedded Objects-Manual on how to change table numbering to a mixed mode 
of arabic and alph.


I have several tables in a subsection, and I want the caption to look like

Table 1.3 a: foo
Table 1.3 b: foo

and so on, with 1.3 being the subsection and a,b,... as the table numbers.

Any ideas on how to do this or where to look?

Many thanks,
-- Christian


Re: Table Numbering

2006-05-30 Thread Paul A. Rubin

Jose' Matos wrote:

On Saturday 27 May 2006 14:00, Jan wrote:

Does anyone have an idea how I could fix this?


  I suspect that you using a longtable inside a float. I may be wrong (it 
happens ;-) but it produces the same behaviour that are seeing. :-)




Well, it didn't happen this time.  ;-)  You're right, the first table is 
flagged longtable (although in the test document, at least, it's not all 
that long).  Is this a known LaTeX problem?  Or is it correct behavior 
(as defined by longtable)?


/Paul



Re: Table Numbering

2006-05-30 Thread Jose' Matos
On Tuesday 30 May 2006 16:16, Paul A. Rubin wrote:
    I suspect that you using a longtable inside a float. I may be wrong (it
  happens ;-) but it produces the same behaviour that are seeing. :-)

  Did I wrote that?! :-)
  I had very few time to answer and this is result. :-)

 Well, it didn't happen this time.  ;-)  You're right, the first table is
 flagged longtable (although in the test document, at least, it's not all
 that long).  Is this a known LaTeX problem?  Or is it correct behavior
 (as defined by longtable)?

  It is like that by definition. :-)

  A longtable can not be inserted inside a float:
http://tug.org/TeXnik/mainFAQ.cgi?file=table/longtable

  This is from Tips and Tricks.

 /Paul

-- 
José Abílio


Re: Table Numbering

2006-05-30 Thread Paul A. Rubin

Jose' Matos wrote:

On Saturday 27 May 2006 14:00, Jan wrote:

Does anyone have an idea how I could fix this?


  I suspect that you using a longtable inside a float. I may be wrong (it 
happens ;-) but it produces the same behaviour that are seeing. :-)




Well, it didn't happen this time.  ;-)  You're right, the first table is 
flagged longtable (although in the test document, at least, it's not all 
that long).  Is this a known LaTeX problem?  Or is it correct behavior 
(as defined by longtable)?


/Paul



Re: Table Numbering

2006-05-30 Thread Jose' Matos
On Tuesday 30 May 2006 16:16, Paul A. Rubin wrote:
    I suspect that you using a longtable inside a float. I may be wrong (it
  happens ;-) but it produces the same behaviour that are seeing. :-)

  Did I wrote that?! :-)
  I had very few time to answer and this is result. :-)

 Well, it didn't happen this time.  ;-)  You're right, the first table is
 flagged longtable (although in the test document, at least, it's not all
 that long).  Is this a known LaTeX problem?  Or is it correct behavior
 (as defined by longtable)?

  It is like that by definition. :-)

  A longtable can not be inserted inside a float:
http://tug.org/TeXnik/mainFAQ.cgi?file=table/longtable

  This is from Tips and Tricks.

 /Paul

-- 
José Abílio


Re: Table Numbering

2006-05-30 Thread Paul A. Rubin

Jose' Matos wrote:

On Saturday 27 May 2006 14:00, Jan wrote:

Does anyone have an idea how I could fix this?


  I suspect that you using a longtable inside a float. I may be wrong (it 
happens ;-) but it produces the same behaviour that are seeing. :-)




Well, it didn't happen this time.  ;-)  You're right, the first table is 
flagged longtable (although in the test document, at least, it's not all 
that long).  Is this a known LaTeX problem?  Or is it correct behavior 
(as defined by longtable)?


/Paul



Re: Table Numbering

2006-05-30 Thread Jose' Matos
On Tuesday 30 May 2006 16:16, Paul A. Rubin wrote:
> >   I suspect that you using a longtable inside a float. I may be wrong (it
> > happens ;-) but it produces the same behaviour that are seeing. :-)

  Did I wrote that?! :-)
  I had very few time to answer and this is result. :-)

> Well, it didn't happen this time.  ;-)  You're right, the first table is
> flagged longtable (although in the test document, at least, it's not all
> that long).  Is this a known LaTeX problem?  Or is it correct behavior
> (as defined by longtable)?

  It is like that by definition. :-)

  A longtable can not be inserted inside a float:
http://tug.org/TeXnik/mainFAQ.cgi?file=table/longtable

  This is from Tips and Tricks.

> /Paul

-- 
José Abílio


Re: Table Numbering

2006-05-29 Thread Helge Hafting

Jan wrote:

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering 
for the tables omits A.2 and jumps directly from Table A.1 to A.3 and 
then continues on normally, A.4 etc. This only occurs for tables and 
not for figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

This happens if you have two captions inside a float.  (Which may
be a valid thing to do, for example when having two numbered
tables side-by-side.)

This sometimes happens accidentally like this:
1. You insert a table float. The empty paragraph inside the new float
  is of type caption
2. During editing, the caption paragraph is split by pressing enter.
   Now there are two paragraphs in there, both of type caption.
   Perhaps one is the real caption and the other contains the table.

The paragraph containing the table (or figure) inside a float should
not be of the caption type.

Helge Hafting


Re: Table Numbering

2006-05-29 Thread Jan

Hello Paul,

Apparently there was something wrong with the first float:table. After 
deleting/rewriting the float:table, the problem solved itself. I'm 
sorry, I guess I'm getting a bit edgy because of my deadline.

I've attached an example anyway.

Thanks nonetheless.

Greets,
Jan



example.lyx
Description: Binary data


On May 28, 2006, at 0:28, Paul A. Rubin wrote:


Jan wrote:

Dear all,
I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering 
for the tables omits A.2 and jumps directly from Table A.1 to A.3 and 
then continues on normally, A.4 etc. This only occurs for tables and 
not for figures. I'm using Lyx 1.4.1 for Mac btw.

Does anyone have an idea how I could fix this?
Thanks,
Jan


Can you post a minimal example that does this?

/Paul



Re: Table Numbering

2006-05-29 Thread Helge Hafting

Jan wrote:

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering 
for the tables omits A.2 and jumps directly from Table A.1 to A.3 and 
then continues on normally, A.4 etc. This only occurs for tables and 
not for figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

This happens if you have two captions inside a float.  (Which may
be a valid thing to do, for example when having two numbered
tables side-by-side.)

This sometimes happens accidentally like this:
1. You insert a table float. The empty paragraph inside the new float
  is of type caption
2. During editing, the caption paragraph is split by pressing enter.
   Now there are two paragraphs in there, both of type caption.
   Perhaps one is the real caption and the other contains the table.

The paragraph containing the table (or figure) inside a float should
not be of the caption type.

Helge Hafting


Re: Table Numbering

2006-05-29 Thread Jan

Hello Paul,

Apparently there was something wrong with the first float:table. After 
deleting/rewriting the float:table, the problem solved itself. I'm 
sorry, I guess I'm getting a bit edgy because of my deadline.

I've attached an example anyway.

Thanks nonetheless.

Greets,
Jan



example.lyx
Description: Binary data


On May 28, 2006, at 0:28, Paul A. Rubin wrote:


Jan wrote:

Dear all,
I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering 
for the tables omits A.2 and jumps directly from Table A.1 to A.3 and 
then continues on normally, A.4 etc. This only occurs for tables and 
not for figures. I'm using Lyx 1.4.1 for Mac btw.

Does anyone have an idea how I could fix this?
Thanks,
Jan


Can you post a minimal example that does this?

/Paul



Re: Table Numbering

2006-05-29 Thread Helge Hafting

Jan wrote:

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering 
for the tables omits A.2 and jumps directly from Table A.1 to A.3 and 
then continues on normally, A.4 etc. This only occurs for tables and 
not for figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

This happens if you have two captions inside a float.  (Which may
be a valid thing to do, for example when having two numbered
tables side-by-side.)

This sometimes happens accidentally like this:
1. You insert a table float. The empty paragraph inside the new float
  is of type "caption"
2. During editing, the caption paragraph is split by pressing enter.
   Now there are two paragraphs in there, both of type "caption".
   Perhaps one is the real caption and the other contains the table.

The paragraph containing the table (or figure) inside a float should
not be of the "caption" type.

Helge Hafting


Re: Table Numbering

2006-05-29 Thread Jan

Hello Paul,

Apparently there was something wrong with the first float:table. After 
deleting/rewriting the float:table, the problem solved itself. I'm 
sorry, I guess I'm getting a bit edgy because of my deadline.

I've attached an example anyway.

Thanks nonetheless.

Greets,
Jan



example.lyx
Description: Binary data


On May 28, 2006, at 0:28, Paul A. Rubin wrote:


Jan wrote:

Dear all,
I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering 
for the tables omits A.2 and jumps directly from Table A.1 to A.3 and 
then continues on normally, A.4 etc. This only occurs for tables and 
not for figures. I'm using Lyx 1.4.1 for Mac btw.

Does anyone have an idea how I could fix this?
Thanks,
Jan


Can you post a minimal example that does this?

/Paul



Re: Re: Table Numbering

2006-05-28 Thread Jan

Hello Paul,

Apparently there was something wrong with the first float:table. After 
deleting/rewriting the float:table, the problem solved itself. I'm 
sorry. I guess I'm getting a bit edgy because of my deadline. I've 
attached an example anyway.


Greets,
Jan



example.lyx
Description: Binary data


Re: Table Numbering

2006-05-28 Thread Jose' Matos
On Saturday 27 May 2006 14:00, Jan wrote:
 Does anyone have an idea how I could fix this?

  I suspect that you using a longtable inside a float. I may be wrong (it 
happens ;-) but it produces the same behaviour that are seeing. :-)

 Thanks,

 Jan

-- 
José Abílio


Re: Re: Table Numbering

2006-05-28 Thread Jan

Hello Paul,

Apparently there was something wrong with the first float:table. After 
deleting/rewriting the float:table, the problem solved itself. I'm 
sorry. I guess I'm getting a bit edgy because of my deadline. I've 
attached an example anyway.


Greets,
Jan



example.lyx
Description: Binary data


Re: Table Numbering

2006-05-28 Thread Jose' Matos
On Saturday 27 May 2006 14:00, Jan wrote:
 Does anyone have an idea how I could fix this?

  I suspect that you using a longtable inside a float. I may be wrong (it 
happens ;-) but it produces the same behaviour that are seeing. :-)

 Thanks,

 Jan

-- 
José Abílio


Re: Re: Table Numbering

2006-05-28 Thread Jan

Hello Paul,

Apparently there was something wrong with the first float:table. After 
deleting/rewriting the float:table, the problem solved itself. I'm 
sorry. I guess I'm getting a bit edgy because of my deadline. I've 
attached an example anyway.


Greets,
Jan



example.lyx
Description: Binary data


Re: Table Numbering

2006-05-28 Thread Jose' Matos
On Saturday 27 May 2006 14:00, Jan wrote:
> Does anyone have an idea how I could fix this?

  I suspect that you using a longtable inside a float. I may be wrong (it 
happens ;-) but it produces the same behaviour that are seeing. :-)

> Thanks,
>
> Jan

-- 
José Abílio


Table Numbering

2006-05-27 Thread Jan

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering for 
the tables omits A.2 and jumps directly from Table A.1 to A.3 and then 
continues on normally, A.4 etc. This only occurs for tables and not for 
figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

Thanks,

Jan



Re: Table Numbering

2006-05-27 Thread Paul A. Rubin

Jan wrote:

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering for 
the tables omits A.2 and jumps directly from Table A.1 to A.3 and then 
continues on normally, A.4 etc. This only occurs for tables and not for 
figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

Thanks,

Jan




Can you post a minimal example that does this?

/Paul



Table Numbering

2006-05-27 Thread Jan

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering for 
the tables omits A.2 and jumps directly from Table A.1 to A.3 and then 
continues on normally, A.4 etc. This only occurs for tables and not for 
figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

Thanks,

Jan



Re: Table Numbering

2006-05-27 Thread Paul A. Rubin

Jan wrote:

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering for 
the tables omits A.2 and jumps directly from Table A.1 to A.3 and then 
continues on normally, A.4 etc. This only occurs for tables and not for 
figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

Thanks,

Jan




Can you post a minimal example that does this?

/Paul



Table Numbering

2006-05-27 Thread Jan

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering for 
the tables omits A.2 and jumps directly from Table A.1 to A.3 and then 
continues on normally, A.4 etc. This only occurs for tables and not for 
figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

Thanks,

Jan



Re: Table Numbering

2006-05-27 Thread Paul A. Rubin

Jan wrote:

Dear all,

I have an odd problem with the numbering of tables. The document I've 
written includes an Appendix with tables and figures. The numbering for 
the tables omits A.2 and jumps directly from Table A.1 to A.3 and then 
continues on normally, A.4 etc. This only occurs for tables and not for 
figures. I'm using Lyx 1.4.1 for Mac btw.


Does anyone have an idea how I could fix this?

Thanks,

Jan




Can you post a minimal example that does this?

/Paul



Re: Table numbering - was: Figure numbering

2004-05-09 Thread Andre Poenitz
On Sat, May 08, 2004 at 08:24:09PM +0200, Roland Schmitz wrote:
 [...] I think there's a lot to learn for me ...

An easy thing to start with would be quoting in mails. In the lyx
mailing lists (as well as in lots of other mailing lists and
newsgroups) it is common to cut down the mails one is responding to to
the relevant bits and write _below_ these sections.

Reading top-down is pretty common in most parts of the world and the
reduction to the relevant parts asaves bandwidth and the reader's time.
So it is also a polite thing to do.

Andre'


Re: Table numbering - was: Figure numbering

2004-05-09 Thread Andre Poenitz
On Sat, May 08, 2004 at 08:24:09PM +0200, Roland Schmitz wrote:
 [...] I think there's a lot to learn for me ...

An easy thing to start with would be quoting in mails. In the lyx
mailing lists (as well as in lots of other mailing lists and
newsgroups) it is common to cut down the mails one is responding to to
the relevant bits and write _below_ these sections.

Reading top-down is pretty common in most parts of the world and the
reduction to the relevant parts asaves bandwidth and the reader's time.
So it is also a polite thing to do.

Andre'


Re: Table numbering - was: Figure numbering

2004-05-09 Thread Andre Poenitz
On Sat, May 08, 2004 at 08:24:09PM +0200, Roland Schmitz wrote:
> [...] I think there's a lot to learn for me ...

An easy thing to start with would be quoting in mails. In the lyx
mailing lists (as well as in lots of other mailing lists and
newsgroups) it is common to cut down the mails one is responding to to
the relevant bits and write _below_ these sections.

Reading top-down is pretty common in most parts of the world and the
reduction to the relevant parts asaves bandwidth and the reader's time.
So it is also a polite thing to do.

Andre'


Table numbering - was: Figure numbering

2004-05-08 Thread Roland Schmitz
Hi,

today i want to change the table numbering, like the figure numbering i want 
starit forward numbering insted of chapter wise nubering. I tried to change  
Paul Smith solution (take a look at the end of the mail) for figure numbering 
into a solution for table numbering. Because i'm a newbee, i failed. Can 
anybody else help me?

-- 
Mit freundlichem GrussYours sincerely

  Roland Schmitz


Am Donnerstag, 6. Mai 2004 23:48 schrieb Paul Smith:
 You can get what you are wanting if you add the following lines to the 
 preamble:
 
 \usepackage{remreset}
 
 \makeatletter
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]@figure}
 \makeatother
 
 I hope this helps you!
 
 Paul
 


Re: Table numbering - was: Figure numbering

2004-05-08 Thread Paul Smith
today i want to change the table numbering, like the figure numbering i want 
starit forward numbering insted of chapter wise nubering. I tried to change  
Paul Smith solution (take a look at the end of the mail) for figure numbering 
into a solution for table numbering. Because i'm a newbee, i failed. Can 
anybody else help me?
Roland,

You only need to replace the word figure by table, as below:

\usepackage{remreset}

\makeatletter
[EMAIL PROTECTED]
[EMAIL PROTECTED]@table}
\makeatother
I hope this helps you!

Paul




  1   2   >