lyx_mirror/lib/layouts/eqs-within-sections.module
2024-06-02 22:52:37 -04:00

22 lines
464 B
Plaintext

#\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 105
Requires amsmath
AddToPreamble
\numberwithin{equation}{section}
EndPreamble
Counter equation
GuiName Equation
Within section
LabelString "\thesection.\arabic{equation}"
PrettyFormat "(\thesection.\arabic{equation})"
End