X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Feqs-within-sections.module;h=a2ceb5471d8eebb380bbfac58f913b6c70c3e37a;hb=003d675c2f3bb66f147b99def57296545d4c170e;hp=b16bd877656ce42e8d8ffee8138f5b35cdad0f5d;hpb=69b1ea0ecf5191b937b9e6239aea1d266593bbbc;p=lyx.git diff --git a/lib/layouts/eqs-within-sections.module b/lib/layouts/eqs-within-sections.module index b16bd87765..a2ceb5471d 100644 --- a/lib/layouts/eqs-within-sections.module +++ b/lib/layouts/eqs-within-sections.module @@ -1,13 +1,19 @@ #\DeclareLyXModule{Number Equations by Section} +#\DeclareCategory{Maths} #DescriptionBegin #Resets the equation number at section start and prepends #the section number to the equation number, as in '(2.1)'. #DescriptionEnd -Format 30 +Format 76 Requires amsmath AddToPreamble \numberwithin{equation}{section} EndPreamble + +Counter equation + Within section + LabelString "\thesection.\arabic{equation}" +End