# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
# Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
+# Moved "number within sections" to modules Aug '09 (Paul Rubin <rubin@msu.edu>)
Format 11
Columns 1
End
DefaultModule theorems-ams
+DefaultModule eqs-within-sections
+DefaultModule figs-within-sections
Style Standard
Category MainText
LabelType No_Label
End
-
-Preamble
- \numberwithin{equation}{section} %% Comment out for sequentially-numbered
- \numberwithin{figure}{section} %% Comment out for sequentially-numbered
-EndPreamble
-
-
Input stdfloats.inc
Input stdcounters.inc
Input stdinsets.inc
# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
# Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
+# Moved "number within sections" to modules Aug '09 (Paul Rubin <rubin@msu.edu>)
Format 11
End
DefaultModule theorems-ams
+DefaultModule eqs-within-sections
+DefaultModule figs-within-sections
Style Standard
Category MainText
Preamble
\numberwithin{section}{chapter}
- \numberwithin{equation}{section} %% Comment out for sequentially-numbered
- \numberwithin{figure}{section} %% Comment out for sequentially-numbered
EndPreamble
--- /dev/null
+#\DeclareLyXModule{Number Equations by Section}
+#DescriptionBegin
+#Resets the equation number at section start and prepends
+#the section number to the equation number, as in '(2.1)'.
+#DescriptionEnd
+
+Format 11
+
+Requires amsmath
+
+AddToPreamble
+ \numberwithin{equation}{section}
+EndPreamble
--- /dev/null
+#\DeclareLyXModule{Number Figures by Section}
+#DescriptionBegin
+#Resets the figure number at section start and prepends
+#the section number to the figure number, as in 'fig. 2.1'.
+#DescriptionEnd
+
+Format 11
+
+Requires amsmath
+
+AddToPreamble
+ \numberwithin{figure}{section}
+EndPreamble
+
+Float
+ Type figure
+ NumberWithin section
+End
--- /dev/null
+#\DeclareLyXModule{Number Tables by Section}
+#DescriptionBegin
+#Resets the table number at section start and prepends
+#the section number to the table number, as in 'Table 2.1'.
+#DescriptionEnd
+
+Format 11
+
+Requires amsmath
+
+AddToPreamble
+ \numberwithin{table}{section}
+EndPreamble
+
+Float
+ Type figure
+ NumberWithin section
+End