diff options
author | Karl Berry <karl@freefriends.org> | 2015-11-15 23:54:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-11-15 23:54:09 +0000 |
commit | 3c77a0b2cd0c8da653ad55d5b6c0c44a567e249f (patch) | |
tree | 835eadf598cc1073a73d354a4e72f3a92e706710 /Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex | |
parent | 3dc8864da1f30b905db0e9a10a5cad3478907bab (diff) |
xassoccnt (14nov15)
git-svn-id: svn://tug.org/texlive/trunk@38868 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex | 50 |
1 files changed, 37 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex index 3a5b64b14dc..2d0d8f5fd8b 100644 --- a/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex +++ b/Master/texmf-dist/doc/latex/xassoccnt/xassoccnt_driver.tex @@ -1,5 +1,5 @@ -%% LaTeX package xassoccnt driver file - version 0.1 (2015/11/07) -%% +%% LaTeX package xassoccnt - version 0.2 (2015/11/14 -- 16/08/33) +%% Driver file for xassoccnt.sty %% %% %% ------------------------------------------------------------------------------------------- @@ -14,20 +14,19 @@ %% 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'. %% -%% This work consists of all files listed in README +%% This work has the LPPL maintenance status `author-maintained` +%% %% - \documentclass{book} \usepackage{xcolor} - +\usepackage{totcount} \usepackage{calc} \usepackage[autodefinecounters=true]{xassoccnt} -\usepackage{totcount} + \usepackage{hyperref} \usepackage{cleveref} @@ -35,15 +34,15 @@ \newcounter{totalpages} \newtotcounter{totalsections} \newcounter{othersections} - +\newtotcounter{totaltables} \DeclareAssociatedCounters[autodefine=none]{section}{totalsections,othersections} -\AddAssociatedCounters[autodefine=associated]{section}{totalsections} +\AddAssociatedCounters{section}{totalsections} \DeclareAssociatedCounters{page}{totalpages} -\DeclareAssociatedCounters[autodefine=associated,sloppy=false]{table}{totaltables} +\DeclareAssociatedCounters{table}{totaltables} @@ -61,6 +60,16 @@ In \cref{section::dummylabel} we will see that \end{table} +\begin{table} +\caption{table} +\end{table} + + +\begin{table} +\caption{table} +\end{table} + + \section{Other} \section{Third} @@ -82,7 +91,7 @@ In \cref{section::dummylabel} we will see that \section{First section of 2nd chapter} \label{section::dummylabel} -\thesection\ \total{totalsections}\ \theothersections\ \thetotaltables\ +\thesection\ \total{totalsections}\ \theothersections\ \fbox{\color{blue}{\thetotaltables}} \IsSuspendedCounter{totalsections}{Yes, it's suspended}{Nope, it's not suspended} @@ -114,7 +123,7 @@ Value of counterother: \thecounterother -\thesection\ \thetotalsections\ \theothersections\ \thetotaltables\ +\thesection\ \thetotalsections\ \theothersections\ \fbox{\color{blue}{\thetotaltables}}\ \SyncCounters[onlycounters={totalsections}]{section} @@ -133,7 +142,22 @@ Value of counterother: \thecounterother \item There are \getresetlistcount\ counters in the reset list of chapter \item \IfInResetListTF{chapter}{figure}{Yes, figure is in the reset list of chapter}{No, figure is not in the reset list of chapter} \item \IfInResetListTF{chapter}{page}{Yes, page is in the reset list of chapter}{No, page is not in the reset list of chapter} - \item Values: \thesection\ \thetotalsections\ \theothersections\ \thetotaltables\ \thecounterother. + \item Values: \thesection\ \total{totalsections}\ \theothersections\ \fbox{\color{blue}{\total{totaltables}}}\ \thecounterother. \end{itemize} +\begin{table} +\caption{table} +\end{table} + + +\chapter{First} + + +\begin{table} +\caption{table} +\end{table} + + + + \end{document}
\ No newline at end of file |