| 1 |
%% LaTeX package xassoccnt - version 2.0 (2021/11/21 -- 12:14:58) |
| 2 |
%% Example file for total counters file for xassoccnt.sty |
| 3 |
%% |
| 4 |
%% |
| 5 |
%% ------------------------------------------------------------------------------------------- |
| 6 |
%% Copyright (c) 2015 -- 2021 by Dr. Christian Hupfer <> |
| 7 |
%% ------------------------------------------------------------------------------------------- |
| 8 |
%% |
| 9 |
%% This work may be distributed and/or modified under the |
| 10 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 11 |
%% of this license or (at your option) any later version. |
| 12 |
%% The latest version of this license is in |
| 13 |
%% http://www.latex-project.org/lppl.txt |
| 14 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 15 |
%% version 2005/12/01 or later. |
| 16 |
%% |
| 17 |
%% |
| 18 |
%% This work has the LPPL maintenance status `unmaintained` |
| 19 |
%% |
| 20 |
%% |
| 21 |
|
| 22 |
\documentclass{article} |
| 23 |
|
| 24 |
\usepackage[nonumberofruns]{xassoccnt} |
| 25 |
\usepackage{blindtext} |
| 26 |
\usepackage{hyperref} |
| 27 |
|
| 28 |
\RegisterTotalDocumentCounter{section} |
| 29 |
|
| 30 |
\begin{document} |
| 31 |
|
| 32 |
The total value of section is \TotalValue{section} |
| 33 |
|
| 34 |
The real name is \TotalCounterInternalNameExp{section}% |
| 35 |
|
| 36 |
|
| 37 |
\ifnum\TotalValue{section} > 1\relax Hooray \else only one section found\fi |
| 38 |
\blinddocument |
| 39 |
|
| 40 |
\blinddocument |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
\end{document} |