summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xassoccnt
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-30 20:33:07 +0000
committerKarl Berry <karl@freefriends.org>2017-04-30 20:33:07 +0000
commit5fd760969b1a06d4ef546ad1e06439f3ba3661dc (patch)
treef0f8e341a1767c6ae6d7833392f3edbea2dc53fd /Master/texmf-dist/doc/latex/xassoccnt
parentbd0a657da5b75949dc7a2dfdf2047b3b477ded45 (diff)
xassoccnt (30apr17)
git-svn-id: svn://tug.org/texlive/trunk@44127 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/xassoccnt')
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/README6
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.pdfbin84360 -> 84360 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.tex2
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.pdfbin0 -> 11903 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.tex64
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.pdfbin0 -> 15994 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.tex45
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.pdfbin94195 -> 94195 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.tex2
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.pdfbin536451 -> 566655 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.tex297
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.pdfbin81113 -> 81113 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.tex2
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.pdfbin68384 -> 68384 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.tex2
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.pdfbin46915 -> 46915 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.tex9
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.pdfbin42924 -> 42924 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.tex2
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.pdfbin0 -> 40835 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.tex94
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.pdfbin31637 -> 31637 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.tex5
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.pdfbin64316 -> 66316 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex24
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.pdfbin0 -> 35604 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.tex80
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.pdfbin60527 -> 60527 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.tex2
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.pdfbin63550 -> 63550 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.tex2
31 files changed, 600 insertions, 38 deletions
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/README b/Master/texmf-dist/doc/latex/xassoccnt/README
index d19fd6cb79e..01b38030c05 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/README
+++ b/Master/texmf-dist/doc/latex/xassoccnt/README
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% README file for xassoccnt.sty
%%
%%
@@ -26,7 +26,7 @@ the associated counters as well. This package can be regarded as a supplement
to the totcount package by Vasileios Koutavas (http://www.ctan.org/pkg/totcount), but
can be used without it too.
-As of 2017/03/05 xassoccnt does not supersede the package assoccnt by the same author, however,
-the older package isn't declared obsolete as of 2017/03/05
+As of 2017/04/30 xassoccnt does not supersede the package assoccnt by the same author, however,
+the older package isn't declared obsolete as of 2017/04/30
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.pdf
index e9039a28add..51ac66915f3 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.tex
index 7f056dacc36..a0985eaf549 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_backupcounters_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for backup counters file for xassoccnt.sty
%%
%%
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.pdf
new file mode 100644
index 00000000000..4ae6bb6332b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.tex
new file mode 100644
index 00000000000..c611aafa290
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.tex
@@ -0,0 +1,64 @@
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
+%% Example file for defining new counter formats file for xassoccnt.sty
+%%
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2017 by Dr. Christian Hupfer <typography dot with dot latex at gmail dot com>
+%% -------------------------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%%
+%% This work has the LPPL maintenance status `author-maintained`
+%%
+%%
+
+\documentclass{article}
+
+\newcounter{foobar}
+
+
+\usepackage{xassoccnt}
+
+
+\begin{document}
+
+
+%\RemoveCounterFormats{b}
+
+
+\setcounter{foobar}{17}
+
+\CounterFormat{foobar!b}
+\thefoobar
+
+\CounterFormat{foobar!h}
+\thefoobar
+
+
+\CounterFormat{foobar!H}
+\thefoobar
+
+\CounterFormat{foobar!R}
+\thefoobar
+
+\setcounter{foobar}{30}
+
+\CounterFormat{foobar!aa}
+\thefoobar
+
+\CounterFormat{foobar!o}
+\thefoobar
+
+\CounterFormat{foobar!AA}
+\thefoobar
+
+\end{document}
+
+
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.pdf
new file mode 100644
index 00000000000..ba5e7895ae1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.tex
new file mode 100644
index 00000000000..1497911f367
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_counternames_example.tex
@@ -0,0 +1,45 @@
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
+%% Example file the the usage of counter names file for xassoccnt.sty
+%%
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2017 by Dr. Christian Hupfer <typography dot with dot latex at gmail dot com>
+%% -------------------------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%%
+%% This work has the LPPL maintenance status `author-maintained`
+%%
+%%
+
+\documentclass{book}
+
+\usepackage[utf8]{inputenc}
+\usepackage{xassoccnt}
+
+\DeclareDocumentCounter[map-name=german,counter-name={Müller}]{foo}
+
+\DeclareLanguageMappings{german}{part;;;;;;Teil;;Teile , chapter;;Kapitel, section;;Abschnitt, subsection;;Unterabschnitt, subsubsection;;Unterabschnitt, paragraph;;Parragraph, subparagraph;; Unterparagraph;; figure;;Abbildung, table;;Tabelle, page;;Seite, equation;;Gleichung }
+
+\begin{document}
+
+\ExplSyntaxOn
+ \typeout{Mapname~is~\prop_item:Nn \g_xassoccnt_module_data_prop {map-name},~counter-name~is~\prop_item:Nn \g_xassoccnt_module_data_prop {counter-name}}
+\ExplSyntaxOff
+\setcounter{foo}{17}
+
+\ShowLanguageMappings{german}
+
+\RetrieveCounterSingularName{german}{chapter}
+
+
+
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.pdf
index 769838c75b7..dab1b60688b 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.tex
index 68de4dc97aa..1a19d03cb98 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_coupledcounters_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for coupled counters file for xassoccnt.sty
%%
%%
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.pdf
index 1a890e51dac..50697c37a5a 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.tex
index f2d7dfc8798..9734efed27b 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_doc.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Documentation file for xassoccnt.sty
%%
%%
@@ -101,6 +101,8 @@
\@namedef{xassoccntversion1.3}{v1.3 2017-03-04}
+\@namedef{xassoccntversion1.4}{v1.4 2017-04-07}
+
\newcommand{\authorname}{Autor}
@@ -321,6 +323,7 @@
}
+\usepackage[T1]{fontenc}
\usepackage{graphicx}%
\usepackage[autodefinecounters=true]{xassoccnt}
\usepackage{amsmath}
@@ -352,6 +355,7 @@
\renewcommand{\rmdefault}{\sfdefault}
+\newcounter{foobar}
\newtotcounter{totalpages}%
\newtotcounter{anothertotalpages}%
@@ -374,7 +378,7 @@
\DeclareAssociatedCounters{proof}{totalproofs}
\DeclareAssociatedCounters{page}{totalpages,anothertotalpages}%
-\NewTotalDocumentCounter{foototal}%
+\DeclareTotalDocumentCounter{foototal}%
\RegisterTotalDocumentCounter{section}%
@@ -562,7 +566,9 @@ As of version \packageversion\ \CHDocPackage{\PackageDocName} supports the packa
Enables the redefinition of the \refCom{label} command and takes care of the optional argument of \refCom{label} if \CHDocPackage{cleveref} is used. This will provide \refCom{label} with a final optional argument that can be used to allow labels for associated counters (either all or only a specified list of counters), for more on this see \refCom{label} in \namecref{subsec::associated_counters_experimental} \nameref{subsec::associated_counters_experimental}.
\end{docKey}
-
+\begin{docKey}{standardcounterformats}{=\meta{choice=on/off}}{initially \meta{on}}\CHDocNew{1.4}
+This key enables (\meta{on}) or disables (\meta{off}) the definition of the standard counter formats to be used in the macro \refCom{CounterFormat}.
+\end{docKey}
\clearpage
\part{Tools for counters}
@@ -903,23 +909,36 @@ The package \CHDocPackage{chngcntr} offers the possibility of add or remove coun
\subsection[Addition and Removal]{Addition and Removal of counters from the reset list}\CHDocNew{1.0}
-\begin{docCommand}[before={\CHDocNew{1.0}}\par]{RemoveFromReset}{\marg{counter name}\marg{driver counter name}}
-This macro removes the counter given in the first argument from the reset list of the driver counter given in the 2nd argument.
+\begin{docCommand}[before={\CHDocNew{1.0}\CHDocUpdate{1.4}}\par]{RemoveFromReset}{\marg{counter name1, counter name2,\dots}\marg{driver counter name}}
+This macro removes the counters given in the comma separated list in the first argument from the reset list of the driver counter given in the 2nd argument.
If the 2nd argument does not point to a \LaTeXe\ counter name an error message is shipped and the compilation fails.
\end{docCommand}
-\begin{docCommand}[before={\CHDocNew{1.0}}]{RemoveFromFullReset}{\marg{counter name}\marg{driver counter name}}
-This macro removes the counter given in the first argument and all of its own reset list from the reset list of the driver counter given in the 2nd argument.
+\begin{docCommand}[before={\CHDocNew{1.0},\CHDocUpdate{1.4}}\par]{RemoveFromFullReset}{\marg{counter name1, counter name2,\dots}\marg{driver counter name}}
+This macro removes the counters given in the comma separated list in the first argument and all of its own reset list from the reset list of the driver counter given in the 2nd argument.
If the 2nd argument does not point to a \LaTeXe\ counter name an error message is shipped and the compilation fails.
\end{docCommand}
-\begin{docCommand}[before={\CHDocNew{1.0}}]{AddToReset}{\marg{counter name}\marg{driver counter name}}
-This macro adds the counter given in the first argument to the reset list of the driver counter given in the 2nd argument.
+\begin{docCommand}[before={\CHDocNew{1.4}}]{ClearCounterResetList}{\marg{driver counter name}}
+This macro removes all counters of the given driver counter reset list. The individual counter formatting macros \cs{theX} are reset both for the driver counter as well as the counters in the reset list to use the \cs{arabic} standard output macro. \texttt{X} means some arbitray \LaTeX2e\ counter name.
+
+If the resetting shall not be applied, use \refCom{ClearCounterResetList*} instead.
+\end{docCommand}
+
+\begin{docCommand}[before={\CHDocNew{1.4}}]{ClearCounterResetList*}{\marg{driver counter name}}
+ This behaves like \refCom{ClearCounterResetList} but does \textbf{not} reset the relevant \cs{theX} macros.
+\end{docCommand}
+
+
+\begin{docCommand}[before={\CHDocNew{1.0}\CHDocUpdate{1.4}}]{AddToReset}{\marg{counter name1, counter name2,\dots}\marg{driver counter name}}
+This macro adds the counters given in the comma separated list in the first argument to the reset list of the driver counter given in the 2nd argument.
If the 2nd argument does not point to a \LaTeXe\ counter name an error message is shipped and the compilation fails.
+
+An accidental specificiation of the driver counter to be added to its own reset list is ignored internally.
\end{docCommand}
@@ -1139,6 +1158,14 @@ The 2nd argument value should hold a macro with any number of arguments, but the
\end{dispExample}
+\begin{docCommand}[before={\CHDocNew{1.4}}\par]{LoopCounterResetList}{\marg{counter name}\marg{counter operation macro}}
+This macro will perform the same action on the reset list of a the counter name given as first argument, the action is a control sequence name specified by the in the second mandatory argument. The loop provides all counters on the reset list of a counter.
+
+As of version \packageversion\ the counter operation macro must have two mandatory arguments, the second one is meant for the current counter in the loop.
+
+Do not confuse this command with \refCom{LoopFullCounterResetList} which tracks all counters recursively on the reset list, so \refCom{LoopCounterResetList} steeps only level down in the reset list hierarchy.
+\end{docCommand}
+
\begin{docCommand}[before={\CHDocNew{1.0}}\par]{LoopFullCounterResetList}{\marg{counter name}\marg{counter operation macro}}
This macro determines the full reset list of a counter, i.e. it cascades down the reset list and tracks the reset lists of all 'sub'-counters too and performs the counter operation macro on this.
\begin{codeoptionsenum}
@@ -1154,14 +1181,63 @@ See the macro \refCom{CounterFullResetList} for more information about the inter
\end{docCommand}
+
+\begin{docCommand}[before={\CHDocNew{1.4}}\par]{CounterWithin}{\marg{counter nameA, counter nameB,\dots}\marg{drivercounter}}
+ This macro sets all counters nameA, nameB, \dots to the reset list of the \marg{drivercounter} and redefines the corresponding macros \cs{thenameA}, etc. to be prepended with \cs{thedrivercounter}, i.e. \verb!\CounterWithin{equation}{section}! would mean that \verb!\theequation! expands to \verb!\thesection.\arabic{section}!
+
+ The default format for the counter output is arabic numbers, i.e. \cs{arabic} will be used.
+
+If the macros \cs{thenameA} etc. should not be changed, use the starred version of this command: \refCom{CounterWithin*}.
+
+ \begin{marker}
+ Please note that the redefinition of \cs{thenameA} etc. is only local, i.e. it is group safe.
+ \end{marker}
+\end{docCommand}
+
+\begin{docCommand}[before={\CHDocNew{1.4}}\par]{CounterWithin*}{\marg{counter nameA, counter nameB,\dots}\marg{drivercounter}}
+ This macro sets all counters nameA, nameB, \dots to the reset list of the \marg{drivercounter}, but does not change the corresponding macros \cs{thenameA}, etc. at all.
+
+ The default format for the counter output is arabic numbers, i.e. \cs{arabic} will be used.
+
+ If the macros \cs{thenameA} etc. should be changed, use non-starred version of this command: \refCom{CounterWithin}.
+
+\end{docCommand}
+
+
+\begin{docCommand}[before={\CHDocNew{1.4}}\par]{CounterWithout}{\marg{counter nameA, counter nameB,\dots}\marg{drivercounter}}
+ This macro removes all counters nameA, nameB, \dots from the reset list of the \marg{drivercounter} and redefines the corresponding macros \cs{thenameA}, etc. without \cs{thedrivercounter}, i.e. \verb!\CounterWithout{equation}{section}! would mean that \verb!\theequation! expand to \verb!\arabic{section!
+
+ The default format for the counter output is arabic numbers, i.e. \cs{arabic} will be used.
+
+ If the macros \cs{thenameA} etc. should not be changed, use the starred version of this command: \refCom{CounterWithout*}.
+
+ \begin{marker}
+ Please note that the redefinition of \cs{thenameA} etc. is only local, i.e. it is group safe.
+ \end{marker}
+
+\end{docCommand}
+
+\begin{docCommand}[before={\CHDocNew{1.4}}\par]{CounterWithout*}{\marg{counter nameA, counter nameB,\dots}\marg{drivercounter}}
+ This macro removes all counters nameA, nameB, \dots from the reset list of the \marg{drivercounter}, but does not redefine the corresponding macros \cs{thenameA}, etc.
+
+ If the macros \cs{thenameA} etc. should be changed, use the non-starred version of this command: \refCom{CounterWithout}.
+\end{docCommand}
+
+
+
+
+
\section{Counter output}\CHDocNew{0.7}
-Once in a while it might be necessary to provide counter output not only as integer numbers, letters or Roman figures but also using binary, octal or hexdecimal number output. The \CHDocPackage{fmtcount} package has support for this already -- here are some alternatives
+Once in a while it might be necessary to provide counter output not only as integer numbers, letters or Roman figures but also using binary, octal or hexdecimal number output. The \CHDocPackage{fmtcount} package has support for this already -- here are some alternatives.
+
+\subsection{Extra counter output types}
+
\begin{marker}
None of the commands checks whether the argument refers to counter name.
\end{marker}
-\begin{docCommand}[doc new={\chdocextractversion{xassoccntversion0.7}}]{BinaryValue}{\marg{counter name}}% \CHDocNew{0.7}
+\begin{docCommand}[doc new={\chdocextractversion{xassoccntversion0.7}}]{BinaryValue}{\marg{counter name}}
This command will print the value of the counter using binary digits.
@@ -1186,6 +1262,162 @@ This command will print the value of the counter using octal digits.
\end{docCommand}
+\begin{docCommand}{xalphalph}{\marg{counter name}}\CHDocNew{1.4}
+This is allows to use more than 26 characters for the usual alphabet and prints the counter value with style \texttt{aa} etc. in the same manner as the \CHDocPackage{alphalph} does, but with the \cs{int\_to\_alph:n} macro from the \CHDocPackage{expl3} bundle. For usage with uppercase characters see \refCom{xAlphAlph}.
+\end{docCommand}
+
+\begin{docCommand}{xAlphAlph}{\marg{counter name}}\CHDocNew{1.4}
+This is allows to use more than 26 characters for the usual alphabet and prints the counter value with style \texttt{AA} etc. in the same manner as the \CHDocPackage{alphalph} does, but with the \cs{int\_to\_Alph:n} macro from the \CHDocPackage{expl3} bundle. For usage with uppercase characters see \refCom{xalphalph}.
+\end{docCommand}
+
+\subsection{Quick counter output changes}\CHDocNew{1.4}
+
+
+\begin{docCommand}{CounterFormat}{\oarg{options}\marg{counter1!formatname1,counter2!formatname2,\dots }}\CHDocNew{1.4}
+
+\begin{marker}
+ This macro needs the package option \refKey{standardcounterformats} to be activated with \meta{standardcounterformats=on}, which is the default.
+\end{marker}
+
+\begin{codeoptionsenum}
+\item \oarg{options}
+ \begin{docKey}[][]{recursive}{=\meta{true/false}}{default: false}
+ If this key is set, the same counter format is used for the relevant counter and its resetting counters, i.e. the macro will pursue the reset counter list chain and recursively adds \cs{the...} to the output format of \cs{thenameA} etc.
+ \begin{marker}
+ Since the \meta{recursive} option needs information on the parent counters, the macro \refCom{GetAllResetLists} must have been called before \refCom{CounterFormat} with this option can be applied. In order to provide the most recent information (which includes recently added counters or changed resetting levels), use \refCom{GetAllResetLists} just before \refCom{CounterFormat}.
+ \end{marker}
+ \end{docKey}
+ \begin{docKey}[][]{separator}{=\meta{separator character/string}}{default: !}
+ Specifies the separator that is used to split the counter name from the format, e.g. \meta{chapter!R} where \meta{chapter} is the counter name and \meta{R} will be recognized as a counter format, meaning \cs{Roman} here, see \cref{table--predefined-counter-formats} for a list of predefined counter formats.
+
+ \begin{marker}
+ The chosen separator must be the same for all counters in the given list of the 2nd argument (see below) and mustn't occur in the counter name itself\footnote{It is not recommended to use counter names with non alphabetic characters anyway.}.
+ \end{marker}
+ \end{docKey}
+ \item \marg{counter1!formatname1,counter2!formatname2,\dots}
+ A comma separated list of counters with a given format name, each separated with a separator charactor, default is \meta{!}. If the format is omitted, the default format is \cs{arabic}, i.e. arabic numbers are used.
+ \end{codeoptionsenum}
+
+\end{docCommand}
+
+\begin{table}[htpb]
+Currently following counter formats shorthands and their output macros are stored in \cs{AtBeginDocument} if the package option \refKey{standardcounterformats} is set to on, which is the default behaviour of the package.
+
+\centering
+\begin{tabular}{ll}
+ a & \cs{alph} \tabularnewline
+ A & \cs{Alph} \tabularnewline
+ aa & \refCom{xalphalph} \tabularnewline
+ AA & \refCom{xAlphAlph} \tabularnewline
+ b & \refCom{BinaryValue} \tabularnewline
+ h & \refCom{hexValue} \tabularnewline
+ H & \refCom{HexValue} \tabularnewline
+ n & \cs{arabic} \tabularnewline
+ o & \refCom{OctalValue} \tabularnewline
+ r & \cs{roman} \tabularnewline
+ R & \cs{Roman} \tabularnewline
+\end{tabular}
+\caption[List of predefined counter formats]{List of predefined counter format shorthands -- please note that \meta{n} has been used in order to allow \meta{a} to be used for output with lowercase characters.}\label{table--predefined-counter-formats}
+\end{table}
+
+\begin{dispExample*}{title=Simple usages of \refCom{CounterFormat},breakable}
+% Assume foobar is a defined counter
+\setcounter{foobar}{17}
+
+\CounterFormat{foobar!b}
+\thefoobar
+
+\CounterFormat{foobar!h}
+\thefoobar
+
+
+\CounterFormat{foobar!H}
+\thefoobar
+
+\CounterFormat{foobar!R}
+\thefoobar
+
+\setcounter{foobar}{30}
+
+\CounterFormat{foobar!aa}
+\thefoobar
+
+\CounterFormat{foobar!o}
+\thefoobar
+
+\CounterFormat{foobar!AA}
+\thefoobar
+
+
+\end{dispExample*}
+
+\begin{dispExample*}{title={Showing the \meta{recursive} option of \refCom{CounterFormat}},breakable}
+% All counters are using \arabic by default from \newcounter or \NewDocumentCounter
+\NewDocumentCounter{foolevelzero}
+\NewDocumentCounter{foolevelone}[foolevelzero]
+\NewDocumentCounter{fooleveltwo}[foolevelone]
+
+% Get the current reset lists! (Important}
+
+\GetAllResetLists
+
+% Now change to Hex format (!H) for all counters in the hierarchy.
+\CounterFormat[recursive]{fooleveltwo!H}
+
+\setcounter{foolevelzero}{20}% Should be 14
+\setcounter{foolevelone}{15}% Should be F
+\setcounter{fooleveltwo}{10}% Should be A
+
+\thefoolevelzero % -> 14
+
+\thefoolevelone % 14.F
+
+\thefooleveltwo % 14.F.A
+
+\end{dispExample*}
+
+
+\begin{docCommand}{StoreCounterFormats}{\oarg{options}\marg{formatshorthandA!formatmacroA,formatshorthandB!formatmacroB,\dots}}\CHDocNew{1.4}
+ Stores the counter formats separated by the separator charactor as given in the option to the global list. Existing formats will be overwritten if the format shorthand already exists. There is no warning about this!
+ The only handled option is \refKey{separator} and has the same meaning as in \refCom{CounterFormat}.
+
+ The formatmacro must be a command sequence with exactly one mandatory argument, which may not be specified in the format storage process.
+
+\begin{marker}
+ This macro will become a preamble-only command most likely.
+\end{marker}
+\end{docCommand}
+
+\begin{dispExample}
+ \StoreCounterFormats{foo!\Roman,foobarnice!\OctalValue}
+ \setcounter{foobar}{17}
+ \CounterFormat{foobar!foo}
+ \thefoobar
+
+ \CounterFormat{foobar!foobarnice}
+ \thefoobar
+\end{dispExample}
+
+
+
+
+\begin{docCommand}{AddCounterFormats}{\oarg{options}\marg{formatshorthandA!formatmacroA,formatshorthandB!formatmacroB,\dots}}\CHDocNew{1.4}
+ Adds the counter formats separated by the separator charactor as given in the option to the global list, similar to \refCom{StoreCounterFormats}. Existing formats will be overwritten if the format shorthand already exists. There is no warning about this!
+ The only handled option is \refKey{separator} and has the same meaning as in \refCom{CounterFormat}.
+
+ The formatmacro must be a command sequence with exactly one mandatory argument, which may not be specified in the format storage process.
+\end{docCommand}
+
+\begin{docCommand}{RemoveCounterFormats}{\oarg{options}\marg{formatshorthandA,formatshorthandB,\dots}}\CHDocNew{1.4}
+ Removes the given counter formats from the global list.
+
+ The optional argument is ignored as of version \packageversion.
+\end{docCommand}
+
+
+
+
+
\clearpage
\part{Features}
@@ -1521,7 +1753,6 @@ This commands tests, whether a given counter name is a driver counter and expand
-
\section[Counter backup/restoration]{Backup and restore of counter values}\CHDocNew{1.0}\label{section::new_backuprestore}
It might be necessary to interrupt the current sectioning, e.g. including another document's structure (an external paper, for example) such that the counting should start again and after finishing of the external structure the old values should be restored.
@@ -1593,6 +1824,7 @@ There is a default counter group for backup named "scratch", if no specific coun
\end{itemize}
\end{itemize}
+
\subsubsection{Core backup/restore macros}
\begin{docCommand}[before={\CHDocNew{1.0}}]{BackupCounterGroup}{\oarg{options}\marg{counter group name}}
@@ -1674,6 +1906,7 @@ It might be necessary to remove a certain backup state, i.e. a collection of cou
+
\subsubsection[Clearing backup groups]{Clearing and deleting backup counter groups}\label{subsubsec::clearingdeletingbackupcountergroups}
From time to time it might be necessary to remove counters from a group or to clear the whole group or remove even the whole group. Those operations can be achieved with \refCom{RemoveCountersFromBackupGroup}, \refCom{ClearBackupCounterGroups} and \refCom{DeleteBackupCounterGroups}. All macros remove at least all stored values belonging to a counter group. A \refCom{RestoreBackupCounterGroup} call does nothing after any of the mentioned macros have been issued.
@@ -1981,6 +2214,7 @@ This macro tests if a counter is under the administration of the periodic counte
\end{docCommand}
+
\section[Suspending and Resuming]{Suspending and resuming (associated) counters}\label{section::suspendedresumedcounters}
@@ -2123,7 +2357,9 @@ There are \number\totvalue{totalequations}~equations in here!
Similarly to the package \CHDocPackage{totcount} or the features of \CHDocPackage{totalcount} by Axel Sommerfeldt this package provides the possibility of defining a counter that stores its finally value to the auxiliary file and starts from this value then, if not set otherwise to another value.
-The declaration of a total counter is a preamble - only event and \refCom{NewTotalDocumentCounter} is a preamble-only command in order to prevent counter register confusion. If a certain existing counter should be treated with total counter features, use \refCom{RegisterTotalDocumentCounter} instead.
+The declaration of a total counter is a preamble - only event and \refCom{DeclareTotalDocumentCounter} is a preamble-only command in order to prevent counter register confusion. If a certain existing counter should be treated with total counter features, use \refCom{RegisterTotalDocumentCounter} instead.
+
+Use \refCom{NewTotalDocumentCounter} only in rare cases, if a total counter must be defined within the document body.
\begin{marker}
\tcbdocmarginnote{\bcbombe}The standard \LaTeXe\ commands \cs{stepcounter}, \cs{addtocounter} and \cs{setcounter} support the specification of a total counter, but \cs{refstepcounter} will fail since the usage of a total counter for labelling purposes is most probably of no use (as of version \packageversion)
@@ -2183,6 +2419,7 @@ This macro tests if a counter is under the administration of the total counter c
+
\begin{docCommand}{IsTotalCounterT}{\marg{counter name}\marg{true branch}}
This macro checks if a counter is under the administration of the total counter commands and expands to the code in the second argument if this is true.
\end{docCommand}
@@ -2207,6 +2444,8 @@ This macro checks if a counter is under the administration of the total counter
The features of using other \CHDocFiles{aux} files or a different external file as provided by \CHDocPackage{totcount} is not (yet) support as of version \packageversion.
\end{marker}
+
+
\section{Super total counters}\label{section:supertotalcounters} \tcbdocmarginnote{\tcbdocnew{2015-11-25}}
In addition to the concept of a total counter, there is also the possibility of using super total counters -- those counters survive the reset at the beginning of a compilation, i.e. the value of a super total counter might be stepped in each run and as such the number of compilation runs etc. can be tracked. The values of the last run are persistent as long as the \CHDocFileExt{.aux} file isn't deleted.
@@ -2219,9 +2458,14 @@ This macro defines a new counter (which mustn't exist before of course) and puts
\refKey{supertotal} -- this has the same meaning as in \refCom{RegisterTotalDocumentCounter} and defaults to \texttt{false}.
- \item \marg{total counter name1, total counter name2,\dots}: The names of the total counter, separated by a comma. This must not be the same like the name of any already existing counter. Internally another counter is defined which has a prefix to prevent name clashes with counter names defined by the package \CHDocPackage{totalcount}.
-\end{codeoptionsenum}
+ \item \marg{total counter name1, total counter name2,\dots}: The names of the total counter, separated by a comma. This must not be the same like the name of any already existing counter. Internally another counter is defined which has a prefix to prevent name clashes with counter names defined by the package \CHDocPackage{totcount}.
+ \end{codeoptionsenum}
+
+\end{docCommand}
+\begin{docCommand}{DeclareTotalDocumentCounter}{\oarg{options}\marg{total counter name1, total counter name2,\dots}}
+
+This is the preamble - only version of \refCom{NewTotalDocumentCounter} and should be preferred in most cases over that command.
If an already existing counter should be tracked with total counter features,
use \refCom{RegisterTotalDocumentCounter} instead.
@@ -2239,6 +2483,7 @@ This macro tests if a counter is under the administration of the super total cou
+
\begin{docCommand}{IsSuperTotalCounterT}{\marg{counter name}\marg{true branch}}
This macro checks if a counter is under the administration of the super total counter commands and expands to the code in the second argument if this is true.
\end{docCommand}
@@ -2262,6 +2507,7 @@ This macro checks if a counter is under the administration of the super total co
This package adds a counter of its own: \CHDocCounter{numberofruns} which is a super total counter and is stepped each compilation run. It's added in \cs{AtBeginDocument} and can be retrieved with \refCom{TotalValue}. Use the \refKey{nonumberofruns} package option to prevent the definition of this counter.
+
\section{Experimental features}\label{subsec::associated_counters_experimental}
@@ -2332,7 +2578,7 @@ This feature is experimental and only realized for the modified \refCom{label} c
This macro declares a possible list of hooks (commands) that should be executed \textbf{before} the traditional \cs{label} command is applied. If the hook name refers to some unknown macro, nothing is done.
-The hook names must be given with the \textbackslash as command sequence indicator, i.e. \cs{zlabel}, more than one macro name is possible by using comma as separator.
+The hook names must be given with the \textbackslash\ as command sequence indicator, i.e. \cs{zlabel}, more than one macro name is possible by using comma as separator.
As of version \packageversion\ the hook macro does not allow more than one argument, which is automatically used from the surrounding \cs{label} call and is the usual label name.
@@ -2343,7 +2589,7 @@ As of version \packageversion\ the hook macro does not allow more than one argum
This macro declares a possible list of hooks (commands) that should be executed after the traditional \cs{label} command is applied. If the hook name refers to some unknown macro, nothing is done.
-The hook names must be given with the \textbackslash as command sequence indicator, i.e. \cs{zlabel}, more than one macro name is possible by using comma as separator.
+The hook names must be given with the \textbackslash\ as command sequence indicator, i.e. \cs{zlabel}, more than one macro name is possible by using comma as separator.
As of version \packageversion\ the hook macro does not allow more than one argument, which is automatically used from the surrounding \cs{label} call and is the usual label name.
@@ -2424,6 +2670,20 @@ write this documentation.
\begin{itemize}[itemsep=15pt]
+\item \CHDocFullVersion{1.4}
+
+\begin{itemize}
+ \item Improved the core macros \cs{refstepcounter} and \cs{stepcounter} in order to fit the \CHDocPackage{expl3} and \CHDocPackage{xparse} changes of Februar - April 2017.
+ \item Added following experimental features:
+ \item \refCom{CounterFormat} with quick and possible recursive change of the counter output
+ \item \refCom{StoreCounterFormats}, \refCom{AddCounterFormats} and \refCom{RemoveCounterFormats} for defining own short hand counter formats.
+ \item Provided the macros \refCom{xalphalph} and \refCom{xAlphAlph} in order to allow counter output in the same manner as the \CHDocPackage{alphalph} does.
+ \item Added the macros \refCom{CounterWithin}, \refCom{CounterWithin*}, \refCom{CounterWithout} and \refCom{CounterWithout*} which provides a quicker access to add or remove counters from the reset list and changing the corresponding \cs{the...} macros.
+ \item Provided the \refCom{LoopCounterResetList} to perform the same action on all counters being in the reset list of a given counter.
+ \item New macros \refCom{ClearCounterResetList} and \refCom{ClearCounterResetList*} to remove all counters on first level of a driver counter.
+ \item Added the explanation (missing in previous versions) to the documentation that the \refCom{AddToReset}, \refCom{RemoveFromReset} and \refCom{RemoveFromFullReset} macros actually support a comma separated list of counter names for the first argument.
+\end{itemize}
+
\item \CHDocFullVersion{1.3}
\begin{itemize}
\item Provided the \refCom{LaTeXLabel} macro to access the non-xassoccnt version of the \refCom{label} command.
@@ -2510,7 +2770,6 @@ Improved \cs{stepcounter} to remove some incompatibilities with the \CHDocPackag
\item
\CHDocFullVersion{0.1}
-%Version: 0.1 \CHDocNew{0.1}
A major bug fixed due to some error in usage together with \CHDocPackage{calc} when the driven counters are not stepped any longer.
The culprit was in \CHDocPackage{assoccnt} that the counter reset list was not really disabled.
@@ -2527,7 +2786,7 @@ Improved \cs{stepcounter} to remove some incompatibilities with the \CHDocPackag
\renewcommand{\theHsection}{appendix.\thesection}
\renewcommand{\thesection}{\Alph{section}}
-Note: The \cs{DeclareAssociatedCounters} command have to be used in the preamble of the document. It's missing here for the sake of a compact example.
+Note: The \cs{DeclareAssociatedCounters} command has to be used in the preamble of the document. It's missing here for the sake of a compact example.
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.pdf
index 40000678198..aeb41206090 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.tex
index a7097a65c7c..85e81d54865 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Driver file for xassoccnt.sty
%%
%%
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.pdf
index 43b6bd68345..4965ef90735 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.tex
index 1fb419b065d..87e286d0059 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for xassoccnt.sty
%%
%%
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.pdf
index 137271c11c5..a721a8a88a3 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.tex
index 93f29e8db31..0fefab49b03 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_getparentcounter_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for determing the parent counter of a counter and referring to it file for xassoccnt.sty
%%
%%
@@ -43,10 +43,10 @@
}
\makeatother
+\usepackage{xparse}
-\usepackage{xparse}
\makeatletter
\ExplSyntaxOn
@@ -143,10 +143,11 @@
\section{Section Two.One}
As you may have noticed, \parentCref{mysection} is useless.
-
+
\chapter{Chapter Three}
\section{Section Three.One} %
\section{Section Three.Two}\label{othersection}
-\end{document} \ No newline at end of file
+\end{document}
+
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.pdf
index b35903e19a5..bdf13e38fe2 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.tex
index a3e2321d1f3..8dccef86f67 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_label_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file the the usage of labels with associated counters file for xassoccnt.sty
%%
%%
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.pdf
new file mode 100644
index 00000000000..1a021978908
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.tex
new file mode 100644
index 00000000000..cb00496a2f7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_parentcounterchain_example.tex
@@ -0,0 +1,94 @@
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
+%% Example file for determing the parent counter chain of a counter file for xassoccnt.sty
+%%
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2017 by Dr. Christian Hupfer <typography dot with dot latex at gmail dot com>
+%% -------------------------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%%
+%% This work has the LPPL maintenance status `author-maintained`
+%%
+%%
+
+\documentclass{book}
+%\usepackage{mathtools}
+
+\usepackage[utf8]{inputenc}
+
+
+
+\usepackage[standardcounterformats=on]{xassoccnt}
+
+
+\AddCounterFormats{H!\HexValue}
+
+
+\setcounter{secnumdepth}{6}
+
+\GetAllResetLists
+
+%\CounterWithout{subparagraph}{paragraph}
+\begin{document}
+
+ \DeclareLanguageMappings{ngerman}{%
+ part;;Teil;;Teile;;Teil;;Teile,
+ chapter;;Kapitel;;,
+ section;;Abschnitt;;Abschnitte,
+ subsection;;Unterabschnitt;;Unterabschnitte;;,
+ subsubsection,
+ Absatz,
+ subsubparagraph;;Einrückung,
+ equation,
+ table,
+ footnote,
+ page,
+ figure;;%figure;;figures;;Figure;;Figures
+ }
+
+ \ShowLanguageMappings{ngerman}
+
+
+\xassingularname{ngerman}{part}
+
+\setcounter{chapter}{3}
+
+
+%\CounterFormat[recursive]{subparagraph!n}
+
+\CounterFormat{subparagraph!H}
+
+
+
+\chapter{The chapter}
+
+\section{The section}
+
+\subsection{The subsection}
+
+\subsubsection{The subsubsection}
+
+\setcounter{paragraph}{2}
+\setcounter{subsubsection}{7}
+\setcounter{subsection}{5}
+\setcounter{section}{2}
+
+\paragraph{The paragraph}
+
+\setcounter{subparagraph}{128}
+
+\subparagraph{A subparagraph}
+
+
+
+%\GetParentCounter{paragraph}
+
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.pdf
index 4af97ba7c5c..683db9c9978 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.tex
index 827d72a1b9b..5059fc2a590 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_periodiccounters_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for periodic counters file for xassoccnt.sty
%%
%%
@@ -47,7 +47,7 @@ Adding a value of 4 again:
Value of foocntr is \thefoocntr\ now!
Now prevent the wrapping
-\addtocounter{foocntr}{10}[wrap=false] % Is it 13? No, it is 11 % 8 = 3
+\addtocounter{foocntr}{10}[wrap=false] % Is it 13? Yes, it is, since wrapping is prevented.
Value of foocntr is \thefoocntr\ now!
@@ -56,7 +56,6 @@ Value of foocntr is \thefoocntr\ now!
\section{My nice section \x}
}
-
\clearpage
\ChangePeriodicCounterCondition[reset=false]{section}{5}%
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.pdf
index 8555d6a643b..e0d3652b1c3 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex
index ff23de95e9c..88302857204 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for reset list features file for xassoccnt.sty
%%
%%
@@ -22,16 +22,27 @@
\documentclass{book}
\usepackage{chngcntr}
-
+\usepackage{alphalph}
\usepackage{xassoccnt}
\DeclareDocumentCounter{dummyctra}[chapter]
+\DeclareDocumentCounter{dummyctrb}
+
+
+
\newcommand{\showfullresetlist}[1]{%
\item Counter name: #1 \hfill \csname the#1\endcsname%\leavevmode%
}
+\usepackage{hyperref}
+
+
+
\begin{document}
+
+\CounterFormat{dummyctrb!o}
+
\tableofcontents
\chapter{First}
@@ -45,6 +56,7 @@
\caption{A dummy figure}
\end{figure}
+Removing the section counter from the chapter reset list!
\RemoveFromFullReset{section}{chapter}
@@ -63,10 +75,18 @@
\AddToReset{section}{chapter}
+\CounterWithin{dummyctrb}{chapter}
+
+
+\CounterWithout*{section}{chapter}
+
\chapter{Third Chapter}
\section{First section in 3rd chapter}
+
+\setcounter{dummyctrb}{4}
+
\begin{itemize}
\LoopFullCounterResetList{chapter}{\showfullresetlist}
\end{itemize}
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.pdf
new file mode 100644
index 00000000000..acaea22a326
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.tex
new file mode 100644
index 00000000000..34bca0a94c5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetloop_example.tex
@@ -0,0 +1,80 @@
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
+%% Example file for looping through the reset list file for xassoccnt.sty
+%%
+%%
+%% -------------------------------------------------------------------------------------------
+%% Copyright (c) 2017 by Dr. Christian Hupfer <typography dot with dot latex at gmail dot com>
+%% -------------------------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%%
+%% This work has the LPPL maintenance status `author-maintained`
+%%
+%%
+
+\documentclass{book}
+
+\usepackage{xassoccnt}
+
+\usepackage{chngcntr}
+
+
+\makeatletter
+
+\AtBeginDocument{%
+ \let\latex@@chapter\chapter
+ \RenewDocumentCommand{\chapter}{sO{#3}m}{%
+ \IfBooleanTF{#1}{%
+ \latex@@chapter*{#3}%
+ }{%
+ \ifnogobblechapter
+ \latex@@chapter[#2]{#3}
+ \fi
+ }%
+ }
+ }
+\makeatother
+
+\newcommand{\counterwithoutwrapper}[2]{%
+ \counterwithout{#2}{#1}%
+}
+
+\newif\ifnogobblechapter
+\nogobblechapterfalse
+
+\usepackage{hyperref}
+
+\begin{document}
+
+\ifnogobblechapter
+\else
+\ClearCounterResetList*{chapter}
+%\LoopCounterResetList{chapter}{\counterwithoutwrapper}
+\fi
+
+\tableofcontents
+
+\chapter[Foo entry to ToC]{Foo Chapter}
+
+\section{A subsection of a gobbled chapter}
+
+\begin{figure}
+ \caption{A figure caption}
+\end{figure}
+
+\chapter{Another chapter}
+
+\begin{figure}
+ \caption{Another figure caption}
+\end{figure}
+
+Some other content
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.pdf
index 044026ab36b..56ca09de35d 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.tex
index be3ebae7ed7..2c768e46a04 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_suspendedcounters_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for suspended counters file for xassoccnt.sty
%%
%%
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.pdf b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.pdf
index 08576d9c494..06c564eec58 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.pdf
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.tex
index e3a3f2cb29f..6e736b3f077 100644
--- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.tex
+++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_totalcounters_example.tex
@@ -1,4 +1,4 @@
-%% LaTeX package xassoccnt - version 1.3 (2017/03/05 -- 18:08:47)
+%% LaTeX package xassoccnt - version 1.4 (2017/04/30 -- 00:47:05)
%% Example file for total counters file for xassoccnt.sty
%%
%%