diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex | 53 |
1 files changed, 43 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex index 2d0d8f5fd8b..564d1b569a6 100644 --- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex +++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex @@ -1,9 +1,9 @@ -%% LaTeX package xassoccnt - version 0.2 (2015/11/14 -- 16/08/33) +%% LaTeX package xassoccnt - version 0.3 (2016/01/08 -- 10/54/13) %% Driver file for xassoccnt.sty %% %% %% ------------------------------------------------------------------------------------------- -%% Copyright (c) 2015 by Dr. Christian Hupfer <christian dot hupfer at yahoo dot de> +%% Copyright (c) 2016 by Dr. Christian Hupfer <christian dot hupfer at yahoo dot de> %% ------------------------------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -24,7 +24,7 @@ \usepackage{xcolor} \usepackage{totcount} \usepackage{calc} -\usepackage[autodefinecounters=true]{xassoccnt} +\usepackage[autodefinecounters=false]{xassoccnt} \usepackage{hyperref} @@ -36,8 +36,9 @@ \newcounter{othersections} \newtotcounter{totaltables} +\NewTotalDocumentCounter{equations} -\DeclareAssociatedCounters[autodefine=none]{section}{totalsections,othersections} +\DeclareAssociatedCounters[autodefine=none]{section}{totalsections,othersections,equations} \AddAssociatedCounters{section}{totalsections} @@ -45,10 +46,7 @@ \DeclareAssociatedCounters{table}{totaltables} - \begin{document} - - \chapter{First} In \cref{section::dummylabel} we will see that @@ -87,6 +85,8 @@ In \cref{section::dummylabel} we will see that \end{equation} +\TotalValue{equations} + \chapter{Second chapter} \section{First section of 2nd chapter} \label{section::dummylabel} @@ -103,7 +103,18 @@ In \cref{section::dummylabel} we will see that \IsAssociatedCounter{equation}{Yes, it's associated}{Nope, it's not associated} -\SetDocumentCounter[associatedtoo=true,onlycounters={totalsections,gandalf},associatedtoo=true]{section}{17} +\TotalValue{equations} + + +%\SetDocumentCounter[associatedtoo=true,onlycounters={totalsections,gandalf},associatedtoo=true]{section}{17} + +%\SetDocumentCounter[associatedtoo=true,onlycounters={totalsections,gandalf,equations}]{section}{21} + +%\SetDocumentCounter{equations}{17} +%\setcounter{equations}{17} + +\TotalValue{equations} + \SetDocumentCounter{section}{28} @@ -135,6 +146,15 @@ Value of counterother: \thecounterother } +\IsSuperTotalCounterT{numberofruns}{% + Yes, numberofruns is a super total counter +} + +\IsSuperTotalCounterF{chapter}{% + No, chapter is not a super total counter +} + + \countersresetlistcount{chapter} \SetDocumentCounter{counterother}{\getresetlistcount} @@ -145,19 +165,32 @@ Value of counterother: \thecounterother \item Values: \thesection\ \total{totalsections}\ \theothersections\ \fbox{\color{blue}{\total{totaltables}}}\ \thecounterother. \end{itemize} +Total value: \TotalValue{equations} and \TotalValue{chapter} + +Internal name: \TotalCounterInternalName{equations} + \begin{table} \caption{table} \end{table} -\chapter{First} +%\stepcounter{equations} + + +\chapter{Another chapter} + +\PrettyPrintCounterName{countertype=general}{equation} +\PrettyPrintCounterName{countertype=driver}{chapter} +\PrettyPrintCounterName{countertype=associated}{totalsections} +\PrettyPrintCounterName{countertype=total}{equations} + \begin{table} \caption{table} \end{table} - +%\RemoveSuperTotalCounter{numberofruns} \end{document}
\ No newline at end of file |