summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/19-IU8-counters.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/19-IU8-counters.sty')
-rw-r--r--macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/19-IU8-counters.sty22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/19-IU8-counters.sty b/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/19-IU8-counters.sty
new file mode 100644
index 0000000000..f0eb7762d1
--- /dev/null
+++ b/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/19-IU8-counters.sty
@@ -0,0 +1,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}