Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %
3 % File: telprint.dtx
4 % Version: 2024-07-26 v1.12
5 % Info: Format German phone numbers
6 %
7 % Copyright (C)
8 % 1996, 1997, 2004-2008 Heiko Oberdiek
9 % 2016-2024 Oberdiek Package Support Group
10 % https://github.com/ho-tex/telprint/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/telprint/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 telprint.dtx
32 % and the derived files
33 % telprint.sty, telprint.pdf, telprint.ins, telprint.drv,
34 % telprint-test1.tex.
35 %
36 % Distribution:
37 % CTAN:macros/latex/contrib/telprint/telprint.dtx
38 % CTAN:macros/latex/contrib/telprint/telprint.pdf
39 %
40 % Unpacking:
41 % (a) If telprint.ins is present:
42 % tex telprint.ins
43 % (b) Without telprint.ins:
44 % tex telprint.dtx
45 % (c) If you insist on using LaTeX
46 % latex \let\install=y\input{telprint.dtx}
47 % (quote the arguments according to the demands of your shell)
48 %
49 % Documentation:
50 % (a) If telprint.drv is present:
51 % latex telprint.drv
52 % (b) Without telprint.drv:
53 % latex telprint.dtx; ...
54 % The class ltxdoc loads the configuration file ltxdoc.cfg
55 % if available. Here you can specify further options, e.g.
56 % use A4 as paper format:
57 % \PassOptionsToClass{a4paper}{article}
58 %
59 % Program calls to get the documentation (example):
60 % pdflatex telprint.dtx
61 % makeindex -s gind.ist telprint.idx
62 % pdflatex telprint.dtx
63 % makeindex -s gind.ist telprint.idx
64 % pdflatex telprint.dtx
65 %
66 % Installation:
67 % TDS:tex/generic/telprint/telprint.sty
68 % TDS:doc/latex/telprint/telprint.pdf
69 % TDS:source/latex/telprint/telprint.dtx
70 %
71 %<*ignore>
72 \begingroup
73 \catcode123=1 %
74 \catcode125=2 %
75 \def\x{LaTeX2e}%
76 \expandafter\endgroup
77 \ifcase 0\ifx\install y1\fi\expandafter
78 \ifx\csname processbatchFile\endcsname\relax\else1\fi
79 \ifx\fmtname\x\else 1\fi\relax
80 \else\csname fi\endcsname
81 %</ignore>
82 %<*install>
83 \input docstrip.tex
84 \Msg{************************************************************************}
85 \Msg{* Installation}
86 \Msg{* Package: telprint 2024-07-26 v1.12 Format German phone numbers (HO)}
87 \Msg{************************************************************************}
88
89 \keepsilent
90 \askforoverwritefalse
91
92 \let\MetaPrefix\relax
93 \preamble
94
95 This is a generated file.
96
97 Project: telprint
98 Version: 2024-07-26 v1.12
99
100 Copyright (C)
101 1996, 1997, 2004-2008 Heiko Oberdiek
102 2016-2024 Oberdiek Package Support Group
103
104 This work may be distributed and/or modified under the
105 conditions of the LaTeX Project Public License, either
106 version 1.3c of this license or (at your option) any later
107 version. This version of this license is in
108 https://www.latex-project.org/lppl/lppl-1-3c.txt
109 and the latest version of this license is in
110 https://www.latex-project.org/lppl.txt
111 and version 1.3 or later is part of all distributions of
112 LaTeX version 2005/12/01 or later.
113
114 This work has the LPPL maintenance status "maintained".
115
116 The Current Maintainers of this work are
117 Heiko Oberdiek and the Oberdiek Package Support Group
118 https://github.com/ho-tex/telprint/issues
119
120
121 The Base Interpreter refers to any `TeX-Format',
122 because some files are installed in TDS:tex/generic//.
123
124 This work consists of the main source file telprint.dtx
125 and the derived files
126 telprint.sty, telprint.pdf, telprint.ins, telprint.drv,
127 telprint-test1.tex.
128
129 \endpreamble
130 \let\MetaPrefix\DoubleperCent
131
132 \generate{%
133 \file{telprint.ins}{\from{telprint.dtx}{install}}%
134 \file{telprint.drv}{\from{telprint.dtx}{driver}}%
135 \usedir{tex/generic/telprint}%
136 \file{telprint.sty}{\from{telprint.dtx}{package}}%
137 % \usedir{doc/latex/telprint/test}%
138 % \file{telprint-test1.tex}{\from{telprint.dtx}{test1}}%
139 }
140
141 \catcode32=13\relax% active space
142 \let =\space%
143 \Msg{************************************************************************}
144 \Msg{*}
145 \Msg{* To finish the installation you have to move the following}
146 \Msg{* file into a directory searched by TeX:}
147 \Msg{*}
148 \Msg{* telprint.sty}
149 \Msg{*}
150 \Msg{* To produce the documentation run the file `telprint.drv'}
151 \Msg{* through LaTeX.}
152 \Msg{*}
153 \Msg{* Happy TeXing!}
154 \Msg{*}
155 \Msg{************************************************************************}
156
157 \endbatchfile
158 %</install>
159 %<*ignore>
160 \fi
161 %</ignore>
162 %<*driver>
163 \NeedsTeXFormat{LaTeX2e}
164 \ProvidesFile{telprint.drv}%
165 [2024-07-26 v1.12 Format German phone numbers (HO)]%
166 \documentclass{ltxdoc}
167 \usepackage{holtxdoc}[2011/11/22]
168 \usepackage[ngerman,english]{babel}
169 \begin{document}
170 \DocInput{telprint.dtx}%
171 \end{document}
172 %</driver>
173 % \fi
174 %
175 %
176 %
177 % \GetFileInfo{telprint.drv}
178 %
179 % \title{The \xpackage{telprint} package}
180 % \date{2024-07-26 v1.12}
181 % \author{Heiko Oberdiek\thanks
182 % {Please report any issues at \url{https://github.com/ho-tex/telprint/issues}}}
183 %
184 % \maketitle
185 %
186 % \begin{abstract}
187 % Package \xpackage{telprint} provides \cs{telprint} for formatting
188 % German phone numbers.
189 % \end{abstract}
190 %
191 % \tableofcontents
192 %
193 % \section{Documentation}
194 %
195 % \subsection{Introduction}
196 %
197 % This is a very old package that I have written
198 % to format phone numbers. It follows German
199 % conventions and the documentation is mainly in German.
200 %
201 % \subsection{Short overview in English}
202 %
203 % \LaTeX:
204 % \begin{quote}
205 % |\usepackage{telprint}|\\
206 % |\telprint{123/456-789}|\\
207 % \end{quote}
208 % \plainTeX:
209 % \begin{quote}
210 % |\input telprint.sty|\\
211 % |\telprint{123/456-789}|
212 % \end{quote}
213 %
214 % \DescribeMacro\telprint
215 % |\telprint{...}| formats the explicitly given number.
216 % Digits, spaces and some special characters
217 % ('+', '/', '-', '(', ')', '\textasciitilde', ' ') are supported.
218 % Numbers are divided into groups of two digits from the right.
219 % Examples:
220 % \begin{quote}
221 % |\telprint{0761/12345} ==> 07\,61/1\,23\,45|\\
222 % |\telprint{01234/567-89} ==> 0\,12\,34/5\,67\leavevmode\hbox{-}89|\\
223 % |\telprint{+49 (6221) 297} ==> +49~(62\,21)~2\,97|
224 % \end{quote}
225 %
226 % \subsubsection{Configuration}
227 %
228 % The output of the symbols can be configured by
229 % \cs{telhyphen}, \cs{telslash}, \cs{telleftparen}, \cs{telrightparen},
230 % \cs{telplus}, \cs{teltilde}.
231 % Example:
232 % \begin{quote}
233 % |\telslash{\,/\,}\\|
234 % |\telprint{12/34} ==> 12\,/\,34|
235 % \end{quote}
236 %
237 % \DescribeMacro\telspace
238 % \cs{telspace} configures the space between digit groups.
239 %
240 % \DescribeMacro\telnumber
241 % \cs{telnumber} only formats a number in digit groups; special
242 % characters are not recognized.
243 %
244 % \subsection{Documentation in German}
245 %
246 % \begin{otherlanguage*}{ngerman}
247 % \hyphenation{To-ken-ma-kros}
248 % \begin{itemize}
249 % \item \DescribeMacro\telprint |telprint#1|\\
250 % Der eigentliche Anwenderbefehl zur formatierten Ausgabe von
251 % Telefonnummern. Diese d\"urfen dabei nur als Zahlen angegeben
252 % werden(, da sie tokenweise analysiert werden).
253 % Als Trenn- oder Sonderzeichen werden unterst\"utzt:
254 % '+', '/', '-', '(', ')', '\textasciitilde', ' '
255 % Einfache Leerzeichen werden erkannt und durch Tilden ersetzt, um
256 % Trennungen in der Telefonnummer zu verhindern. (Man beachte aus
257 % gleichem Grunde die \cs{hbox} bei '-'.)
258 % Beispiele:
259 % \begin{quote}
260 % |\telprint{0761/12345} ==> 07\,61/1\,23\,45|\\
261 % |\telprint{01234/567-89} ==> 0\,12\,34/5\,67\leavevmode\hbox{-}89|\\
262 % |\telprint{+49 (6221) 297} ==> +49~(62\,21)~2\,97|
263 % \end{quote}
264 % \end{itemize}
265 % Der Rest enth\"alt eher Technisches:
266 % \begin{itemize}
267 % \item \DescribeMacro\telspace |\telspace#1|\\
268 % Mit diesem Befehl wird der Abstand zwischen den Zifferngruppen
269 % angegeben (Default: |\,|).
270 % (Durch |\telspace{}| kann dieser zusaetzliche Abstand abgestellt
271 % werden.)
272 % \item \DescribeMacro\telhyphen |\telhyphen#1|\\
273 % Dieser Befehl gibt die Art des Bindestriches, wie er ausgegeben
274 % werden soll. In der Eingabe darf jedoch nur der einfache
275 % Bindestrich stehen:
276 % |\telprint{123-45}|, jedoch NIE |\telprint{123--45}|!
277 % Kopka-Bindestrich-Fans geben an:
278 % |\telhyphen{\leavevmode\hbox{--}}|
279 % \item
280 % \DescribeMacro{\telslash}
281 % \DescribeMacro{\telleftparen}
282 % \DescribeMacro{\telrightparen}
283 % \DescribeMacro{\telplus}
284 % \DescribeMacro{\teltilde}
285 % |\telslash#1|, |\telleftparen#1|, |\telrightparen#1|, |\telplus#1|,
286 % |\teltilde|\\
287 % Diese Befehle konfigurieren die Zeichen '/', '(', ')', '+'
288 % und '\textasciitilde'. Sie funktionieren analog zu \cs{telhyphen}.
289 % \item \DescribeMacro\telnumber |\telnumber#1|\\
290 % Richtung interner Befehl: Er dient dazu, eine Zifferngruppe
291 % in Zweiergruppen auszugeben.
292 % Die einzelnen Zahlen werden im Tokenregister \cs{TELtoks}
293 % gespeichert. Abwechselnd werden dabei zwischen zwei Token
294 % (Zahlen) \cs{TELx} bzw. \cs{TELy} eingefuegt, abh\"angig von dem
295 % wechselnden Wert von \cs{TELswitch}. Zum Schluss kann dann einfach
296 % festgestellt werden ob die Nummer nun eine geradzahlige oder
297 % ungeradzahlige Zahl von Ziffern aufwies. Dem entsprechend wird
298 % \cs{TELx} mit dem Zusatzabstand belegt und \cs{TELy} leer definiert
299 % oder umgekehrt. )
300 % \item |\TEL...| interne Befehle, Technisches:\\
301 % \cs{TELsplit} dient zur Aufteilung einer zusammengesetzten
302 % Telefonnummer (Vorwahl, Hauptnummer, Nebenstelle). In dieser
303 % Implementation werden als Trennzeichen nur '/' und '-' erkannt.
304 % Die einzelnen Bestandteile wie Vorwahl werden dann dem Befehl
305 % \cs{telnumber} zur Formatierung uebergeben.
306 % \item Die Erkennung von einfachen Leerzeichen ist um einiges
307 % schwieriger: Die Tokentrennung ueber Parameter |#1#2| funktioniert
308 % nicht f\"ur einfache Leerzeichen, da TeX sie \emph{niemals} als
309 % eigenst\"andige Argumente behandelt! (The TeXbook, Chapter 20,
310 % p. 201)
311 %
312 % (Anmerkung am Rande: Deshalb funktionieren die entsprechenden
313 % Tokenmakros auf S. 149 des Buches "`Einf\"uhrung in TeX"' von
314 % N. Schwarz (3. Aufl.) nicht, wenn im Tokenregister als erstes
315 % ein einfaches Leerzeichen steht!)
316 % \end{itemize}
317 % \end{otherlanguage*}
318 %
319 % \StopEventually{
320 % }
321 %
322 % \section{Implementation}
323 %
324 % \begin{macrocode}
325 %<*package>
326 % \end{macrocode}
327 %
328 % \subsection{Reload check and package identification}
329 % Reload check, especially if the package is not used with \LaTeX.
330 % \begin{macrocode}
331 \begingroup\catcode61\catcode48\catcode32=10\relax%
332 \catcode13=5 % ^^M
333 \endlinechar=13 %
334 \catcode35=6 % #
335 \catcode39=12 % '
336 \catcode44=12 % ,
337 \catcode45=12 % -
338 \catcode46=12 % .
339 \catcode58=12 % :
340 \catcode64=11 % @
341 \catcode123=1 % {
342 \catcode125=2 % }
343 \expandafter\let\expandafter\x\csname [email protected]\endcsname
344 \ifx\x\relax % plain-TeX, first loading
345 \else
346 \def\empty{}%
347 \ifx\x\empty % LaTeX, first loading,
348 % variable is initialized, but \ProvidesPackage not yet seen
349 \else
350 \expandafter\ifx\csname PackageInfo\endcsname\relax
351 \def\x#1#2{%
352 \immediate\write-1{Package #1 Info: #2.}%
353 }%
354 \else
355 \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
356 \fi
357 \x{telprint}{The package is already loaded}%
358 \aftergroup\endinput
359 \fi
360 \fi
361 \endgroup%
362 % \end{macrocode}
363 % Package identification:
364 % \begin{macrocode}
365 \begingroup\catcode61\catcode48\catcode32=10\relax%
366 \catcode13=5 % ^^M
367 \endlinechar=13 %
368 \catcode35=6 % #
369 \catcode39=12 % '
370 \catcode40=12 % (
371 \catcode41=12 % )
372 \catcode44=12 % ,
373 \catcode45=12 % -
374 \catcode46=12 % .
375 \catcode47=12 % /
376 \catcode58=12 % :
377 \catcode64=11 % @
378 \catcode91=12 % [
379 \catcode93=12 % ]
380 \catcode123=1 % {
381 \catcode125=2 % }
382 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
383 \def\x#1#2#3[#4]{\endgroup
384 \immediate\write-1{Package: #3 #4}%
385 \xdef#1{#4}%
386 }%
387 \else
388 \def\x#1#2[#3]{\endgroup
389 #2[{#3}]%
390 \ifx#1\@undefined
391 \xdef#1{#3}%
392 \fi
393 \ifx#1\relax
394 \xdef#1{#3}%
395 \fi
396 }%
397 \fi
398 \expandafter\x\csname [email protected]\endcsname
399 \ProvidesPackage{telprint}%
400 [2024-07-26 v1.12 Format German phone numbers (HO)]%
401 % \end{macrocode}
402 %
403 % \subsection{Catcodes}
404 %
405 % \begin{macrocode}
406 \begingroup\catcode61\catcode48\catcode32=10\relax%
407 \catcode13=5 % ^^M
408 \endlinechar=13 %
409 \catcode123=1 % {
410 \catcode125=2 % }
411 \catcode64=11 % @
412 \def\x{\endgroup
413 \expandafter\edef\csname TELAtEnd\endcsname{%
414 \endlinechar=\the\endlinechar\relax
415 \catcode13=\the\catcode13\relax
416 \catcode32=\the\catcode32\relax
417 \catcode35=\the\catcode35\relax
418 \catcode61=\the\catcode61\relax
419 \catcode64=\the\catcode64\relax
420 \catcode123=\the\catcode123\relax
421 \catcode125=\the\catcode125\relax
422 }%
423 }%
424 \x\catcode61\catcode48\catcode32=10\relax%
425 \catcode13=5 % ^^M
426 \endlinechar=13 %
427 \catcode35=6 % #
428 \catcode64=11 % @
429 \catcode123=1 % {
430 \catcode125=2 % }
431 \def\TMP@EnsureCode#1#2{%
432 \edef\TELAtEnd{%
433 \TELAtEnd
434 \catcode#1=\the\catcode#1\relax
435 }%
436 \catcode#1=#2\relax
437 }
438 \TMP@EnsureCode{33}{12}% !
439 \TMP@EnsureCode{36}{3}% $
440 \TMP@EnsureCode{40}{12}% (
441 \TMP@EnsureCode{41}{12}% )
442 \TMP@EnsureCode{42}{12}% *
443 \TMP@EnsureCode{43}{12}% +
444 \TMP@EnsureCode{44}{12}% ,
445 \TMP@EnsureCode{45}{12}% -
446 \TMP@EnsureCode{46}{12}% .
447 \TMP@EnsureCode{47}{12}% /
448 \TMP@EnsureCode{91}{12}% [
449 \TMP@EnsureCode{93}{12}% ]
450 \TMP@EnsureCode{126}{13}% ~ (active)
451 \edef\TELAtEnd{\TELAtEnd\noexpand\endinput}
452 % \end{macrocode}
453 %
454 % \subsection{Package macros}
455 % \begin{macrocode}
456 \ifx\DeclareRobustCommand\UnDeFiNeD
457 \def\DeclareRobustCommand*#1[1]{\def#1##1}%
458 \def\TELreset{\let\DeclareRobustCommand=\UnDeFiNeD}%
459 \input infwarerr.sty\relax
460 \@PackageInfo{telprint}{%
461 Macros are not robust!%
462 }%
463 \else
464 \let\TELreset=\relax
465 \fi
466 % \end{macrocode}
467 % \begin{macro}{\telspace}
468 % \begin{macrocode}
469 \DeclareRobustCommand*{\telspace}[1]{\def\TELspace{#1}}
470 \ifcsname LaTeXReleaseInfo\endcsname
471 \telspace{\,}
472 \else
473 \telspace{{}$\,${}}
474 \fi
475 % \end{macrocode}
476 % \end{macro}
477 % \begin{macro}{\telhyphen}
478 % \begin{macrocode}
479 \DeclareRobustCommand*{\telhyphen}[1]{\def\TELhyphen{#1}}
480 \telhyphen{\leavevmode\hbox{-}}% \hbox zur Verhinderung der Trennung
481 % \end{macrocode}
482 % \end{macro}
483 % \begin{macro}{\telslash}
484 % \begin{macrocode}
485 \DeclareRobustCommand*{\telslash}[1]{\def\TELslash{#1}}
486 \telslash{/}%
487 % \end{macrocode}
488 % \end{macro}
489 % \begin{macro}{\telleftparen}
490 % \begin{macrocode}
491 \DeclareRobustCommand*{\telleftparen}[1]{\def\TELleftparen{#1}}
492 \telleftparen{(}%
493 % \end{macrocode}
494 % \end{macro}
495 % \begin{macro}{\telrightparen}
496 % \begin{macrocode}
497 \DeclareRobustCommand*{\telrightparen}[1]{\def\TELrightparen{#1}}
498 \telrightparen{)}%
499 % \end{macrocode}
500 % \end{macro}
501 % \begin{macro}{\telplus}
502 % \begin{macrocode}
503 \DeclareRobustCommand*{\telplus}[1]{\def\TELplus{#1}}
504 \telplus{+}%
505 % \end{macrocode}
506 % \end{macro}
507 % \begin{macro}{\teltilde}
508 % \begin{macrocode}
509 \DeclareRobustCommand*{\teltilde}[1]{\def\TELtilde{#1}}
510 \teltilde{~}%
511 % \end{macrocode}
512 % \end{macro}
513 % \begin{macro}{\TELtoks}
514 % \begin{macrocode}
515 \newtoks\TELtoks
516 % \end{macrocode}
517 % \end{macro}
518 % \begin{macro}{\TELnumber}
519 % \begin{macrocode}
520 \def\TELnumber#1#2\TELnumberEND{%
521 \begingroup
522 \def\0{#2}%
523 \expandafter\endgroup
524 \ifx\0\empty
525 \TELtoks=\expandafter{\the\TELtoks#1}%
526 \ifnum\TELswitch=0 %
527 \def\TELx{\TELspace}\def\TELy{}%
528 \else
529 \def\TELx{}\def\TELy{\TELspace}%
530 \fi
531 \the\TELtoks
532 \else
533 \ifnum\TELswitch=0 %
534 \TELtoks=\expandafter{\the\TELtoks#1\TELx}%
535 \def\TELswitch{1}%
536 \else
537 \TELtoks=\expandafter{\the\TELtoks#1\TELy}%
538 \def\TELswitch{0}%
539 \fi
540 \TELnumber#2\TELnumberEND
541 \fi
542 }
543 % \end{macrocode}
544 % \end{macro}
545 % \begin{macro}{\telnumber}
546 % \begin{macrocode}
547 \DeclareRobustCommand*{\telnumber}[1]{%
548 \TELtoks={}%
549 \def\TELswitch{0}%
550 \TELnumber#1{}\TELnumberEND
551 }
552 % \end{macrocode}
553 % \end{macro}
554 % \begin{macro}{\TELsplit}
555 % \begin{macrocode}
556 \def\TELsplit{\futurelet\TELfuture\TELdosplit}
557 % \end{macrocode}
558 % \end{macro}
559 % \begin{macro}{\TELdosplit}
560 % \begin{macrocode}
561 \def\TELdosplit#1#2\TELsplitEND
562 {%
563 \def\TELsp{ }%
564 \expandafter\ifx\TELsp\TELfuture
565 \let\TELfuture=\relax
566 \expandafter\telnumber\expandafter{\the\TELtoks}~%
567 \telprint{#1#2}% Das Leerzeichen kann nicht #1 sein!
568 \else
569 \def\TELfirst{#1}%
570 \ifx\TELfirst\empty
571 \expandafter\telnumber\expandafter{\the\TELtoks}%
572 \TELtoks={}%
573 \else\if-\TELfirst
574 \expandafter\telnumber\expandafter{\the\TELtoks}\TELhyphen
575 \telprint{#2}%
576 \else\if/\TELfirst
577 \expandafter\telnumber\expandafter{\the\TELtoks}\TELslash
578 \telprint{#2}%
579 \else\if(\TELfirst
580 \expandafter\telnumber\expandafter{\the\TELtoks}\TELleftparen
581 \telprint{#2}%
582 \else\if)\TELfirst
583 \expandafter\telnumber\expandafter{\the\TELtoks}\TELrightparen
584 \telprint{#2}%
585 \else\if+\TELfirst
586 \expandafter\telnumber\expandafter{\the\TELtoks}\TELplus
587 \telprint{#2}%
588 \else\def\TELtemp{~}\ifx\TELtemp\TELfirst
589 \expandafter\telnumber\expandafter{\the\TELtoks}\TELtilde
590 \telprint{#2}%
591 \else
592 \TELtoks=\expandafter{\the\TELtoks#1}%
593 \TELsplit#2{}\TELsplitEND
594 \fi\fi\fi\fi\fi\fi\fi
595 \fi
596 }
597 % \end{macrocode}
598 % \end{macro}
599 % \begin{macro}{\telprint}
600 % \begin{macrocode}
601 \DeclareRobustCommand*{\telprint}[1]{%
602 \TELtoks={}%
603 \TELsplit#1{}\TELsplitEND
604 }
605 % \end{macrocode}
606 % \end{macro}
607 % \begin{macrocode}
608 \TELreset\let\TELreset=\UnDeFiNeD
609 % \end{macrocode}
610 %
611 % \begin{macrocode}
612 \TELAtEnd%
613 %</package>
614 % \end{macrocode}
615 %% \section{Installation}
616 %
617 % \subsection{Download}
618 %
619 % \paragraph{Package.} This package is available on
620 % CTAN\footnote{\CTANpkg{telprint}}:
621 % \begin{description}
622 % \item[\CTAN{macros/latex/contrib/telprint/telprint.dtx}] The source file.
623 % \item[\CTAN{macros/latex/contrib/telprint/telprint.pdf}] Documentation.
624 % \end{description}
625 %
626 %
627 % \subsection{Package installation}
628 %
629 % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
630 % \docstrip\ archive. The files are extracted by running the
631 % \xfile{.dtx} through \plainTeX:
632 % \begin{quote}
633 % \verb|tex telprint.dtx|
634 % \end{quote}
635 %
636 % \paragraph{TDS.} Now the different files must be moved into
637 % the different directories in your installation TDS tree
638 % (also known as \xfile{texmf} tree):
639 % \begin{quote}
640 % \def\t{^^A
641 % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
642 % telprint.sty & tex/generic/telprint/telprint.sty\\
643 % telprint.pdf & doc/latex/telprint/telprint.pdf\\
644 % telprint.dtx & source/latex/telprint/telprint.dtx\\
645 % \end{tabular}^^A
646 % }^^A
647 % \sbox0{\t}^^A
648 % \ifdim\wd0>\linewidth
649 % \begingroup
650 % \advance\linewidth by\leftmargin
651 % \advance\linewidth by\rightmargin
652 % \edef\x{\endgroup
653 % \def\noexpand\lw{\the\linewidth}^^A
654 % }\x
655 % \def\lwbox{^^A
656 % \leavevmode
657 % \hbox to \linewidth{^^A
658 % \kern-\leftmargin\relax
659 % \hss
660 % \usebox0
661 % \hss
662 % \kern-\rightmargin\relax
663 % }^^A
664 % }^^A
665 % \ifdim\wd0>\lw
666 % \sbox0{\small\t}^^A
667 % \ifdim\wd0>\linewidth
668 % \ifdim\wd0>\lw
669 % \sbox0{\footnotesize\t}^^A
670 % \ifdim\wd0>\linewidth
671 % \ifdim\wd0>\lw
672 % \sbox0{\scriptsize\t}^^A
673 % \ifdim\wd0>\linewidth
674 % \ifdim\wd0>\lw
675 % \sbox0{\tiny\t}^^A
676 % \ifdim\wd0>\linewidth
677 % \lwbox
678 % \else
679 % \usebox0
680 % \fi
681 % \else
682 % \lwbox
683 % \fi
684 % \else
685 % \usebox0
686 % \fi
687 % \else
688 % \lwbox
689 % \fi
690 % \else
691 % \usebox0
692 % \fi
693 % \else
694 % \lwbox
695 % \fi
696 % \else
697 % \usebox0
698 % \fi
699 % \else
700 % \lwbox
701 % \fi
702 % \else
703 % \usebox0
704 % \fi
705 % \end{quote}
706 % If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's
707 % TDS installing feature, then some files can already be in the right
708 % place, see the documentation of \docstrip.
709 %
710 % \subsection{Refresh file name databases}
711 %
712 % If your \TeX~distribution
713 % (\TeX\,Live, \mikTeX, \dots) relies on file name databases, you must refresh
714 % these. For example, \TeX\,Live\ users run \verb|texhash| or
715 % \verb|mktexlsr|.
716 %
717 % \subsection{Some details for the interested}
718 %
719 % \paragraph{Unpacking with \LaTeX.}
720 % The \xfile{.dtx} chooses its action depending on the format:
721 % \begin{description}
722 % \item[\plainTeX:] Run \docstrip\ and extract the files.
723 % \item[\LaTeX:] Generate the documentation.
724 % \end{description}
725 % If you insist on using \LaTeX\ for \docstrip\ (really,
726 % \docstrip\ does not need \LaTeX), then inform the autodetect routine
727 % about your intention:
728 % \begin{quote}
729 % \verb|latex \let\install=y\input{telprint.dtx}|
730 % \end{quote}
731 % Do not forget to quote the argument according to the demands
732 % of your shell.
733 %
734 % \paragraph{Generating the documentation.}
735 % You can use both the \xfile{.dtx} or the \xfile{.drv} to generate
736 % the documentation. The process can be configured by the
737 % configuration file \xfile{ltxdoc.cfg}. For instance, put this
738 % line into this file, if you want to have A4 as paper format:
739 % \begin{quote}
740 % \verb|\PassOptionsToClass{a4paper}{article}|
741 % \end{quote}
742 % An example follows how to generate the
743 % documentation with pdf\LaTeX:
744 % \begin{quote}
745 %\begin{verbatim}
746 %pdflatex telprint.dtx
747 %makeindex -s gind.ist telprint.idx
748 %pdflatex telprint.dtx
749 %makeindex -s gind.ist telprint.idx
750 %pdflatex telprint.dtx
751 %\end{verbatim}
752 % \end{quote}
753 %
754 % \begin{History}
755 % \begin{Version}{1996/11/28 v1.0}
756 % \item
757 % Erste lauff\"ahige Version.
758 % \item
759 % Nur '-' und '/' als zul\"assige Sonderzeichen.
760 % \end{Version}
761 % \begin{Version}{1997/09/16 v1.1}
762 % \item
763 % Dokumentation und Kommentare (Posting in de.comp.text.tex).
764 % \item
765 % Erweiterung um Sonderzeichen '(', ')', '+', '\textasciitilde' und ' '.
766 % \item
767 % Trennungsverhinderung am 'hyphen'.
768 % \end{Version}
769 % \begin{Version}{1997/10/16 v1.2}
770 % \item
771 % Schutz vor wiederholtem Einlesen.
772 % \item
773 % Unter \LaTeXe\ Nutzung des \cs{DeclareRobustCommand}-Features.
774 % \end{Version}
775 % \begin{Version}{1997/12/09 v1.3}
776 % \item
777 % Tempor\"are Variable eingespart.
778 % \item
779 % Posted in newsgroup \xnewsgroup{de.comp.text.tex}:\\
780 % \URL{``\link{Re: Generisches Markup f\"ur Telefonnummern?}''}^^A
781 % {https://groups.google.com/group/de.comp.text.tex/msg/86b3a86140007309}
782 % \end{Version}
783 % \begin{Version}{2004/11/02 v1.4}
784 % \item
785 % Fehler in der Dokumentation korrigiert.
786 % \end{Version}
787 % \begin{Version}{2005/09/30 v1.5}
788 % \item
789 % Konfigurierbare Symbole: '/', '(', ')', '+' und '\textasciitilde'.
790 % \end{Version}
791 % \begin{Version}{2006/02/12 v1.6}
792 % \item
793 % LPPL 1.3.
794 % \item
795 % Kurze \"Ubersicht in Englisch.
796 % \item
797 % CTAN.
798 % \end{Version}
799 % \begin{Version}{2006/08/26 v1.7}
800 % \item
801 % New DTX framework.
802 % \end{Version}
803 % \begin{Version}{2007/04/11 v1.8}
804 % \item
805 % Line ends sanitized.
806 % \end{Version}
807 % \begin{Version}{2007/09/09 v1.9}
808 % \item
809 % Catcode section added.
810 % \item
811 % Missing docstrip tag added.
812 % \end{Version}
813 % \begin{Version}{2008/08/11 v1.10}
814 % \item
815 % Code is not changed.
816 % \item
817 % URLs updated.
818 % \end{Version}
819 % \begin{Version}{2016/05/16 v1.11}
820 % \item
821 % Documentation updates.
822 % \end{Version}
823 % \begin{Version}{2024-07-26 v1.12}
824 % \item Avoid math in \cs{telspace} for better tagging support.
825 % \end{Version}
826 % \end{History}
827 %
828 % \PrintIndex
829 %
830 % \Finale
831 \endinput