summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/19-IU8-counters.sty
blob: f0eb7762d1399134c8215ecb9d6494c6e9aa03a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% Author: CatInCosmicSpace
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{19-IU8-counters}[2021/03/21 v1.1 Счётчики]

\RequirePackage{calc}
\RequirePackage{xassoccnt}
\RequirePackage{totcount}

\NewTotalDocumentCounter{totalfigures}
\DeclareAssociatedCounters{figure}{totalfigures}
\NewTotalDocumentCounter{totaltables}
\DeclareAssociatedCounters{table}{totaltables}

\RequirePackage{totcount}
\newtotcounter{citenum}
\AtEveryBibitem{\stepcounter{citenum}}
\NewTotalDocumentCounter{totalcites}
\DeclareAssociatedCounters{citenum}{totalcites}

\newcounter{apps}
\NewTotalDocumentCounter{totalappendices}
\DeclareAssociatedCounters{apps}{totalappendices}