Debian Codegraph @

texmf-dist/source/latex/uniquecounter/uniquecounter.dtx

raw
1 % \iffalse meta-comment
2 %
3 % File: uniquecounter.dtx
4 % Version: 2019/12/15 v1.4
5 % Info: Provide unlimited unique counter
6 %
7 % Copyright (C)
8 % 2009, 2011 Heiko Oberdiek
9 % 2016-2019 Oberdiek Package Support Group
10 % https://github.com/ho-tex/uniquecounter/issues
11 %
12 % This work may be distributed and/or modified under the
13 % conditions of the LaTeX Project Public License, either
14 % version 1.3c of this license or (at your option) any later
15 % version. This version of this license is in
16 % https://www.latex-project.org/lppl/lppl-1-3c.txt
17 % and the latest version of this license is in
18 % https://www.latex-project.org/lppl.txt
19 % and version 1.3 or later is part of all distributions of
20 % LaTeX version 2005/12/01 or later.
21 %
22 % This work has the LPPL maintenance status "maintained".
23 %
24 % The Current Maintainers of this work are
25 % Heiko Oberdiek and the Oberdiek Package Support Group
26 % https://github.com/ho-tex/uniquecounter/issues
27 %
28 % The Base Interpreter refers to any `TeX-Format',
29 % because some files are installed in TDS:tex/generic//.
30 %
31 % This work consists of the main source file uniquecounter.dtx
32 % and the derived files
33 % uniquecounter.sty, uniquecounter.pdf, uniquecounter.ins,
34 % uniquecounter.drv, uniquecounter-example.tex,
35 % uniquecounter-test1.tex, uniquecounter-test2.tex,
36 % uniquecounter-test3.tex.
37 %
38 % Distribution:
39 % CTAN:macros/latex/contrib/uniquecounter/uniquecounter.dtx
40 % CTAN:macros/latex/contrib/uniquecounter/uniquecounter.pdf
41 %
42 % Unpacking:
43 % (a) If uniquecounter.ins is present:
44 % tex uniquecounter.ins
45 % (b) Without uniquecounter.ins:
46 % tex uniquecounter.dtx
47 % (c) If you insist on using LaTeX
48 % latex \let\install=y\input{uniquecounter.dtx}
49 % (quote the arguments according to the demands of your shell)
50 %
51 % Documentation:
52 % (a) If uniquecounter.drv is present:
53 % latex uniquecounter.drv
54 % (b) Without uniquecounter.drv:
55 % latex uniquecounter.dtx; ...
56 % The class ltxdoc loads the configuration file ltxdoc.cfg
57 % if available. Here you can specify further options, e.g.
58 % use A4 as paper format:
59 % \PassOptionsToClass{a4paper}{article}
60 %
61 % Programm calls to get the documentation (example):
62 % pdflatex uniquecounter.dtx
63 % makeindex -s gind.ist uniquecounter.idx
64 % pdflatex uniquecounter.dtx
65 % makeindex -s gind.ist uniquecounter.idx
66 % pdflatex uniquecounter.dtx
67 %
68 % Installation:
69 % TDS:tex/generic/uniquecounter/uniquecounter.sty
70 % TDS:doc/latex/uniquecounter/uniquecounter.pdf
71 % TDS:doc/latex/uniquecounter/uniquecounter-example.tex
72 % TDS:source/latex/uniquecounter/uniquecounter.dtx
73 %
74 %<*ignore>
75 \begingroup
76 \catcode123=1 %
77 \catcode125=2 %
78 \def\x{LaTeX2e}%
79 \expandafter\endgroup
80 \ifcase 0\ifx\install y1\fi\expandafter
81 \ifx\csname processbatchFile\endcsname\relax\else1\fi
82 \ifx\fmtname\x\else 1\fi\relax
83 \else\csname fi\endcsname
84 %</ignore>
85 %<*install>
86 \input docstrip.tex
87 \Msg{************************************************************************}
88 \Msg{* Installation}
89 \Msg{* Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO)}
90 \Msg{************************************************************************}
91
92 \keepsilent
93 \askforoverwritefalse
94
95 \let\MetaPrefix\relax
96 \preamble
97
98 This is a generated file.
99
100 Project: uniquecounter
101 Version: 2019/12/15 v1.4
102
103 Copyright (C)
104 2009, 2011 Heiko Oberdiek
105 2016-2019 Oberdiek Package Support Group
106
107 This work may be distributed and/or modified under the
108 conditions of the LaTeX Project Public License, either
109 version 1.3c of this license or (at your option) any later
110 version. This version of this license is in
111 https://www.latex-project.org/lppl/lppl-1-3c.txt
112 and the latest version of this license is in
113 https://www.latex-project.org/lppl.txt
114 and version 1.3 or later is part of all distributions of
115 LaTeX version 2005/12/01 or later.
116
117 This work has the LPPL maintenance status "maintained".
118
119 The Current Maintainers of this work are
120 Heiko Oberdiek and the Oberdiek Package Support Group
121 https://github.com/ho-tex/uniquecounter/issues
122
123
124 The Base Interpreter refers to any `TeX-Format',
125 because some files are installed in TDS:tex/generic//.
126
127 This work consists of the main source file uniquecounter.dtx
128 and the derived files
129 uniquecounter.sty, uniquecounter.pdf, uniquecounter.ins,
130 uniquecounter.drv, uniquecounter-example.tex,
131 uniquecounter-test1.tex, uniquecounter-test2.tex,
132 uniquecounter-test3.tex.
133
134 \endpreamble
135 \let\MetaPrefix\DoubleperCent
136
137 \generate{%
138 \file{uniquecounter.ins}{\from{uniquecounter.dtx}{install}}%
139 \file{uniquecounter.drv}{\from{uniquecounter.dtx}{driver}}%
140 \usedir{tex/generic/uniquecounter}%
141 \file{uniquecounter.sty}{\from{uniquecounter.dtx}{package}}%
142 \usedir{doc/latex/uniquecounter}%
143 \file{uniquecounter-example.tex}{\from{uniquecounter.dtx}{example}}%
144 }
145
146 \catcode32=13\relax% active space
147 \let =\space%
148 \Msg{************************************************************************}
149 \Msg{*}
150 \Msg{* To finish the installation you have to move the following}
151 \Msg{* file into a directory searched by TeX:}
152 \Msg{*}
153 \Msg{* uniquecounter.sty}
154 \Msg{*}
155 \Msg{* To produce the documentation run the file `uniquecounter.drv'}
156 \Msg{* through LaTeX.}
157 \Msg{*}
158 \Msg{* Happy TeXing!}
159 \Msg{*}
160 \Msg{************************************************************************}
161
162 \endbatchfile
163 %</install>
164 %<*ignore>
165 \fi
166 %</ignore>
167 %<*driver>
168 \NeedsTeXFormat{LaTeX2e}
169 \ProvidesFile{uniquecounter.drv}%
170 [2019/12/15 v1.4 Provide unlimited unique counter (HO)]%
171 \documentclass{ltxdoc}
172 \usepackage{holtxdoc}[2011/11/22]
173 \begin{document}
174 \DocInput{uniquecounter.dtx}%
175 \end{document}
176 %</driver>
177 % \fi
178 %
179 %
180 %
181 % \GetFileInfo{uniquecounter.drv}
182 %
183 % \title{The \xpackage{uniquecounter} package}
184 % \date{2019/12/15 v1.4}
185 % \author{Heiko Oberdiek\thanks
186 % {Please report any issues at \url{https://github.com/ho-tex/uniquecounter/issues}}}
187 %
188 % \maketitle
189 %
190 % \begin{abstract}
191 % This package provides a kind of counter that provides unique
192 % number values. Several counters can be created by different names.
193 % The numeric values are not limited.
194 % \end{abstract}
195 %
196 % \tableofcontents
197 %
198 % \section{Documentation}
199 %
200 % \begin{declcs}{UniqueCounterNew} \M{name}
201 % \end{declcs}
202 % Macro \cs{UniqueCounterNew} creates a new unique counter \meta{name}.
203 % An error is thrown, if the counter already exists.
204 %
205 % \begin{declcs}{UniqueCounterCall} \M{name} \M{code}
206 % \end{declcs}
207 % Macro \cs{UniqueCounterCall} calls the given \meta{code} with a new
208 % value of counter \meta{name} as argument.
209 %
210 % \begin{declcs}{UniqueCounterIncrement} \M{name}
211 % \end{declcs}
212 % Macro \cs{UniqueCounterIncrement} generates a new value for the counter
213 % \meta{name}
214 % by incrementing by one (globally).
215 %
216 % \begin{declcs}{UniqueCounterGet} \M{name}
217 % \end{declcs}
218 % Expandable macro \cs{UniqueCounterGet} returns the current value
219 % of counter \meta{name}
220 %
221 % \subsection{Example}
222 %
223 % \begin{macrocode}
224 %<*example>
225 \documentclass{minimal}
226 \usepackage{uniquecounter}
227 \UniqueCounterNew{anchor}
228 \makeatletter
229 \newcommand*{\DefNewAnchorName}[2]{%
230 % #1 is unique counter value
231 % #2 is name of anchor
232 \@namedef{anchor@#2}{a#1}%
233 }
234 \newcommand*{\NewAnchorName}[1]{%
235 \UniqueCounterCall{anchor}\DefNewAnchorName{#1}%
236 }
237 \newcommand*{\PrintAnchorName}[1]{%
238 \@nameuse{anchor@#1}%
239 }
240 \begin{document}
241 \NewAnchorName{Top}%
242 \NewAnchorName{Left}%
243 \noindent
244 Top: \PrintAnchorName{Top}\\%
245 Left: \PrintAnchorName{Left}%
246 \end{document}
247 %</example>
248 % \end{macrocode}
249 %
250 % \StopEventually{
251 % }
252 %
253 % \section{Implementation}
254 %
255 % \begin{macrocode}
256 %<*package>
257 % \end{macrocode}
258 %
259 % \subsection{Reload check and package identification}
260 % Reload check, especially if the package is not used with \LaTeX.
261 % \begin{macrocode}
262 \begingroup\catcode61\catcode48\catcode32=10\relax%
263 \catcode13=5 % ^^M
264 \endlinechar=13 %
265 \catcode35=6 % #
266 \catcode39=12 % '
267 \catcode44=12 % ,
268 \catcode45=12 % -
269 \catcode46=12 % .
270 \catcode58=12 % :
271 \catcode64=11 % @
272 \catcode123=1 % {
273 \catcode125=2 % }
274 \expandafter\let\expandafter\x\csname [email protected]\endcsname
275 \ifx\x\relax % plain-TeX, first loading
276 \else
277 \def\empty{}%
278 \ifx\x\empty % LaTeX, first loading,
279 % variable is initialized, but \ProvidesPackage not yet seen
280 \else
281 \expandafter\ifx\csname PackageInfo\endcsname\relax
282 \def\x#1#2{%
283 \immediate\write-1{Package #1 Info: #2.}%
284 }%
285 \else
286 \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
287 \fi
288 \x{uniquecounter}{The package is already loaded}%
289 \aftergroup\endinput
290 \fi
291 \fi
292 \endgroup%
293 % \end{macrocode}
294 % Package identification:
295 % \begin{macrocode}
296 \begingroup\catcode61\catcode48\catcode32=10\relax%
297 \catcode13=5 % ^^M
298 \endlinechar=13 %
299 \catcode35=6 % #
300 \catcode39=12 % '
301 \catcode40=12 % (
302 \catcode41=12 % )
303 \catcode44=12 % ,
304 \catcode45=12 % -
305 \catcode46=12 % .
306 \catcode47=12 % /
307 \catcode58=12 % :
308 \catcode64=11 % @
309 \catcode91=12 % [
310 \catcode93=12 % ]
311 \catcode123=1 % {
312 \catcode125=2 % }
313 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
314 \def\x#1#2#3[#4]{\endgroup
315 \immediate\write-1{Package: #3 #4}%
316 \xdef#1{#4}%
317 }%
318 \else
319 \def\x#1#2[#3]{\endgroup
320 #2[{#3}]%
321 \ifx#1\@undefined
322 \xdef#1{#3}%
323 \fi
324 \ifx#1\relax
325 \xdef#1{#3}%
326 \fi
327 }%
328 \fi
329 \expandafter\x\csname [email protected]\endcsname
330 \ProvidesPackage{uniquecounter}%
331 [2019/12/15 v1.4 Provide unlimited unique counter (HO)]%
332 % \end{macrocode}
333 %
334 % \subsection{Catcodes}
335 %
336 % \begin{macrocode}
337 \begingroup\catcode61\catcode48\catcode32=10\relax%
338 \catcode13=5 % ^^M
339 \endlinechar=13 %
340 \catcode123=1 % {
341 \catcode125=2 % }
342 \catcode64=11 % @
343 \def\x{\endgroup
344 \expandafter\edef\csname uqc@AtEnd\endcsname{%
345 \endlinechar=\the\endlinechar\relax
346 \catcode13=\the\catcode13\relax
347 \catcode32=\the\catcode32\relax
348 \catcode35=\the\catcode35\relax
349 \catcode61=\the\catcode61\relax
350 \catcode64=\the\catcode64\relax
351 \catcode123=\the\catcode123\relax
352 \catcode125=\the\catcode125\relax
353 }%
354 }%
355 \x\catcode61\catcode48\catcode32=10\relax%
356 \catcode13=5 % ^^M
357 \endlinechar=13 %
358 \catcode35=6 % #
359 \catcode64=11 % @
360 \catcode123=1 % {
361 \catcode125=2 % }
362 \def\TMP@EnsureCode#1#2{%
363 \edef\uqc@AtEnd{%
364 \uqc@AtEnd
365 \catcode#1=\the\catcode#1\relax
366 }%
367 \catcode#1=#2\relax
368 }
369 \TMP@EnsureCode{33}{12}% !
370 \TMP@EnsureCode{39}{12}% '
371 \TMP@EnsureCode{42}{12}% *
372 \TMP@EnsureCode{43}{12}% +
373 \TMP@EnsureCode{46}{12}% .
374 \TMP@EnsureCode{47}{12}% /
375 \TMP@EnsureCode{91}{12}% [
376 \TMP@EnsureCode{93}{12}% ]
377 \TMP@EnsureCode{96}{12}% `
378 \edef\uqc@AtEnd{\uqc@AtEnd\noexpand\endinput}
379 % \end{macrocode}
380 %
381 % \begin{macrocode}
382 \begingroup\expandafter\expandafter\expandafter\endgroup
383 \expandafter\ifx\csname RequirePackage\endcsname\relax
384 \def\TMP@RequirePackage#1[#2]{%
385 \begingroup\expandafter\expandafter\expandafter\endgroup
386 \expandafter\ifx\csname ver@#1.sty\endcsname\relax
387 \input #1.sty\relax
388 \fi
389 }%
390 \TMP@RequirePackage{bigintcalc}[2007/11/11]%
391 \TMP@RequirePackage{infwarerr}[2007/09/09]%
392 \else
393 \RequirePackage{bigintcalc}[2007/11/11]%
394 \RequirePackage{infwarerr}[2007/09/09]%
395 \fi
396 % \end{macrocode}
397 %
398 % \begin{macro}{\uqc@IncNum}
399 % \begin{macrocode}
400 \begingroup\expandafter\expandafter\expandafter\endgroup
401 \expandafter\ifx\csname numexpr\endcsname\relax
402 \def\uqc@IncNum#1{%
403 \begingroup
404 \count@=\csname uqc@cnt@#1\endcsname\relax
405 \advance\count@\@ne
406 \expandafter\xdef\csname uqc@cnt@#1\endcsname{%
407 \number\count@
408 }%
409 \ifnum\count@=2147483647 %
410 \global\expandafter\let\csname uqc@inc@#1\endcsname
411 \uqc@IncBig
412 \fi
413 \endgroup
414 }%
415 \else
416 \def\uqc@IncNum#1{%
417 \expandafter\xdef\csname uqc@cnt@#1\endcsname{%
418 \number\numexpr\csname uqc@cnt@#1\endcsname+1%
419 }%
420 \ifnum\csname uqc@cnt@#1\endcsname=2147483647 %
421 \global\expandafter\let\csname uqc@inc@#1\endcsname
422 \uqc@IncBig
423 \fi
424 }%
425 \fi
426 % \end{macrocode}
427 % \end{macro}
428 % \begin{macro}{\uqc@IncBig}
429 % \begin{macrocode}
430 \def\uqc@IncBig#1{%
431 \expandafter\xdef\csname uqc@cnt@#1\endcsname{%
432 \expandafter\expandafter\expandafter
433 \BigIntCalcInc\csname uqc@cnt@#1\endcsname!%
434 }%
435 }
436 % \end{macrocode}
437 % \end{macro}
438 % \begin{macro}{\uqc@Def}
439 % \begin{macrocode}
440 \begingroup\expandafter\expandafter\expandafter\endgroup
441 \expandafter\ifx\csname newcommand\endcsname\relax
442 \def\uqc@Def#1{\def#1##1}%
443 \else
444 \def\uqc@Def#1{\newcommand*{#1}[1]}%
445 \fi
446 % \end{macrocode}
447 % \end{macro}
448 % \begin{macro}{\UniqueCounterNew}
449 % \begin{macrocode}
450 \uqc@Def\UniqueCounterNew{%
451 \expandafter\ifx\csname uqc@cnt@#1\endcsname\relax
452 \expandafter\xdef\csname uqc@cnt@#1\endcsname{0}%
453 \global\expandafter\let\csname uqc@inc@#1\endcsname\uqc@IncNum
454 \@PackageInfo{uniquecounter}{New unique counter `#1'}%
455 \else
456 \@PackageError{uniquecounter}{Unique counter `#1' is already defined}\@ehc
457 \fi
458 }
459 % \end{macrocode}
460 % \end{macro}
461 % \begin{macro}{\UniqueCounterIncrement}
462 % \begin{macrocode}
463 \uqc@Def\UniqueCounterIncrement{%
464 \expandafter\ifx\csname uqc@cnt@#1\endcsname\relax
465 \@PackageError{uniquecounter}{Unique counter `#1' is undefined}\@ehc
466 \else
467 \csname uqc@inc@#1\endcsname{#1}%
468 \fi
469 }
470 % \end{macrocode}
471 % \end{macro}
472 % \begin{macro}{\UniqueCounterGet}
473 % \begin{macrocode}
474 \uqc@Def\UniqueCounterGet{%
475 \csname uqc@cnt@#1\endcsname
476 }
477 % \end{macrocode}
478 % \end{macro}
479 % \begin{macro}{\UniqueCounterCall}
480 % \begin{macrocode}
481 \uqc@Def\UniqueCounterCall{%
482 \expandafter\ifx\csname uqc@cnt@#1\endcsname\relax
483 \@PackageError{uniquecounter}{Unique counter `#1' is undefined}\@ehc
484 \expandafter\uqc@Call\expandafter0%
485 \else
486 \UniqueCounterIncrement{#1}%
487 \expandafter\expandafter\expandafter\uqc@Call
488 \expandafter\expandafter\expandafter{%
489 \csname uqc@cnt@#1\expandafter\endcsname\expandafter
490 }%
491 \fi
492 }
493 % \end{macrocode}
494 % \end{macro}
495 % \begin{macro}{\uqc@Call}
496 % \begin{macrocode}
497 \long\def\uqc@Call#1#2{#2{#1}}%
498 % \end{macrocode}
499 % \end{macro}
500 %
501 % \begin{macrocode}
502 \uqc@AtEnd%
503 % \end{macrocode}
504 % \begin{macrocode}
505 %</package>
506 % \end{macrocode}
507 %% \section{Installation}
508 %
509 % \subsection{Download}
510 %
511 % \paragraph{Package.} This package is available on
512 % CTAN\footnote{\CTANpkg{uniquecounter}}:
513 % \begin{description}
514 % \item[\CTAN{macros/latex/contrib/uniquecounter/uniquecounter.dtx}] The source file.
515 % \item[\CTAN{macros/latex/contrib/uniquecounter/uniquecounter.pdf}] Documentation.
516 % \end{description}
517 %
518 %
519 % \paragraph{Bundle.} All the packages of the bundle `oberdiek'
520 % are also available in a TDS compliant ZIP archive. There
521 % the packages are already unpacked and the documentation files
522 % are generated. The files and directories obey the TDS standard.
523 % \begin{description}
524 % \item[\CTANinstall{install/macros/latex/contrib/uniquecounter.tds.zip}]
525 % \end{description}
526 % \emph{TDS} refers to the standard ``A Directory Structure
527 % for \TeX\ Files'' (\CTANpkg{tds}). Directories
528 % with \xfile{texmf} in their name are usually organized this way.
529 %
530 % \subsection{Bundle installation}
531 %
532 % \paragraph{Unpacking.} Unpack the \xfile{oberdiek.tds.zip} in the
533 % TDS tree (also known as \xfile{texmf} tree) of your choice.
534 % Example (linux):
535 % \begin{quote}
536 % |unzip oberdiek.tds.zip -d ~/texmf|
537 % \end{quote}
538 %
539 % \subsection{Package installation}
540 %
541 % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
542 % \docstrip\ archive. The files are extracted by running the
543 % \xfile{.dtx} through \plainTeX:
544 % \begin{quote}
545 % \verb|tex uniquecounter.dtx|
546 % \end{quote}
547 %
548 % \paragraph{TDS.} Now the different files must be moved into
549 % the different directories in your installation TDS tree
550 % (also known as \xfile{texmf} tree):
551 % \begin{quote}
552 % \def\t{^^A
553 % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
554 % uniquecounter.sty & tex/generic/uniquecounter/uniquecounter.sty\\
555 % uniquecounter.pdf & doc/latex/uniquecounter/uniquecounter.pdf\\
556 % uniquecounter-example.tex & doc/latex/uniquecounter/uniquecounter-example.tex\\
557 % uniquecounter.dtx & source/latex/uniquecounter/uniquecounter.dtx\\
558 % \end{tabular}^^A
559 % }^^A
560 % \sbox0{\t}^^A
561 % \ifdim\wd0>\linewidth
562 % \begingroup
563 % \advance\linewidth by\leftmargin
564 % \advance\linewidth by\rightmargin
565 % \edef\x{\endgroup
566 % \def\noexpand\lw{\the\linewidth}^^A
567 % }\x
568 % \def\lwbox{^^A
569 % \leavevmode
570 % \hbox to \linewidth{^^A
571 % \kern-\leftmargin\relax
572 % \hss
573 % \usebox0
574 % \hss
575 % \kern-\rightmargin\relax
576 % }^^A
577 % }^^A
578 % \ifdim\wd0>\lw
579 % \sbox0{\small\t}^^A
580 % \ifdim\wd0>\linewidth
581 % \ifdim\wd0>\lw
582 % \sbox0{\footnotesize\t}^^A
583 % \ifdim\wd0>\linewidth
584 % \ifdim\wd0>\lw
585 % \sbox0{\scriptsize\t}^^A
586 % \ifdim\wd0>\linewidth
587 % \ifdim\wd0>\lw
588 % \sbox0{\tiny\t}^^A
589 % \ifdim\wd0>\linewidth
590 % \lwbox
591 % \else
592 % \usebox0
593 % \fi
594 % \else
595 % \lwbox
596 % \fi
597 % \else
598 % \usebox0
599 % \fi
600 % \else
601 % \lwbox
602 % \fi
603 % \else
604 % \usebox0
605 % \fi
606 % \else
607 % \lwbox
608 % \fi
609 % \else
610 % \usebox0
611 % \fi
612 % \else
613 % \lwbox
614 % \fi
615 % \else
616 % \usebox0
617 % \fi
618 % \end{quote}
619 % If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's
620 % TDS installing feature, then some files can already be in the right
621 % place, see the documentation of \docstrip.
622 %
623 % \subsection{Refresh file name databases}
624 %
625 % If your \TeX~distribution
626 % (\TeX\,Live, \mikTeX, \dots) relies on file name databases, you must refresh
627 % these. For example, \TeX\,Live\ users run \verb|texhash| or
628 % \verb|mktexlsr|.
629 %
630 % \subsection{Some details for the interested}
631 %
632 % \paragraph{Unpacking with \LaTeX.}
633 % The \xfile{.dtx} chooses its action depending on the format:
634 % \begin{description}
635 % \item[\plainTeX:] Run \docstrip\ and extract the files.
636 % \item[\LaTeX:] Generate the documentation.
637 % \end{description}
638 % If you insist on using \LaTeX\ for \docstrip\ (really,
639 % \docstrip\ does not need \LaTeX), then inform the autodetect routine
640 % about your intention:
641 % \begin{quote}
642 % \verb|latex \let\install=y\input{uniquecounter.dtx}|
643 % \end{quote}
644 % Do not forget to quote the argument according to the demands
645 % of your shell.
646 %
647 % \paragraph{Generating the documentation.}
648 % You can use both the \xfile{.dtx} or the \xfile{.drv} to generate
649 % the documentation. The process can be configured by the
650 % configuration file \xfile{ltxdoc.cfg}. For instance, put this
651 % line into this file, if you want to have A4 as paper format:
652 % \begin{quote}
653 % \verb|\PassOptionsToClass{a4paper}{article}|
654 % \end{quote}
655 % An example follows how to generate the
656 % documentation with pdf\LaTeX:
657 % \begin{quote}
658 %\begin{verbatim}
659 %pdflatex uniquecounter.dtx
660 %makeindex -s gind.ist uniquecounter.idx
661 %pdflatex uniquecounter.dtx
662 %makeindex -s gind.ist uniquecounter.idx
663 %pdflatex uniquecounter.dtx
664 %\end{verbatim}
665 % \end{quote}
666 %
667 % \begin{History}
668 % \begin{Version}{2009/09/11 v1.0}
669 % \item
670 % First public version.
671 % \end{Version}
672 % \begin{Version}{2009/12/18 v1.1}
673 % \item
674 % Bug fix in \cs{UniqueCounterCall} for values \textgreater\ 9
675 % (bug report of Lev Bishop).
676 % \end{Version}
677 % \begin{Version}{2011/01/30 v1.2}
678 % \item
679 % Already loaded package files are not input in \hologo{plainTeX}.
680 % \end{Version}
681 % \begin{Version}{2016/05/16 v1.3}
682 % \item
683 % Documentation updates.
684 % \end{Version}
685 % \begin{Version}{2019/12/15 v1.4}
686 % \item
687 % Documentation updates.
688 % \end{Version}
689 % \end{History}
690 %
691 % \PrintIndex
692 %
693 % \Finale
694 \endinput