summaryrefslogtreecommitdiff
path: root/obsolete/macros/latex209/contrib/siam/numinsec.sty
blob: a849c4965a0c962be20092ceb4bde96a9dd4d90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% SIAM Style option to get numbering of equations, figures, tables within sections

\@addtoreset{equation}{section}   % Makes \section reset 'equation' counter.
\def\theequation{\thesection.\arabic{equation}}

\@addtoreset{theorem}{section}
\def\thetheorem{\thesection.\@arabic\c@theorem}
\def\thelemma{\thesection.\@arabic\c@theorem}
\def\thecorollary{\thecorollary.\@arabic\c@theorem}
\def\theproposition{\theproposition.\@arabic\c@theorem}

\@addtoreset{figure}{section}
\def\thefigure{\thesection.\@arabic\c@figure}

\@addtoreset{table}{section}
\def\thetable{\thesection.\@arabic\c@table}