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