Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %
3 % File: footnoterange.dtx
4 % Version: 2026-01-19 v1.1c
5 % Info: References to ranges of footnotes
6 %
7 % Copyright (C) 2012 - 2026 by
8 % H.-Martin Münch <Martin dot Muench at Uni-Bonn dot de>
9 % Portions of code copyrighted by other people as marked;
10 % lines marked "FMi": code by Frank Mittelbach, thanks!
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.3c 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 Maintainer of this work is H.-Martin Münch.
25 %
26 % This work consists of the main source file footnoterange.dtx,
27 % the README, and the derived files
28 % footnoterange.sty, footnoterange.pdf,
29 % footnoterange.ins, footnoterange.drv,
30 % footnoterange-example.tex, footnoterange-example.pdf.
31 %
32 % "footnoterange" is available on CTAN:
33 % https://www.ctan.org/pkg/footnoterange
34 %
35 % Also a TDS.ZIP file is provided that contains all the files
36 % already sorted in a TDS tree:
37 % https://mirror.ctan.org/install/macros/latex/contrib/footnoterange.tds.zip
38 %
39 %<*ignore>
40 \begingroup
41 \catcode123=1 %
42 \catcode125=2 %
43 \def\x{LaTeX2e}%
44 \expandafter\endgroup
45 \ifcase 0\ifx\install y1\fi\expandafter
46 \ifx\csname processbatchFile\endcsname\relax\else1\fi
47 \ifx\fmtname\x\else 1\fi\relax
48 \else\csname fi\endcsname
49 %</ignore>
50 %<*install>
51 \input docstrip.tex
52 \Msg{**********************************************************************************}
53 \Msg{* Installation *}
54 \Msg{* Package: footnoterange 2026-01-19 v1.1c References to ranges of footnotes (HMM)*}
55 \Msg{**********************************************************************************}
56
57 \keepsilent
58 \askforoverwritefalse
59
60 \let\MetaPrefix\relax
61 \preamble
62
63 This is a generated file.
64
65 Project: footnoterange
66 Version: 2026-01-19 v1.1c
67 Info: References to ranges of footnotes
68
69 Copyright (C) 2012 - 2026 by
70 H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
71 Portions of code copyrighted by other people as marked;
72 lines marked "FMi": code by Frank Mittelbach, thanks!
73
74 This work may be distributed and/or modified under the
75 conditions of the LaTeX Project Public License, either
76 version 1.3c of this license or (at your option) any later
77 version. This version of this license is in
78 https://www.latex-project.org/lppl/lppl-1-3c.txt
79 and the latest version of this license is in
80 https://www.latex-project.org/lppl.txt
81 and version 1.3c or later is part of all distributions of
82 LaTeX version 2005-12-01 or later.
83
84 This work has the LPPL maintenance status "maintained".
85
86 The Current Maintainer of this work is H.-Martin Muench.
87
88 This work consists of the main source file footnoterange.dtx,
89 the README, and the derived files
90 footnoterange.sty, footnoterange.pdf,
91 footnoterange.ins, footnoterange.drv,
92 footnoterange-example.tex, footnoterange-example.pdf.
93
94 In memoriam
95 Claudia Simone Barth + 1996-01-30
96 Tommy Muench + 2014-01-02
97 Hans-Klaus Muench + 2014-08-24
98
99 \endpreamble
100 \let\MetaPrefix\DoubleperCent
101
102 \generate{%
103 \file{footnoterange.ins}{\from{footnoterange.dtx}{install}}%
104 \file{footnoterange.drv}{\from{footnoterange.dtx}{driver}}%
105 \usedir{tex/latex/footnoterange}%
106 \file{footnoterange.sty}{\from{footnoterange.dtx}{package}}%
107 \usedir{doc/latex/footnoterange}%
108 \file{footnoterange-example.tex}{\from{footnoterange.dtx}{example}}%
109 }
110
111 \catcode32=13\relax% active space
112 \let =\space%
113 \Msg{************************************************************************}
114 \Msg{*}
115 \Msg{* To finish the installation you have to move the following}
116 \Msg{* file into a directory searched by TeX:}
117 \Msg{*}
118 \Msg{* footnoterange.sty}
119 \Msg{*}
120 \Msg{* To produce the documentation run the file `footnoterange.drv'}
121 \Msg{* through (pdf)LaTeX, e.g.}
122 \Msg{* pdflatex footnoterange.drv}
123 \Msg{* makeindex -s gind.ist footnoterange.idx}
124 \Msg{* pdflatex footnoterange.drv}
125 \Msg{* makeindex -s gind.ist footnoterange.idx}
126 \Msg{* pdflatex footnoterange.drv}
127 \Msg{*}
128 \Msg{* At least three runs are necessary e.g. to get the}
129 \Msg{* references right!}
130 \Msg{*}
131 \Msg{* Happy TeXing!}
132 \Msg{*}
133 \Msg{************************************************************************}
134
135 \endbatchfile
136 %</install>
137 %<*ignore>
138 \fi
139 %</ignore>
140 %
141 % \section{The documentation driver file}
142 %
143 % The next bit of code contains the documentation driver file for
144 % \TeX , i.\,e., the file that will produce the documentation you
145 % are currently reading. It will be extracted from this file by the
146 % \texttt{docstrip} programme. That is, run \LaTeX{} on \texttt{docstrip}
147 % and specify the \texttt{driver} option when \texttt{docstrip}
148 % asks for options.
149 %
150 % \begin{macrocode}
151 %<*driver>
152 \NeedsTeXFormat{LaTeX2e}[2024-11-01]
153 \ProvidesFile{footnoterange.drv}%
154 [2026-01-19 v1.1c References to ranges of footnotes (HMM)]
155 \documentclass{ltxdoc}[2024/02/08]% v2.1j Standard LaTeX documentation class
156 \usepackage{holtxdoc}[2019/12/09]% v0.30 Private additional ltxdoc support (HO)
157 \hypersetup{%
158 pdfsubject={References to ranges of footnotes (HMM)},%
159 pdfkeywords={LaTeX, footnoterange, footnotes, footnote, reference},%
160 pdfencoding=auto,%
161 pdflang={en},%
162 breaklinks=true,%
163 linktoc=all,%
164 pdfstartview=FitH,%
165 pdfpagelayout=OneColumn,%
166 bookmarksnumbered=true,%
167 bookmarksopen=true,%
168 bookmarksopenlevel=3,%
169 pdfmenubar=true,%
170 pdftoolbar=true,%
171 pdfwindowui=true,%
172 pdfnewwindow=true%
173 }
174 \CodelineIndex
175 \hyphenation{docu-ment}
176 \begin{document}
177 \DocInput{footnoterange.dtx}%
178 \end{document}
179 %</driver>
180 % \end{macrocode}
181 % \fi
182 %
183 % \GetFileInfo{footnoterange.drv}
184 %
185 % \begingroup
186 % \def\x{\#,\$,\^,\_,\~,\ ,\&,\{,\},\%}%
187 % \makeatletter
188 % \@onelevel@sanitize\x
189 % \expandafter\endgroup
190 % \expandafter\DoNotIndex\expandafter{\x}
191 % \expandafter\DoNotIndex\expandafter{\string\ }
192 % \begingroup
193 % \makeatletter
194 % \lccode`9=32\relax
195 % \lowercase{%^^A
196 % \edef\x{\noexpand\DoNotIndex{\@backslashchar9}}%^^A
197 % }%^^A
198 % \expandafter\endgroup\x
199 % \DoNotIndex{\,,\@currentHref,\@fnsymbol,\@ifl@t@r,\@mpfn,\@textsuperscript,\addtocounter,\aftergroup,%
200 % \AlphAlph,\Alph,\alphalph,\arabic,\begin,\bigskip,\documentclass,\empty,\end,\fmtversion,%
201 % \fnr@aftergroup,\fnr@arabic,\fnr@first,\fnr@formatted,\fnr@mopt,\fnr@opt,\fnr@origfnmark,%
202 % \fnr@origfn,\fnrfnsymbol,\fnsymbolfnri,\fnsymbolfnr,\fnsymbol,\fnsymbolfnrx,\footnotemark,%
203 % \footnote,\footnotetext,\hbox,\href,\Hy@footnote@currentHref,\Hy@saved@currentHref,%
204 % \hyper@makecurrent,\hyperref,\IfDocumentMetadataF,\IfFormatAtLeastTF,\ifhmode,\ifHy@hyperfootnotes,%
205 % \IfPackageLoadedF,\IfPackageLoadedT,\IfPackageLoadedTF,\ifx,\ignorespaces,\item,\label,\listfiles,%
206 % \makeatletter,\makeatother,\medskip,\MessageBreak,\NeedsTeXFormat,\newalphalph,\NewCommandCopy,%
207 % \newcommand,\newcounter,\newenvironment,\newline,\newpage,\noindent,\nolinebreak,\normalfont,%
208 % \PackageError,\PackageInfo,\PackageWarning,\pagebreak,\pagenumbering,\par,\phantomsection,%
209 % \protected@edef,\protect,\ProvidesPackage,\ref,\RenewCommandCopy,\renewcommand,\Roman,\section,%
210 % \setcounter,\space,\spacefactor,\stepcounter,\textquotedblleft,\textquotedblright,\textsc,%
211 % \textsf,\texttt,\the,\thefootnote,\unskip,\url,\usepackage,\value,\verb}
212 %
213 % \title{The \xpackage{footnoterange} package}
214 % \author{H.-Martin Münch\\\xemail{Martin.Muench at Uni-Bonn.de}}
215 % \date{2026-01-19 v1.1c}
216 % \maketitle
217 %
218 % \begin{abstract}
219 % \noindent This package provides the environments |footnoterange| and
220 % |footnoterange*|. Multiple footnotes inside these environments
221 % are not referenced as e.\,g.\ %
222 % \makeatletter%
223 % \hbox{\textquotedblleft \@textsuperscript {\normalfont 1 2 3}\textquotedblright}
224 % but as \hbox{\textquotedblleft \@textsuperscript {\normalfont 1--3}\textquotedblright ,\ }
225 % \makeatother%
226 % i.\,e.~the range (from first to last referred footnote at that place) is given.
227 % Depending on loading of \xpackage{hyperref} and use of its |hyperfootnotes|-option
228 % the references are hyperlinked. (References to footnotes in |footnoterange*|
229 % are never hyperlinked.)
230 % The example additionally demonstrates how other footnote-number-representations
231 % (|\Roman|, |\roman|, |\Alph|, |\alph|, |\fnsymbol|) are possible, especially for
232 % more footnotes than letters in the alphabet or symbols in |fnsymbol|.
233 % Creation of smaller link boxes for footnotes is explained in the documentation.
234 % \end{abstract}
235 %
236 % \bigskip
237 %
238 % \noindent Disclaimer for web links: The author is not responsible for any contents
239 % referred to in this work unless having full knowledge of illegal contents.
240 % If any damage occurs by the use of information presented there,
241 % only the author of the respective pages might be liable,
242 % not the one who has referred to those pages.
243 %
244 % \tableofcontents
245 %
246 % \section{Introduction}
247 % This \LaTeX{} package provides the environments |footnoterange| and\newline
248 % |footnoterange*|. Multiple footnotes inside these environments are not referenced
249 % as e.\,g.\ %
250 % \makeatletter%
251 % \hbox{\textquotedblleft \@textsuperscript {\normalfont 1 2 3}\textquotedblright}
252 % but as \hbox{\textquotedblleft \@textsuperscript {\normalfont 1--3}\textquotedblright ,\ }
253 % \makeatother%
254 % i.\,e.~the range (from first to last referred footnote at that place) is given.
255 % Depending on loading of \xpackage{hyperref} and use of its |hyperfootnotes|-option
256 % the references are hyperlinked. References to footnotes in |footnoterange*|
257 % are never hyperlinked.\newline
258 % |\footnotemark\footnotetext| instead of |\footnote| is not supported inside
259 % |footnoterange| and |footnoterange*| environments.\newline
260 % The example additionally demonstrates how other footnote-number-representations
261 % (|\Roman|, |\roman|, |\Alph|, |\alph|, |\fnsymbol|) are possible, especially for
262 % more footnotes than letters in the alphabet or symbols in |fnsymbol|.\newline
263 % Creation of smaller link boxes for footnotes is explained in the following
264 % section Usage.
265 %
266 % \section{Usage}
267 % Just load the package placing
268 % \begin{quote}
269 % |\usepackage{footnoterange}|
270 % \end{quote}
271 % \noindent in the preamble of your \LaTeXe{} source file. There are no options to
272 % be used. The package should be loaded after \xpackage{hyperref} (if that package is used)
273 % and after any other package redefining footnotes. Usage of the |footnoterange| (or
274 % |footnoterange*|) environment is simple: Just encapsulate the footnotes, which shall
275 % be referred as range instead of referencing as single ones (see the example file).
276 %
277 % About hyperlinks:\newline
278 % Footnote-references in a |footnoterange*| environment are never hyperlinked.\newline
279 % Footnote-references in a |footnoterange| environment may be hyperlinked:
280 % \begin{itemize}
281 % \item When the \xpackage{hyperref} package is not loaded, they are not
282 % hyperlinked (naturally).
283 % \item When the \xpackage{hyperref} package is loaded, it depends on the
284 % |hyperfootnotes| option of the \xpackage{hyperref} package:
285 % \begin{itemize}
286 % \item With |hyperfootnotes=true|, the references are hyperlinked.
287 % \item With |hyperfootnotes=false|, the references are not hyperlinked.
288 % \end{itemize}
289 % \end{itemize}
290 % |\footnote|s inside of the |footnoterange|/{}|footnoterange*| environment
291 % can use the optional parameter, i.\,e.~|\footnote[42]{text}| even if this is the
292 % third footnote. When giving ranges as reference, this does not seem to be
293 % such a good idea, if this is not done consistently (i.\,e.~footnotes
294 % |[42], [43], [44]| resulting in 42--44 is OK,
295 % but |[42]| (original~2), unchanged~3, unchanged~4 resulting in
296 % 42--4 is confusing). A warning about these changed footnotemarks is written
297 % into the \xfile{.log}-file.
298 %
299 % When there is only a single footnote in a |footnoterange| environment,
300 % this does not produce some reference like %
301 % \makeatletter%
302 % \hbox{\textquotedblleft \@textsuperscript {\normalfont 7--7}\textquotedblright{},\ }%
303 % \makeatother%
304 % but only one footnotemark is used automatically. Because it is strange to use
305 % a |footnoterange| environment without a range of footnotes, an info is written
306 % into the \xfile{.log}-file about this.
307 %
308 % The usage of other footnote-number-representations
309 % (e.\,g.~\verb|\Roman|, \verb|\roman|, \verb|\Alph|, \verb|\alph|,
310 % \verb|\fnsymbol|) is also possible, but two things must be taken
311 % into account: The number of footnote references is restricted (for
312 % example with \verb|\Alph| only references A to Z are possible), which
313 % can be fixed e.\,g.~with the \url{https://ctan.org/pkg/alphalph} package
314 % (see footnoterange-example), and references to footnote-symbol-ranges
315 % (\verb|\fnsymbol|) might not be very clear.
316 % \pagebreak
317 %
318 % The link boxes for the footnotes span the line-height. If smaller boxes
319 % are wanted, this can be accomplished by:
320 % \begin{description}
321 % \item[-] making a copy of \texttt{footnoterange.sty}
322 % \item[-] renaming the copy to \texttt{footnoterangesb.sty}
323 % \item[-] in |\newcommand{\fnr@ifhyperfnrA}{...}| and
324 % |\newcommand{\fnr@ifhyperfnrN}{...}| removing the
325 % |\hyperref[fnr:\arabic\@mpfn]| and both |\hyperref[fnr:\fnr@first]|
326 % (while \emph{not} removing their arguments!)
327 % \item[-] replacing the first |\ref*| in |\newcommand{\fnr@ifhyperfnrA}{...}| and
328 % the first and second |\ref*| in |\newcommand{\fnr@ifhyperfnrN}{...}|
329 % by |\ref| (and saving the \texttt{.sty} file)
330 % \item[-] moving the \texttt{footnoterangesb.sty} into your private \texttt{texmf-local} tree
331 % \item[-] refreshing the file file name databases, for example, \TeX\,Live\ users
332 % run \verb|texhash| or \verb|mktexlsr|.
333 % \item[-] using |\usepackage{footnoterangesb}| instead of |\usepackage{footnoterange}|
334 % in your document.
335 % \item[-] Regular footnote(links) are \emph{not} changed by this!
336 % \end{description}
337 %
338 % \subsection*{Options}
339 % \indent The \xpackage{footnoterange} package takes no options.
340 %
341 % \section{Alternatives\label{sec:Alternatives}}
342 % The \xpackage{fnpct} (\url{https://ctan.org/pkg/fnpct}), 2021-01-21, v1.0,
343 % and newer \emph{supports ranges for multiple footnotes natively}.
344 % For older versions the setting of multiple footnotes (|\multfootnote|),
345 % suppressing of footnotemarks \hbox{(|*|),}
346 % and customizing the multi-footnote-separator \hbox{(|\setfnpct{mult-fn-sep={|
347 % \emph{something} |}}|)} can be combined with stepping of the footnote-counter
348 % to give a footnoterange:
349 %
350 % \begin{verbatim}
351 % \documentclass{article}
352 % \usepackage{hyperref}
353 % \usepackage{fnpct}
354 % \begin{document}
355 % The three little pigs built their houses
356 % out of straw\footnote{not to be confused with hay},
357 % sticks\footnote{or lumber according to some sources}
358 % and bricks%
359 % \makeatletter%
360 % \setfnpct{mult-fn-sep={--}}%
361 % \multfootnote{probably fired clay bricks\addtocounter\@mpfn{+1};%
362 % *or something else;%
363 % what do I know}. %
364 % \makeatother%
365 % \end{document}
366 % \end{verbatim}
367 %
368 % \noindent If you programmed or found another alternative, which is available at
369 % \url{https://www.CTAN.org/}, please send an e-mail to me with the name,
370 % location at CTAN, and a short notice, and I will probably list it here.
371 %
372 % \section{Example}
373 % \begin{macrocode}
374 %<*example>
375 \documentclass[british]{article}[2025/01/22]% v1.4n Standard LaTeX document class
376 \usepackage[extension=pdf,%
377 plainpages=false,%
378 pdfpagelabels=true,%
379 hyperindex=false,%
380 pdflang={en},%
381 pdftitle={footnoterange package example},%
382 pdfauthor={H.-Martin Muench},%
383 pdfsubject={Example for the footnoterange package},%
384 pdfkeywords={LaTeX, footnoterange},%
385 pdfview=FitH,%
386 pdfstartview=FitH,%
387 pdfpagelayout=OneColumn,%
388 hyperfootnotes=true%
389 ]{hyperref}[2025-07-12]% v7.01o Hypertext links for LaTeX
390
391 \usepackage{footnoterange}[2026-01-19]% v1.1c References to ranges of footnotes (HMM)
392
393 \IfPackageLoadedF{hyperref}{\usepackage{url}}
394
395 % For footnotes labelled after Z, z, and ¶ (Pilcrow character):
396 \usepackage{alphalph}[2019/12/09]% v2.6 Convert numbers to letters (HO)
397 \makeatletter
398 \NewCommandCopy{\fnrfnsymbol}{\@fnsymbol}
399 \makeatother
400 \newalphalph{\fnsymbolfnr}[mult]{\fnrfnsymbol}{5}
401
402 \listfiles
403 \begin{document}
404 \pagenumbering{arabic}
405 \section*{Example for footnoterange}
406
407 This example demonstrates the use of package\newline
408 \textsf{footnoterange}, v1.1c as of 2026-01-19,
409 references to ranges of footnotes (HMM).\newline
410 The package does not use options.\newline
411 \verb|footnoterange-example.pdf| can be created by\newline
412 \verb|pdflatex footnoterange-example.tex|,\newline
413 and \verb|footnoterange-example.tex| can be created by\newline
414 \verb|tex footnoterange.dtx|.\newline
415 \verb|footnoterange.dtx| is at
416 \url{https://ctan.org/pkg/footnoterange}.\newline
417
418 \noindent For more details please see the documentation!
419
420 This\footnote{Lorem} text bears a multiplicity of footnotes.
421 Because the \verb|hyperref| package is used with option
422 \verb|hyperfootnotes=true|, the footnotes
423 \begin{footnoterange}
424 \footnote{ipsum}%
425 \footnote{dolor}%
426 \footnote{sit}%
427 \footnote{amet,}%
428 \footnote{consectetur}%
429 \footnote{adipisicing}%
430 \footnote{elit,}%
431 \footnote{sed}%
432 \end{footnoterange}
433 are hyperlinked.\footnote{do eiusmod tempor incididunt %
434 ut labore et dolore magna aliqua.} Using
435 \verb|hyperfootnotes=false| or not using \verb|hyperref|
436 will remove the hyperlinks to the footnotes.\medskip
437
438 This text also bears a multiplicity of footnotes,
439 but due to the use of the starred
440 \begin{footnoterange*}
441 \footnote{Ut enim}%
442 \footnote{ad minim veniam,}%
443 \footnote{quis}%
444 \footnote{nostrud}%
445 \footnote{exercitation}%
446 \footnote{ullamco}%
447 \footnote{laboris}%
448 \footnote{nisi}%
449 \end{footnoterange*}
450 form of the environment they are not
451 hyperlinked.\footnote{ut aliquip ex ea commodo consequat.}
452 \medskip
453
454 The use of the optional parameter for footnotes%
455 \begin{footnoterange}%
456 \footnote[101]{Duis}%
457 \footnote[102]{aute}%
458 \footnote[103]{irure}%
459 \footnote[104]{dolor}%
460 \footnote[105]{in reprehenderit}%
461 \end{footnoterange}%
462 {} is also possible, but should be used consistently.
463 \pagebreak
464
465 When there is only one footnote
466 \begin{footnoterange}
467 \footnote{a single footnote}
468 \end{footnoterange}
469 in the \verb|footnoterange| environment, only one
470 footnotemark is used and an info is written into the
471 \verb|log|-file.
472
473 \bigskip
474
475 The usage of other footnote-number-representations
476 (e.\,g.~\verb|\Roman|%
477 \renewcommand{\thefootnote}{\Roman{footnote}}%
478 \begin{footnoterange}%
479 \footnote{Nam arcu libero,}%
480 \footnote{nonummy eget,}%
481 \footnote{consectetuer id,}%
482 \footnote{vulputate a,}%
483 \footnote{magna.}%
484 \end{footnoterange}%
485 , \verb|\roman|%
486 \renewcommand{\thefootnote}{\roman{footnote}}%
487 \begin{footnoterange}%
488 \footnote{in voluptate}%
489 \footnote{velit}%
490 \footnote{esse}%
491 \footnote{cillum}%
492 \footnote{dolore}%
493 \end{footnoterange}%
494 % \end{macrocode}
495 % \pagebreak
496 % \begin{macrocode}
497 , \verb|\Alph|%
498 \renewcommand*{\thefootnote}{\AlphAlph{\value{footnote}}}%
499 \begin{footnoterange}%
500 \footnote{eu fugiat}%
501 \footnote{nulla}%
502 \footnote{pariatur.}%
503 \footnote{Excepteur}%
504 \footnote{sint}%
505 \end{footnoterange}%
506 , \verb|\alph|%
507 \renewcommand{\thefootnote}{\alphalph{\value{footnote}}}%
508 \begin{footnoterange}%
509 \footnote{occaecat}%
510 \footnote{cupidatat}%
511 \footnote{non proident,}%
512 \footnote{sunt}%
513 \footnote{in culpa}%
514 \end{footnoterange}%
515 , \verb|\fnsymbol|%
516 \renewcommand{\thefootnote}{\protect\fnsymbolfnr{\arabic{footnote}}}%
517 \begin{footnoterange}%
518 \footnote{qui officia}%
519 \footnote{deserunt}%
520 \footnote{mollit}%
521 \footnote{anim}%
522 \footnote{id est laborum.}%
523 \end{footnoterange}%
524 ) is also possible, but two things must be taken into account:
525
526 \begin{enumerate}
527 \item By default the number of footnote references is restricted
528 (for example with \verb|\Alph| only references A to Z are possible),
529 which needs to be fixed. In this example the
530 \IfPackageLoadedTF{hyperref}{%
531 \href{https://ctan.org/pkg/alphalph}{\texttt{alphalph} package} %
532 }{\texttt{alphalph} package, \url{https://ctan.org/pkg/alphalph}, %
533 }%
534 is used for this purpose.
535 \item References to footnote-symbol-ranges (\verb|\fnsymbol|)
536 might not be very clear. For example, if the symbols %
537 \newcounter{fnrxcnt}%
538 \setcounter{fnrxcnt}{1}%
539 \fnsymbolfnr{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 1
540 \fnsymbolfnr{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 2
541 \fnsymbolfnr{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 3
542 \fnsymbolfnr{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 4
543 \fnsymbolfnr{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 5
544 \fnsymbolfnr{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 6
545 \fnsymbolfnr{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 7
546 {} are used, %
547 \setcounter{fnrxcnt}{2}\fnsymbolfnr{\value{fnrxcnt}}--%
548 \setcounter{fnrxcnt}{7}\fnsymbolfnr{\value{fnrxcnt}} %
549 means second to seventh footnote.\par%
550 But if %
551 \newalphalph{\fnsymbolfnri}[mult]{\fnrfnsymbol}{6}%
552 \setcounter{fnrxcnt}{1}%
553 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 1
554 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 2
555 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 3
556 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 4
557 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 5
558 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 6
559 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 7
560 \fnsymbolfnri{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 8
561 {} are used, %
562 \setcounter{fnrxcnt}{2}\fnsymbolfnri{\value{fnrxcnt}}--%
563 \setcounter{fnrxcnt}{8}\fnsymbolfnri{\value{fnrxcnt}} %
564 means second to eighth footnote.\par%
565 And if %
566 \newalphalph{\fnsymbolfnrx}[mult]{\fnrfnsymbol}{3}%
567 \setcounter{fnrxcnt}{1}%
568 \fnsymbolfnrx{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 1
569 \fnsymbolfnrx{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 2
570 \fnsymbolfnrx{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 3
571 \fnsymbolfnrx{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 4
572 \fnsymbolfnrx{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 5
573 \fnsymbolfnrx{\value{fnrxcnt}}\stepcounter{fnrxcnt}% 6
574 {} are used, %
575 \setcounter{fnrxcnt}{2}\fnsymbolfnrx{\value{fnrxcnt}}--%
576 \setcounter{fnrxcnt}{5}\fnsymbolfnrx{\value{fnrxcnt}} %
577 means second to fifth footnote.%
578 \end{enumerate}
579
580 \newpage
581
582 The \texttt{Lorem ipsum} text for the footnotes was taken from
583 \url{https://www.lipsum.com/}, where as original source
584 sections~1.10.32 and 1.10.33 of
585 \textquotedblleft de Finibus Bonorum et Malorum\textquotedblright{}
586 by \textsc{Cicero}, written in 45~BCE, is given.
587 \end{document}
588 %</example>
589 % \end{macrocode}
590 %
591 % \StopEventually{}
592 %
593 % \section{The implementation}
594 % We start off by checking that we are loading into \LaTeXe{} and
595 % announcing the name and version of this package.
596 %
597 % \begin{macrocode}
598 %<*package>
599 % \end{macrocode}
600 %
601 % \begin{macrocode}
602 \NeedsTeXFormat{LaTeX2e}[2024/11/01]
603 \ProvidesPackage{footnoterange}[2026-01-19 v1.1c %
604 References to ranges of footnotes (HMM)]
605 %% Provides the footnoterange and footnoterange* environments
606 %% to refer to ranges of footnotes.
607
608 \@ifl@t@r\fmtversion{2024/11/01}{% would have understood
609 % \IfFormatAtLeastTF{2024-11-01}{<true code>}{<false code>}
610 }{\PackageError{footnoterange}{%
611 Newer LaTeX format needed or older footnoterange package%
612 }{Needed LaTeX format version: 2024-11-01 or newer.\MessageBreak%
613 Found\space\space LaTeX format version: \fmtversion.\MessageBreak%
614 Please update your TeX distribution.%
615 }
616 }
617
618 % \end{macrocode}
619 %
620 % We use |\ifHy@hyperfootnotes ... \else ... \fi|, but when the \xpackage{hyperref}
621 % package has not been loaded, |\ifHy@hyperfootnotes| is not defined, and \LaTeX
622 % relates the |\else| and/or |\fi| (wrongly) to other |\if|s or groups.
623 % Therefore the |\ifHy@hyperfootnotes| are placed in their own commands,
624 % which are not looked at when the \xpackage{hyperref} package has not been loaded.
625 % With |\DocumentMetadata| there is no |Hfootnote| counter.
626 % \pagebreak
627 %
628 % \begin{macro}{\fnr@ifhyperrfn}
629 % \begin{macrocode}
630 \newcommand{\fnr@ifhyperrfn}{%
631 \ifHy@hyperfootnotes% option hyperfootnotes=true
632 \IfDocumentMetadataF{\addtocounter{Hfootnote}{+1}}%
633 % Code from the hyperref package
634 \global\let\Hy@saved@currentHref\@currentHref%
635 \hyper@makecurrent{Hfootnote}%
636 \global\let\Hy@footnote@currentHref\@currentHref%
637 \global\let\@currentHref\Hy@saved@currentHref%
638 % End of code from the hyperref package
639 \fi%
640 }
641
642 % \end{macrocode}
643 % \end{macro}
644 %
645 % \begin{macro}{\fnr@rangefootnote}
646 % The |\fnr@rangefootnote| is the internal replacement for the original\newline
647 % |\footnote| command inside of a |footnoterange| environment.
648 %
649 % \begin{macrocode}
650 \newcommand{\fnr@rangefootnote}[2][\empty]{%
651 % \end{macrocode}
652 %
653 % |#1| contains the optional argument, which is predefined as |\empty|.
654 %
655 % \begin{macrocode}
656 \nolinebreak%
657 % no \footnotemark here
658 \addtocounter\@mpfn{+1}%
659 \IfPackageLoadedT{hyperref}{\fnr@ifhyperrfn}%
660 % \end{macrocode}
661 %
662 % See the explanation before the declaration of the |\fnr@ifhyperrfn| command!
663 %
664 % \begin{macrocode}
665 \xdef\fnr@opt{#1}% contains the optional argument
666 \xdef\fnr@arabic{\arabic\@mpfn}%
667 \protected@edef\fnr@formatted{\thefootnote}%
668 % \end{macrocode}
669 %
670 % The |\footnotemark| is not set (yet), but the |\footnotetext|,
671 % and it gets a label.
672 %
673 % \begin{macrocode}
674 \ifx\fnr@opt\empty\relax%
675 \footnotetext{\label{fnr:\fnr@arabic}#2}%
676 \else%
677 \PackageWarning{footnoterange}{%
678 Custom footnote-numbers used in a footnoterange\MessageBreak%
679 environment: Footnote with natural number\MessageBreak%
680 \ifx\fnr@formatted\fnr@arabic%
681 \fnr@arabic%
682 \else%
683 \space\fnr@arabic\space (\fnr@formatted )%
684 \fi%
685 \MessageBreak%
686 was renumbered to \fnr@opt\MessageBreak%
687 }%
688 \IfPackageLoadedTF{hyperref}{%
689 \footnotetext[#1]{\phantomsection\label{fnr:\fnr@arabic}#2}%
690 }{\footnotetext[#1]{\label{fnr:\fnr@arabic}#2}%
691 }%
692 \fi%
693 }
694
695 % \end{macrocode}
696 % \end{macro}
697 % \begin{macro}{\fnr@ifhyperfnrA}
698 % |\ifHy@hyperfootnotes| \textquotedblleft encapsulation\textquotedblright{} again:
699 % \begin{macrocode}
700 \newcommand{\fnr@ifhyperfnrA}{%
701 \ifHy@hyperfootnotes% option hyperfootnotes=true
702 \hbox{\hyperref[fnr:\fnr@first]{%
703 \@textsuperscript{\normalfont \ref*{fnr:\fnr@first}}}}%
704 \else% option hyperfootnotes=false
705 \hbox{\@textsuperscript{\normalfont \ref*{fnr:\fnr@first}}}%
706 \fi%
707 }
708
709 % \end{macrocode}
710 % \end{macro}
711 % \begin{macro}{\fnr@ifhyperfnrN}
712 % \begin{macrocode}
713 \newcommand{\fnr@ifhyperfnrN}{%
714 \ifHy@hyperfootnotes% option hyperfootnotes=true
715 \hbox{\hyperref[fnr:\fnr@first]{%
716 \@textsuperscript{\normalfont \ref*{fnr:\fnr@first}}}%
717 \@textsuperscript{\normalfont --}%
718 \hyperref[fnr:\arabic\@mpfn]{%
719 \@textsuperscript{\normalfont \ref*{fnr:\arabic\@mpfn}}}}%
720 \else% option hyperfootnotes=false
721 \hbox{\@textsuperscript{\normalfont \ref*{fnr:\fnr@first}%
722 --\ref*{fnr:\arabic\@mpfn}}}%
723 \fi%
724 }
725
726 % \end{macrocode}
727 % \end{macro}
728 %
729 % \begin{environment}{footnoterange}
730 % The |footnoterange| environment remembers the next footnote number as\newline
731 % |\fnr@first| and the current |\footnote| definition as |\fnr@origfn|
732 % and uses |\fnr@rangefootnote| instead.
733 %
734 % Because we cannot |\RenewCommandCopy| a command which does not exist,
735 % we need to once define |\fnr@origfnmark|.
736 %
737 % \begin{macrocode}
738 \AddToHook{begindocument}{\NewCommandCopy{\fnr@origfnmark}{\footnotemark}}
739
740 \newenvironment{footnoterange}{%
741 % at begin of the footnoterange environment
742 \ifhmode \unskip \fi% FMi
743 \addtocounter\@mpfn{+1}%
744 \xdef\fnr@first{\arabic\@mpfn}%
745 \addtocounter\@mpfn{-1}%
746 \let\fnr@origfn\footnote%
747 \let\footnote\fnr@rangefootnote%
748 \RenewCommandCopy{\fnr@origfnmark}{\footnotemark}%
749 \RenewCommandCopy{\footnotemark}{\fnr@rangefootnotemark}%
750 \ignorespaces% FMi
751 % \end{macrocode}
752 %
753 % End of the environment:
754 %
755 % \begin{macrocode}
756 }{% at end of the footnoterange environment
757 \ifhmode% FMi
758 \unskip% FMi
759 % \end{macrocode}
760 %
761 % Remember the spacefactor for restoring after the environment has ended
762 % (only in |hmode|!). \% FMi
763 %
764 % \begin{macrocode}
765 \xdef\fnr@aftergroup{\spacefactor\the\spacefactor\relax}% FMi
766 \else% FMi
767 % \end{macrocode}
768 %
769 % Otherwise do something harmless. \% FMi
770 %
771 % \begin{macrocode}
772 \xdef\fnr@aftergroup{\relax}%
773 \fi% FMi
774 % \end{macrocode}
775 %
776 % At the end of the environment the previous definition of |\footnote| is restored
777 %
778 % \begin{macrocode}
779 \let\footnote\fnr@origfn%
780 \RenewCommandCopy{\footnotemark}{\fnr@origfnmark}%
781 % \end{macrocode}
782 %
783 % and the references are placed:
784 %
785 % \begin{macrocode}
786 \ifx\fnr@first\fnr@arabic\relax% There is only one reference in the environment.
787 \PackageInfo{footnoterange}{%
788 Environment footnoterange used,\MessageBreak%
789 but only one footnote (number \fnr@first ) is contained\MessageBreak}%
790 \IfPackageLoadedTF{hyperref}{\fnr@ifhyperfnrA%
791 }{\hbox{\@textsuperscript{\normalfont \ref{fnr:\fnr@first}}}%
792 }%
793 \else%
794 % \end{macrocode}
795 % \pagebreak
796 % \begin{macrocode}
797 \IfPackageLoadedTF{hyperref}{\fnr@ifhyperfnrN%
798 }{\hbox{\@textsuperscript{\normalfont \ref{fnr:\fnr@first}%
799 --\ref{fnr:\arabic\@mpfn}}}%
800 }%
801 \fi%
802 % \end{macrocode}
803 %
804 % Restore the space-factor after the environment has ended. \% FMi
805 %
806 % \begin{macrocode}
807 \aftergroup\fnr@aftergroup% FMi
808 }
809
810 % \end{macrocode}
811 % \end{environment}
812 %
813 % \begin{environment}{footnoterange*}
814 % The |footnoterange*| environment does the same as the |footnoterange|
815 % environment but suppresses all hyperlinks to footnotes inside.
816 %
817 % \begin{macrocode}
818 \newenvironment{footnoterange*}{%
819 % at begin of the footnoterange* environment
820 \ifhmode \unskip \fi% FMi
821 \addtocounter\@mpfn{+1}%
822 \xdef\fnr@first{\arabic\@mpfn}%
823 \addtocounter\@mpfn{-1}%
824 \let\fnr@origfn\footnote%
825 \let\footnote\fnr@rangefootnote%
826 \RenewCommandCopy{\fnr@origfnmark}{\footnotemark}%
827 \RenewCommandCopy{\footnotemark}{\fnr@rangefootnotemark}%
828 \ignorespaces% FMi
829 }{% at end of the footnoterange* environment
830 \ifhmode% FMi
831 \unskip% FMi
832 \xdef\fnr@aftergroup{\spacefactor\the\spacefactor\relax}% FMi
833 \else% FMi
834 \xdef\fnr@aftergroup{\relax}%
835 \fi% FMi
836 \let\footnote\fnr@origfn%
837 \RenewCommandCopy{\footnotemark}{\fnr@origfnmark}%
838 \ifx\fnr@first\fnr@arabic\relax% There is only one reference in the environment.
839 \PackageInfo{footnoterange}{%
840 Environment footnoterange used,\MessageBreak%
841 but only one footnote (number \fnr@first ) is contained\MessageBreak}%
842 \IfPackageLoadedTF{hyperref}{%
843 \hbox{\@textsuperscript{\normalfont \ref*{fnr:\fnr@first}}}%
844 }{\hbox{\@textsuperscript{\normalfont \ref{fnr:\fnr@first}}}%
845 }%
846 \else%
847 \IfPackageLoadedTF{hyperref}{%
848 \hbox{\@textsuperscript{\normalfont \ref*{fnr:\fnr@first}%
849 --\ref*{fnr:\arabic\@mpfn}}}%
850 }{\hbox{\@textsuperscript{\normalfont \ref{fnr:\fnr@first}%
851 --\ref{fnr:\arabic\@mpfn}}}%
852 }%
853 \fi%
854 \aftergroup\fnr@aftergroup% FMi
855 }
856
857 % \end{macrocode}
858 % \end{environment}
859 %
860 % \begin{macro}{\fnr@rangefootnotemark}
861 % The \xpackage{footnoterange} package does not handle |\footnotemark|s,
862 % but at least the user is made aware of this:
863 %
864 % \begin{macrocode}
865 \newcommand{\fnr@rangefootnotemark}[1][\empty]{%
866 \PackageError{footnoterange}{%
867 \string\footnotemark\space not supported in footnoterange(*) environment%
868 }{The footnoterange package does not handle a \string\footnotemark.\MessageBreak%
869 Either use \string\footnote\string{...\string}\space instead of%
870 \string\footnotemark\space and \string\footnotetext\string{...\string}\MessageBreak%
871 in footnoterange and footnoterange* environments,\MessageBreak%
872 or do not use those environments around a \string\footnotemark\MessageBreak%
873 (or \string\renewcommand\string{\string\fnr@rangefootnotemark\string}\MessageBreak%
874 with your own fixing code).%
875 }%
876 \xdef\fnr@mopt{#1}%
877 \ifx\fnr@mopt\empty\relax%
878 \fnr@origfnmark%
879 \else%
880 \fnr@origfnmark[#1]%
881 \fi%
882 }
883
884 % \end{macrocode}
885 % \end{macro}
886 % \begin{macrocode}
887 %</package>
888 % \end{macrocode}
889 %
890 % \section{Installation}
891 % \subsection{Downloads\label{ss:Downloads}}
892 % Everything is available on CTAN,
893 % \url{https://www.CTAN.org/},
894 % but may need additional packages themselves.
895 %
896 % \DescribeMacro{footnoterange.dtx}
897 % For unpacking the \xfile{footnoterange.dtx} file
898 % and constructing the documentation it is required:
899 % \begin{description}
900 % \item[-] \TeX Format \LaTeXe{} 2024-11-01 or newer: \url{https://www.CTAN.org}
901 %
902 % \item[-] document class \xclass{ltxdoc}, 2024/02/08, v2.1j,
903 % \url{https://www.ctan.org/pkg/ltxdoc}
904 %
905 % \item[-] package \xpackage{holtxdoc}, 2019/12/09, v0.30,
906 % \url{https://www.ctan.org/pkg/holtxdoc}
907 % \end{description}
908 %
909 % \DescribeMacro{footnoterange.sty}
910 % The |footnoterange.sty| for \LaTeXe{} (i.\,e.~each document using
911 % the \xpackage{footnoterange} package) requires:
912 % \begin{description}
913 % \item[-] \TeX Format \LaTeXe{} 2024-11-01 or newer: \url{https://www.CTAN.org}
914 % \end{description}
915 %
916 % \DescribeMacro{footnoterange-example.tex}
917 % The |footnoterange-example.tex| requires the same files as all
918 % documents using the \xpackage{footnoterange} package and additionally:
919 % \begin{description}
920 % \item[-] class \xpackage{article}, 2025/01/22, v1.4n, from \xpackage{classes}:\newline
921 % \url{https://www.ctan.org/pkg/classes}
922 %
923 % \item[-] package \xpackage{footnoterange}, 2026-01-19, v1.1c,\newline
924 % \url{https://ctan.org/pkg/footnoterange}\newline
925 % (Well, it is the example file for this package, and because you are
926 % reading the documentation for the \xpackage{footnoterange} package,
927 % it can be assumed that you already have some version of it --
928 % is it the current one?)
929 %
930 % \item[-] package \xpackage{hyperref}, 2025-07-12, v7.01o,\newline
931 % \url{https://ctan.org/pkg/hyperref}
932 %
933 % \item[-] package \xpackage{alphalph}, 2019/12/09, v2.6,\newline
934 % \url{https://ctan.org/pkg/alphalph}
935 % \end{description}
936 %
937 % \DescribeMacro{Oberdiek}
938 % \DescribeMacro{holtxdoc}
939 % \DescribeMacro{alphalph}
940 % All packages of the `oberdiek' bundle (especially \xpackage{alphalph})
941 % are also available in a TDS compliant ZIP archive:\newline
942 % \url{https://mirror.ctan.org/install/macros/latex/contrib/oberdiek.tds.zip}.\newline
943 % It is probably best to download and use this, because the packages in there
944 % are quite probably both recent and compatible among themselves.\bigskip
945 %
946 % \DescribeMacro{hyperref}
947 % \noindent \xpackage{hyperref} is not included in that bundle and needs to be
948 % downloaded separately,\newline
949 % \url{https://mirror.ctan.org/install/macros/latex/contrib/hyperref.tds.zip}.\bigskip
950 %
951 % \DescribeMacro{Münch}
952 % A hyperlinked list of my (other) packages can be found at
953 % \url{https://ctan.org/author/muench-hm}.\bigskip
954 %
955 % \subsection{Package, unpacking TDS}
956 % \paragraph{Package.} This package is available on \url{https://www.CTAN.org}.
957 % \begin{description}
958 % \item[\url{https://mirror.ctan.org/macros/latex/contrib/footnoterange/footnoterange.dtx}]\hspace*{0.1cm}
959 % The source file.
960 % \item[\url{https://mirror.ctan.org/macros/latex/contrib/footnoterange/footnoterange.pdf}]\hspace*{0.1cm}
961 % The documentation.
962 % \item[\url{https://mirror.ctan.org/macros/latex/contrib/footnoterange/footnoterange-example.pdf}]\hspace*{0.1cm}
963 % The compiled example file, as it should look like.
964 % \item[\url{http://mirror.ctan.org/macros/latex/contrib/footnoterange/README}]\hspace*{0.1cm}\newline\hspace*{0.1cm}
965 % The README file.
966 % \end{description}
967 % There is also a footnoterange.tds.zip available:
968 % \begin{description}
969 % \item[\url{https://mirror.ctan.org/install/macros/latex/contrib/footnoterange.tds.zip}]\hspace*{0.1cm}
970 % Everything in TDS compliant, compiled format.
971 % \end{description}
972 % which additionally contains\newline
973 % \begin{tabular}{ll}
974 % footnoterange.ins & The installation file.\\
975 % footnoterange.drv & The driver to generate the documentation.\\
976 % footnoterange.sty & The \xext{sty}le file.
977 % \end{tabular}
978 %
979 % \bigskip
980 %
981 % \noindent For required other packages, please see the preceding subsection.
982 %
983 % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
984 % \docstrip{} archive. The files are extracted by running the
985 % \xfile{.dtx} through \plainTeX:
986 % \begin{quote}
987 % \verb|tex footnoterange.dtx|
988 % \end{quote}
989 %
990 % About generating the documentation see paragraph~\ref{GenDoc} below.
991 %
992 % \paragraph{TDS.} Now the different files must be moved into
993 % the different directories in your installation TDS tree
994 % (also known as \xfile{texmf} tree):
995 % \begin{quote}
996 % \def\t{^^A
997 % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
998 % footnoterange.sty & tex/latex/footnoterange/footnoterange.sty\\
999 % footnoterange.pdf & doc/latex/footnoterange/footnoterange.pdf\\
1000 % footnoterange-example.tex & doc/latex/footnoterange/footnoterange-example.tex\\
1001 % footnoterange-example.pdf & doc/latex/footnoterange/footnoterange-example.pdf\\
1002 % footnoterange.dtx & source/latex/footnoterange/footnoterange.dtx
1003 % \end{tabular}^^A
1004 % }^^A
1005 % \sbox0{\t}^^A
1006 % \ifdim\wd0>\linewidth
1007 % \begingroup
1008 % \advance\linewidth by\leftmargin
1009 % \advance\linewidth by\rightmargin
1010 % \edef\x{\endgroup
1011 % \def\noexpand\lw{\the\linewidth}^^A
1012 % }\x
1013 % \def\lwbox{^^A
1014 % \leavevmode
1015 % \hbox to \linewidth{^^A
1016 % \kern-\leftmargin\relax
1017 % \hss
1018 % \usebox0
1019 % \hss
1020 % \kern-\rightmargin\relax
1021 % }^^A
1022 % }^^A
1023 % \ifdim\wd0>\lw
1024 % \sbox0{\small\t}^^A
1025 % \ifdim\wd0>\linewidth
1026 % \ifdim\wd0>\lw
1027 % \sbox0{\footnotesize\t}^^A
1028 % \ifdim\wd0>\linewidth
1029 % \ifdim\wd0>\lw
1030 % \sbox0{\scriptsize\t}^^A
1031 % \ifdim\wd0>\linewidth
1032 % \ifdim\wd0>\lw
1033 % \sbox0{\tiny\t}^^A
1034 % \ifdim\wd0>\linewidth
1035 % \lwbox
1036 % \else
1037 % \usebox0
1038 % \fi
1039 % \else
1040 % \lwbox
1041 % \fi
1042 % \else
1043 % \usebox0
1044 % \fi
1045 % \else
1046 % \lwbox
1047 % \fi
1048 % \else
1049 % \usebox0
1050 % \fi
1051 % \else
1052 % \lwbox
1053 % \fi
1054 % \else
1055 % \usebox0
1056 % \fi
1057 % \else
1058 % \lwbox
1059 % \fi
1060 % \else
1061 % \usebox0
1062 % \fi
1063 % \end{quote}
1064 % If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's
1065 % TDS installing feature, then some files can already be in the right
1066 % place, see the documentation of \docstrip{}.
1067 %
1068 % \subsection{Refresh file name databases}
1069 %
1070 % If your \TeX~distribution (\TeX\,Live, \mikTeX, \dots) relies on
1071 % file name databases, you must refresh these. For example, \TeX\,Live\ users
1072 % run \verb|texhash| or \verb|mktexlsr|.
1073 %
1074 % \subsection{Some details for the interested}
1075 %
1076 % \paragraph{Unpacking with \LaTeX{}.}
1077 % The \xfile{.dtx} chooses its action depending on the format:
1078 % \begin{description}
1079 % \item[\plainTeX:] Run \docstrip{} and extract the files.
1080 % \item[\LaTeX:] Generate the documentation.
1081 % \end{description}
1082 % If you insist on using \LaTeX{} for \docstrip{} (really,
1083 % \docstrip{} does not need \LaTeX ), then inform the autodetect routine
1084 % about your intention:
1085 % \begin{quote}
1086 % \verb|latex \let\install=y\input{footnoterange.dtx}|
1087 % \end{quote}
1088 % Do not forget to quote the argument according to the demands
1089 % of your shell.
1090 %
1091 % \paragraph{Generating the documentation.\label{GenDoc}}
1092 % You can use both the \xfile{.dtx} or the \xfile{.drv} to generate
1093 % the documentation. The process can be configured by a
1094 % configuration file \xfile{ltxdoc.cfg}. For instance, put the following
1095 % line into this file, if you want to have A4 as paper format:
1096 % \begin{quote}
1097 % \verb|\PassOptionsToClass{a4paper}{article}|
1098 % \end{quote}
1099 %
1100 % \noindent An example follows how to generate the
1101 % documentation with \pdfLaTeX :
1102 %
1103 % \begin{quote}
1104 %\begin{verbatim}
1105 %pdflatex footnoterange.dtx
1106 %makeindex -s gind.ist footnoterange.idx
1107 %pdflatex footnoterange.dtx
1108 %makeindex -s gind.ist footnoterange.idx
1109 %pdflatex footnoterange.dtx
1110 %\end{verbatim}
1111 % \end{quote}
1112 %
1113 % \subsection{Compiling the example}
1114 %
1115 % The example file, \textsf{footnoterange-example.tex}, can be compiled via\newline
1116 % \indent \verb|(pdf)latex footnoterange-example.tex|\newline
1117 % but will need probably at least two compiler runs to get everything right.\newline
1118 % \verb|footnoterange-example.tex| can be created by\newline
1119 % \indent \verb|tex footnoterange.dtx|.\newline
1120 % \verb|footnoterange.dtx| is at
1121 % \url{https://www.ctan.org/pkg/footnoterange}.\newline
1122 %
1123 % \section{Acknowledgements}
1124 %
1125 % I (H.-Martin Münch) would like to thank \textsc{Heiko Oberdiek}
1126 % for providing a lot of useful packages (from which I also got everything
1127 % I know about creating a file in \xext{dtx} format, OK, say it: copying),
1128 % \textsc{Frank Mittelbach} for several bug reports, for code for improving
1129 % the package, and for pointing me to the \xpackage{fnpct} package
1130 % as alternative, and \textsc{Willie Wong} for reporting a bug and its fix.
1131 % This package was created as response to question
1132 % \textquotedblleft Compressing consecutive footnote
1133 % marks\textquotedblright{} by user001
1134 % (\url{https://tex.stackexchange.com/users/10127/user001}) on\newline
1135 % \url{https://tex.stackexchange.com/q/44165}.
1136 %
1137 % \phantomsection
1138 % \begin{History}\label{History}
1139 % \begin{Version}{2011/02/11 v0.1ff.}
1140 % \item Some versions at \url{https://tex.stackexchange.com/q/44165/6865}.
1141 % \end{Version}
1142 % \begin{Version}{2012/02/17 v1.0a}
1143 % \item Package created and uploaded to CTAN.
1144 % \end{Version}
1145 % \begin{Version}{2018/10/15 v1.0b}
1146 % \item Fixed/updated minor details.
1147 % \item Bug fix: Did not work without \xpackage{hyperref}, wrong spacefactor.
1148 % \item Listing the \href{https://ctan.org/pkg/fnpct}{\xpackage{fnpct}}
1149 % package as alternative.
1150 % \end{Version}
1151 % \begin{Version}{2019/11/24 v1.0c}
1152 % \item Bug fix: Issue with footnote symbols.
1153 % \end{Version}
1154 % \begin{Version}{2023-02-25 v1.1a}
1155 % \item Converted to UTF-8.
1156 % \item Updated to [then] current \LaTeX{} format 2022-11-01.
1157 % \item Example now also demonstrates the usage of
1158 % footnote-{}number-{}representations other than |arabic|:\newline
1159 % |\Roman|, |\roman|, |\Alph|, |\alph|, |\fnsymbol|~(!),
1160 % especially for more footnotes then A--Z, a--z, %
1161 % \newcounter{fnrxcnt}\setcounter{fnrxcnt}{1}\fnsymbol{fnrxcnt}--\setcounter{fnrxcnt}{5}\fnsymbol{fnrxcnt}.
1162 % \item Creation of smaller link-boxes explained in the documentation.
1163 % \item Documentation and README updates.
1164 % \end{Version}
1165 % \begin{Version}{2025-01-27 v1.1b}
1166 % \item Renamed |\fnr@formated| to |\fnr@formatted|.
1167 % \item Documentation updates.
1168 % \end{Version}
1169 % \begin{Version}{2026-01-19 v1.1c}
1170 % \item Added code to the example to be compilable without \xpackage{hyperref}.
1171 % \item Corrected the date of the format required by the package.
1172 % \item Locked the |Hfootnote| counter inside a |\IfDocumentMetadataF|
1173 % (because it does not exist in that case).
1174 % \end{Version}
1175 % \end{History}
1176 %
1177 % \bigskip
1178 %
1179 % When you find a mistake or have a suggestion for an improvement of this package,
1180 % please send an e-mail to the maintainer, thanks! (Please see BUG REPORTS in the README.)
1181 %
1182 % \PrintIndex
1183 %
1184 % \Finale
1185 \endinput