mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-25 09:35:39 +00:00
adefdf8eeb
This reverts commit 7c041af6425001d7779f5e44d72918d8591ea37d. We will hold this back until we fix the issue discussed here: https://marc.info/?l=lyx-devel&m=171733833610242&w=2
22 lines
464 B
Plaintext
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 104
|
|
|
|
Requires amsmath
|
|
|
|
AddToPreamble
|
|
\numberwithin{equation}{section}
|
|
EndPreamble
|
|
|
|
Counter equation
|
|
GuiName Equation
|
|
Within section
|
|
LabelString "\thesection.\arabic{equation}"
|
|
PrettyFormat "(\thesection.\arabic{equation})"
|
|
End
|