Re: Numbering of Float doesn't change
On 2022-08-29 00:32, tush via lyx-users wrote: I am trying to define a margin figure in my document. The tufte book document class makes use of this environment. In the file tufte-book.layout the following is defined: [...] But margin figure and figure have two separate numberings. Figure is counted within chapters (2.3 for the 3rd figure in chapter 2) but margin figure has its own counter (margin figure 1, margin figure 2, margin figure 3 without any relation to chapters or the other figures). Am I missing something? Does it work the same in your installation? It doesn't work here either, i.e. the numbering of figures and margin figures are disconnected (Figure 1, [Margin] Figure 1, etc.) within the work area of LyX while in the output they are connected (Figure 1, [Margin] Figure 2, etc.). The problem seems to be that LyX 1) automatically assigns a counter to a float based on its name; 2) counters cannot be increases when other counters are increased (only reset with others) Resolving either 1 or 2 would fix the problem, I guess. But if I see it correctly LyX has no support for it currently. Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Numbering of Float doesn't change
I am trying to define a margin figure in my document. The tufte book document class makes use of this environment. In the file tufte-book.layout the following is defined: Counter marginfigure End Float Type marginfigure GuiName MarginFigure Placement tbp AllowedPlacement none AllowsSideways 0 AllowsWide 0 Extension lof NumberWithin none Style plain ListName "List of Figures" ListCommand listoffigures IsPredefined true UsesFloatPkg false End But margin figure and figure have two separate numberings. Figure is counted within chapters (2.3 for the 3rd figure in chapter 2) but margin figure has its own counter (margin figure 1, margin figure 2, margin figure 3 without any relation to chapters or the other figures). Am I missing something? Does it work the same in your installation? My goal is to have the two floats share the same counter (figure 2.3, margin figure 2.4, figure 2.5 etc.). Can I do it?-- 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?
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
Re: correct spacing in e.g. of a document
Am Samstag, dem 27.08.2022 um 10:48 -0600 schrieb Joel Kulesza: > As a counterpoint, the Chicago Manual of Style (my preferred > reference for style alongside Strunk and White) seems to suggest not. > > https://www.chicagomanualofstyle.org/qanda/data/faq/topics/Abbreviations/faq0047.html Sure. I think these academic stylesheets (probably rightly) have users in mind who either use full or no space, not thin space (and who do not even know this exists). Bringhurst addresses typographers. -- Jürgen signature.asc Description: This is a digitally signed message part -- 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