| 1 |
%% LaTeX package xassoccnt - version 2.0 (2021/11/21 -- 12:14:58) |
| 2 |
%% Example file for suspended counters file for xassoccnt.sty |
| 3 |
%% |
| 4 |
%% |
| 5 |
%% ------------------------------------------------------------------------------------------- |
| 6 |
%% Copyright (c) 2016 -- 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{book} |
| 23 |
|
| 24 |
\usepackage{xassoccnt} |
| 25 |
\usepackage{blindtext} |
| 26 |
|
| 27 |
|
| 28 |
\setcounter{secnumdepth}{4} |
| 29 |
\begin{document} |
| 30 |
\tableofcontents |
| 31 |
\listoffigures |
| 32 |
\listoftables |
| 33 |
|
| 34 |
|
| 35 |
\CascadeSuspendCounters{chapter} |
| 36 |
\chapter{The first chapter} |
| 37 |
\section{Foo} |
| 38 |
|
| 39 |
|
| 40 |
\begin{figure} |
| 41 |
|
| 42 |
\caption{A foo figure} |
| 43 |
\end{figure} |
| 44 |
|
| 45 |
\begin{table} |
| 46 |
\caption{A foo table} |
| 47 |
\end{table} |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
\subsection{My First subsection} |
| 52 |
\blindtext |
| 53 |
\section{Foobar} |
| 54 |
\subsection{Foobar subsection} |
| 55 |
\blindtext |
| 56 |
\subsubsection{Foobar Again} |
| 57 |
\blindtext |
| 58 |
|
| 59 |
|
| 60 |
\ResumeAllSuspendedCounters |
| 61 |
|
| 62 |
\chapter{Another chapter} |
| 63 |
|
| 64 |
|
| 65 |
\begin{figure} |
| 66 |
\caption{Another figure} |
| 67 |
\end{figure} |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
\SuspendCounters{chapter,section} |
| 72 |
|
| 73 |
\chapter{Yet another chapter} |
| 74 |
|
| 75 |
\section{Foo section in yet another chapter} |
| 76 |
|
| 77 |
\begin{figure} |
| 78 |
\caption{Another figure} |
| 79 |
\end{figure} |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
\end{document} |
| 84 |
|
| 85 |
|
| 86 |
\subsubsection{Foobar Again} |
| 87 |
\blindtext |
| 88 |
|
| 89 |
\subsection{Foobar subsection} |
| 90 |
\blindtext |
| 91 |
|
| 92 |
\subsubsection{Foobar Again} |
| 93 |
\blindtext |
| 94 |
|