summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_resetlist_example.tex24
1 files changed, 22 insertions, 2 deletions
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}