Debian Codegraph @

texmf-dist/doc/latex/xassoccnt/xassoccnt_counterformats_example.tex

raw
1 %% LaTeX package xassoccnt - version 2.0 (2021/11/21 -- 12:14:58)
2 %% Example file for defining new counter formats file for xassoccnt.sty
3 %%
4 %%
5 %% -------------------------------------------------------------------------------------------
6 %% Copyright (c) 2017 -- 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{article}
23
24 \newcounter{foobar}
25
26
27 \usepackage{xassoccnt}
28
29
30 \begin{document}
31
32
33 %\RemoveCounterFormats{b}
34
35
36 \setcounter{foobar}{17}
37
38 \CounterFormat{foobar!b}
39 \thefoobar
40
41 \CounterFormat{foobar!h}
42 \thefoobar
43
44
45 \CounterFormat{foobar!H}
46 \thefoobar
47
48 \CounterFormat{foobar!R}
49 \thefoobar
50
51 \setcounter{foobar}{30}
52
53 \CounterFormat{foobar!aa}
54 \thefoobar
55
56 \CounterFormat{foobar!o}
57 \thefoobar
58
59 \CounterFormat{foobar!AA}
60 \thefoobar
61
62 \end{document}
63
64