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

Reply via email to