summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siam/numinsec.sty
blob: b39729eb3450ab6c1ea446314206de0e7cdfd860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% ====================== NUMINSEC.STY ============================ % 
% 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}