Re: How figure and table numbering is defined?
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?
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?
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?
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?
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.
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.
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.
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.
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.
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.
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
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
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
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
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
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
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
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&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
Re: Strange table numbering
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
On 03/06/10, Uwe Stöhr 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&M 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
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
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&M University Fax: (979) 845-0458 305B Bolton Hall fran...@philosophy.tamu.edu College Station, TX 77843-4237
Re: Long table messes up table numbering
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
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
Long table messes up table numbering
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
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
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
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
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
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
Table numbering: subsection arabic and table no. alph
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
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
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
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
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
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
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
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
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 - was: Figure numbering
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
I think there's a lot to learn for me ... The same here. A nice thing of this list is that we try to help each other and the spirit of community is really alive on the list. Paul
Re: Table numbering - was: Figure numbering
Hi Paul, that's it. I think there's a lot to learn for me ... Thanx Roland > > \usepackage{remreset} > > \makeatletter > [EMAIL PROTECTED] > [EMAIL PROTECTED]@table} > \makeatother > > I hope this helps you!
Re: Table numbering - was: Figure numbering
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
Table numbering - was: Figure numbering
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 skips -- fixed!
On Tue, Jul 15, 2003 at 02:25:13PM -0500, [EMAIL PROTECTED] wrote: > Let me get this straight. 2 tables in a table float increment the table > counter by two. A long table increments the table counter by (I'm > guessing) the number of chunks used to print the table. A longtable should not be put in a float as it can't properly float anyway. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Re: Table numbering skips -- fixed!
On Tue, Jul 15, 2003 at 02:25:13PM -0500, [EMAIL PROTECTED] wrote: > > > Do you have a "longtable" in your document ? > > > > Ah, yes. I can and will remove and examine the consequences. > > That fixed it. > > Let me get this straight. 2 tables in a table float increment the table > counter by two. A long table increments the table counter by (I'm > guessing) the number of chunks used to print the table. Every caption in a float increases the counter by 1. You can put for example two tables in a float and only one caption. Furthermore, a longtable increases the counter by 1, even if you don't put a caption in it. The reason is that you should normally put a caption in your longtable, but LyX currently doesn't support this. > If this is correct, it would be nice to defeat this. I tried ERT to > \setcounter blah blah blah and it did not work. Something in the preamble > would be better because one does not want table numbers changing under > onn's text. \let\oldendlongtable=\endlongtable \def\endlongtable{\oldendlongtable\addtocounter{table}{-1}}
Re: Table numbering skips -- fixed!
On Tue, 15 Jul 2003 [EMAIL PROTECTED] wrote: > On Tue, 15 Jul 2003, Dekel Tsur wrote: > > > On Tue, Jul 15, 2003 at 02:09:14PM -0500, [EMAIL PROTECTED] wrote: > > > Bug or feature? In an article class document with all tables in floats, > > > one number is skipped in the table sequence. Specifically, numbers go > > > ...,8,9,10,11,12, ... 14, ... Presently, no float has multiple tables. At > > > an earlier point, some floats had two tables and the problem was worse. > > > > > > I want each table float numbered sequentially 1-N. Anything else will > > > confuse a reader. > > > > Do you have a "longtable" in your document ? > > Ah, yes. I can and will remove and examine the consequences. That fixed it. Let me get this straight. 2 tables in a table float increment the table counter by two. A long table increments the table counter by (I'm guessing) the number of chunks used to print the table. If this is correct, it would be nice to defeat this. I tried ERT to \setcounter blah blah blah and it did not work. Something in the preamble would be better because one does not want table numbers changing under onn's text. -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: Table numbering skips
On Tue, 15 Jul 2003, Dekel Tsur wrote: > On Tue, Jul 15, 2003 at 02:09:14PM -0500, [EMAIL PROTECTED] wrote: > > Bug or feature? In an article class document with all tables in floats, > > one number is skipped in the table sequence. Specifically, numbers go > > ...,8,9,10,11,12, ... 14, ... Presently, no float has multiple tables. At > > an earlier point, some floats had two tables and the problem was worse. > > > > I want each table float numbered sequentially 1-N. Anything else will > > confuse a reader. > > Do you have a "longtable" in your document ? Ah, yes. I can and will remove and examine the consequences. Thank you -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: Table numbering skips
On Tue, Jul 15, 2003 at 02:09:14PM -0500, [EMAIL PROTECTED] wrote: > Bug or feature? In an article class document with all tables in floats, > one number is skipped in the table sequence. Specifically, numbers go > ...,8,9,10,11,12, ... 14, ... Presently, no float has multiple tables. At > an earlier point, some floats had two tables and the problem was worse. > > I want each table float numbered sequentially 1-N. Anything else will > confuse a reader. Do you have a "longtable" in your document ?
Table numbering skips
Bug or feature? In an article class document with all tables in floats, one number is skipped in the table sequence. Specifically, numbers go ...,8,9,10,11,12, ... 14, ... Presently, no float has multiple tables. At an earlier point, some floats had two tables and the problem was worse. I want each table float numbered sequentially 1-N. Anything else will confuse a reader. Thank you. -- Mark Hansel PO Box 41 Minnesota State University Moorhead Moorhead, MN 56563 ph: 218-236-2039 fax: 218-236-2593 [EMAIL PROTECTED] http://wwwcj.mnstate.edu
Re: table numbering and space after \textcelsius
Kirk R. Wythers schrieb: I suppose that you have a longtable as the second one. they are regular tables... they used to be long tables, but I switched them to regular tables by inserting a new regular table, then copying and pasting... look for the second one. Click with right mouse button and cursor inside the table and look what the menu says Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: table numbering and space after \textcelsius
On Thu, Jan 16, 2003 at 11:35:57AM -0600, Kirk R. Wythers wrote: > > I suppose that you have a longtable as the second one. > > they are regular tables... they used to be long tables, but I switched > them to regular tables by inserting a new regular table, then copying > and pasting... Well. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: table numbering and space after \textcelsius
On Thu, 2003-01-16 at 11:30, Herbert Voss wrote: > Kirk R. Wythers schrieb: > > 1) There are several instances where I have inserted the degree > > centegrade symbol with the textcomp package. In each case there is a > > single space after the "tex code"\textcelsius, however, upon printing > > the space after the symbol appears lost (i.e. the degreeC symbol runs > > right into the next word). And of course I can't type a second space in > > between. > > \textcelsius{} or behind \textcelsius a ctrl-space that works... thanks > > > 2) I have 5 regular tables placed in floats, and named with labeled so > > that I can insert cross references in to the document. However, when I > > print (or view dvi) my tables get numbered 1,3,5,6,7, not 1,2,3,4,5. > > What up with that? I also have 3 figures, but they are numbered > > correctly 1,2,3., > > I suppose that you have a longtable as the second one. they are regular tables... they used to be long tables, but I switched them to regular tables by inserting a new regular table, then copying and pasting... > Look at my pages for longtable. > > Herbert -- Kirk R. Wythers email: [EMAIL PROTECTED] University of Minnesota tel: 612.625.2261 Department of Forest Resources fax: 612.625.5212 Saint Paul, MN 55108
Re: table numbering and space after \textcelsius
On Thu, Jan 16, 2003 at 11:17:32AM -0600, Kirk R. Wythers wrote: > > > Could you send a _minimal_ example .lyx file that shows this behaviour? > > Here is a example... thanks *ARGH* I did not ask for an example, but for a minimal one. 100k does not count as minimal. --- There seems to be a problem with the longtable stuff. Are you sure you have to put it into a table float? Do you need them at all? Your tables aren't that long... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: table numbering and space after \textcelsius
Kirk R. Wythers schrieb: 1) There are several instances where I have inserted the degree centegrade symbol with the textcomp package. In each case there is a single space after the "tex code"\textcelsius, however, upon printing the space after the symbol appears lost (i.e. the degreeC symbol runs right into the next word). And of course I can't type a second space in between. \textcelsius{} or behind \textcelsius a ctrl-space 2) I have 5 regular tables placed in floats, and named with labeled so that I can insert cross references in to the document. However, when I print (or view dvi) my tables get numbered 1,3,5,6,7, not 1,2,3,4,5. What up with that? I also have 3 figures, but they are numbered correctly 1,2,3., I suppose that you have a longtable as the second one. Look at my pages for longtable. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: table numbering and space after \textcelsius
-BEGIN PGP SIGNED MESSAGE- On Donnerstag, 16. Januar 2003 18:04, Kirk R. Wythers wrote: > 1) There are several instances where I have inserted the degree > centegrade symbol with the textcomp package. In each case there is a > single space after the "tex code"\textcelsius, however, upon printing > the space after the symbol appears lost (i.e. the degreeC symbol runs > right into the next word). And of course I can't type a second space in > between. I am using "\usepackage{isolatin1}" in the preamble with no problems. (degrees defined to be 0xb0) Kornel - -- Kornel Benko [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQCVAwUBPibr3rewfbDGmeqhAQEojQP+OnzHNqdjd3iq7PMztGHqQM752puU0guj DTRFsZl8KIESnFgRFXs2djI7d3Pdm83uHVDuM6b2STbEHMUHtEMWGFmx35s76L2u GQKLX+wPbBGdDkB/Qz3rHKHvzIrOCbRRyoQJpesXofP+Qu2u6gYUEQim0rkygKTy E+M2/1mgSn8= =pqsT -END PGP SIGNATURE-
Re: table numbering and space after \textcelsius
On Thu, 2003-01-16 at 11:08, Andre Poenitz wrote: > On Thu, Jan 16, 2003 at 11:04:44AM -0600, Kirk R. Wythers wrote: > > 1) There are several instances where I have inserted the degree > > centegrade symbol with the textcomp package. In each case there is a > > single space after the "tex code"\textcelsius, however, upon printing > > the space after the symbol appears lost (i.e. the degreeC symbol runs > > right into the next word). And of course I can't type a second space in > > between. > > Use '\textcelsius{}' in ERT. that fixed it... > Andre' -- Kirk R. Wythers email: [EMAIL PROTECTED] University of Minnesota tel: 612.625.2261 Department of Forest Resources fax: 612.625.5212 Saint Paul, MN 55108
Re: table numbering and space after \textcelsius
On Thu, Jan 16, 2003 at 11:04:44AM -0600, Kirk R. Wythers wrote: > 1) There are several instances where I have inserted the degree > centegrade symbol with the textcomp package. In each case there is a > single space after the "tex code"\textcelsius, however, upon printing > the space after the symbol appears lost (i.e. the degreeC symbol runs > right into the next word). And of course I can't type a second space in > between. Use '\textcelsius{}' in ERT. > 2) I have 5 regular tables placed in floats, and named with labeled so > that I can insert cross references in to the document. However, when I > print (or view dvi) my tables get numbered 1,3,5,6,7, not 1,2,3,4,5. > What up with that? I also have 3 figures, but they are numbered > correctly 1,2,3., Could you send a _minimal_ example .lyx file that shows this behaviour? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
table numbering and space after \textcelsius
I've got a couple of questions that I haven't been able to resolve on either the list archive or Herbert's page. I'm using lyx 1.2.1 on a bsd system. 1) There are several instances where I have inserted the degree centegrade symbol with the textcomp package. In each case there is a single space after the "tex code"\textcelsius, however, upon printing the space after the symbol appears lost (i.e. the degreeC symbol runs right into the next word). And of course I can't type a second space in between. 2) I have 5 regular tables placed in floats, and named with labeled so that I can insert cross references in to the document. However, when I print (or view dvi) my tables get numbered 1,3,5,6,7, not 1,2,3,4,5. What up with that? I also have 3 figures, but they are numbered correctly 1,2,3., Any help would be most appreciated, Kirk ps... Here is my preamble: \date{} \usepackage{textcomp} \usepackage{lscape} % -- Kirk R. Wythers email: [EMAIL PROTECTED] University of Minnesota tel: 612.625.2261 Department of Forest Resources fax: 612.625.5212 Saint Paul, MN 55108
Re: table numbering
yep that was the problem... I realized it after Herbert asked about long tables. Changing them to regular tables has solved the problem. Thanks Remzi BTW, I want to put something about LyX and the help group in the acknowledgement sections of my papers. ;-) - Original Message - From: "Dekel Tsur" <[EMAIL PROTECTED]> To: "Remzi Seker" <[EMAIL PROTECTED]>; "LyX users" <[EMAIL PROTECTED]> Sent: Saturday, February 02, 2002 7:39 AM Subject: Re: table numbering > On Fri, Feb 01, 2002 at 03:05:35PM -0600, Remzi Seker wrote: > > Not in between but both tables seem to be long table > > So it seems you have longtables inside table floats, which is something that > should not be done. Change the longable to a standard table.
Re: table numbering
On Fri, Feb 01, 2002 at 03:05:35PM -0600, Remzi Seker wrote: > Not in between but both tables seem to be long table So it seems you have longtables inside table floats, which is something that should not be done. Change the longable to a standard table.
Re: table numbering
Remzi Seker wrote: > Not in between but both tables seem to be long table > http://www.lyx.org/help/table/longtable.phtml#caption Herbert
Re: table numbering
Not in between but both tables seem to be long table - Original Message - From: "Herbert Voss" <[EMAIL PROTECTED]> To: "Remzi Seker" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 9:44 AM Subject: Re: table numbering > > > Remzi Seker wrote: > > > Hi, > > > > I got a document from a colleague and interestingly enough the tables are > > numbered like 1.2, 1.4, 1.6 instead of 1.1, 1.2, 1.3, etc... > > > > I checked the preamble but there is no \newcommand, or \renewcommand > > contained. The document was written in Lyx1.1.6fix4 and koma-script report > > class. > > > > Any idea how I can fix this? > > > Do you have a longtable between 1.2 and 1.4? > > > Herbert > > > -- > http://www.lyx.org/help/ >
Re: table numbering
Remzi Seker wrote: > Hi, > > I got a document from a colleague and interestingly enough the tables are > numbered like 1.2, 1.4, 1.6 instead of 1.1, 1.2, 1.3, etc... > > I checked the preamble but there is no \newcommand, or \renewcommand > contained. The document was written in Lyx1.1.6fix4 and koma-script report > class. > > Any idea how I can fix this? Do you have a longtable between 1.2 and 1.4? Herbert -- http://www.lyx.org/help/
table numbering
Hi, I got a document from a colleague and interestingly enough the tables are numbered like 1.2, 1.4, 1.6 instead of 1.1, 1.2, 1.3, etc... I checked the preamble but there is no \newcommand, or \renewcommand contained. The document was written in Lyx1.1.6fix4 and koma-script report class. Any idea how I can fix this? Thanks in advance. Remzi
Re: Strange table numbering
Glenn Hutchings wrote: > > Is the longtable float numbering a bug? Is is sensible to > put a longtable (designed for making tables span multiple > pages) inside a float? Then again, how else can a longtable > get a caption? a float can only be one page, otherwise it makes no sense for latex for the formatting process. longtables with captions are possible. have a look at http://www.educat.hu-berlin.de/~voss/lyx/floats/nonFloat.html Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Strange table numbering
Hi there! I found out the circumstances when table floats get numbered 1, 3, 5, 7, ... or 2, 4, 6, 8, ... I put longtables inside the floats, since doing that seemed to get the tables centred. (Having used LyX more now, I know that's not the way to do it -- you just set the paragraph layout to centred.) Is the longtable float numbering a bug? Is is sensible to put a longtable (designed for making tables span multiple pages) inside a float? Then again, how else can a longtable get a caption? Glenn
Re: Strange table numbering
Glenn Hutchings wrote: > > I have 4 tables in my doc, inside table floats. If I put the > tables before the captions, I get tables numbered 1, 3, 5, 7. > If I put them afterward, I get 2, 4, 6, 8. But the actual > numbering I really want is 1, 2, 3, 4 (call me fussy or > something). What's going on here? do you have lyx-paragraphsytle caption doubled in the floats? can you send an example-file with two tables, which shows the behaviour Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Strange table numbering
Hi there LyX fans. I have 4 tables in my doc, inside table floats. If I put the tables before the captions, I get tables numbered 1, 3, 5, 7. If I put them afterward, I get 2, 4, 6, 8. But the actual numbering I really want is 1, 2, 3, 4 (call me fussy or something). What's going on here? Glenn