Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %
3 % File: infwarerr.dtx
4 % Version: 2019/12/03 v1.5
5 % Info: Providing info/warning/error messages
6 %
7 % Copyright (C)
8 % 2007, 2010 Heiko Oberdiek
9 % 2016-2019 Oberdiek Package Support Group
10 % https://github.com/ho-tex/infwarerr/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/infwarerr/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 infwarerr.dtx
32 % and the derived files
33 % infwarerr.sty, infwarerr.pdf, infwarerr.ins, infwarerr.drv,
34 % infwarerr-test1.tex, infwarerr-test2.tex,
35 % infwarerr-test3.tex.
36 %
37 % Distribution:
38 % CTAN:macros/latex/contrib/infwarerr/infwarerr.dtx
39 % CTAN:macros/latex/contrib/infwarerr/infwarerr.pdf
40 %
41 % Unpacking:
42 % (a) If infwarerr.ins is present:
43 % tex infwarerr.ins
44 % (b) Without infwarerr.ins:
45 % tex infwarerr.dtx
46 % (c) If you insist on using LaTeX
47 % latex \let\install=y\input{infwarerr.dtx}
48 % (quote the arguments according to the demands of your shell)
49 %
50 % Documentation:
51 % (a) If infwarerr.drv is present:
52 % latex infwarerr.drv
53 % (b) Without infwarerr.drv:
54 % latex infwarerr.dtx; ...
55 % The class ltxdoc loads the configuration file ltxdoc.cfg
56 % if available. Here you can specify further options, e.g.
57 % use A4 as paper format:
58 % \PassOptionsToClass{a4paper}{article}
59 %
60 % Programm calls to get the documentation (example):
61 % pdflatex infwarerr.dtx
62 % makeindex -s gind.ist infwarerr.idx
63 % pdflatex infwarerr.dtx
64 % makeindex -s gind.ist infwarerr.idx
65 % pdflatex infwarerr.dtx
66 %
67 % Installation:
68 % TDS:tex/generic/infwarerr/infwarerr.sty
69 % TDS:doc/latex/infwarerr/infwarerr.pdf
70 % TDS:source/latex/infwarerr/infwarerr.dtx
71 %
72 %<*ignore>
73 \begingroup
74 \catcode123=1 %
75 \catcode125=2 %
76 \def\x{LaTeX2e}%
77 \expandafter\endgroup
78 \ifcase 0\ifx\install y1\fi\expandafter
79 \ifx\csname processbatchFile\endcsname\relax\else1\fi
80 \ifx\fmtname\x\else 1\fi\relax
81 \else\csname fi\endcsname
82 %</ignore>
83 %<*install>
84 \input docstrip.tex
85 \Msg{************************************************************************}
86 \Msg{* Installation}
87 \Msg{* Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)}
88 \Msg{************************************************************************}
89
90 \keepsilent
91 \askforoverwritefalse
92
93 \let\MetaPrefix\relax
94 \preamble
95
96 This is a generated file.
97
98 Project: infwarerr
99 Version: 2019/12/03 v1.5
100
101 Copyright (C)
102 2007, 2010 Heiko Oberdiek
103 2016-2019 Oberdiek Package Support Group
104
105 This work may be distributed and/or modified under the
106 conditions of the LaTeX Project Public License, either
107 version 1.3c of this license or (at your option) any later
108 version. This version of this license is in
109 https://www.latex-project.org/lppl/lppl-1-3c.txt
110 and the latest version of this license is in
111 https://www.latex-project.org/lppl.txt
112 and version 1.3 or later is part of all distributions of
113 LaTeX version 2005/12/01 or later.
114
115 This work has the LPPL maintenance status "maintained".
116
117 The Current Maintainers of this work are
118 Heiko Oberdiek and the Oberdiek Package Support Group
119 https://github.com/ho-tex/infwarerr/issues
120
121
122 The Base Interpreter refers to any `TeX-Format',
123 because some files are installed in TDS:tex/generic//.
124
125 This work consists of the main source file infwarerr.dtx
126 and the derived files
127 infwarerr.sty, infwarerr.pdf, infwarerr.ins, infwarerr.drv,
128 infwarerr-test1.tex, infwarerr-test2.tex,
129 infwarerr-test3.tex.
130
131 \endpreamble
132 \let\MetaPrefix\DoubleperCent
133
134 \generate{%
135 \file{infwarerr.ins}{\from{infwarerr.dtx}{install}}%
136 \file{infwarerr.drv}{\from{infwarerr.dtx}{driver}}%
137 \usedir{tex/generic/infwarerr}%
138 \file{infwarerr.sty}{\from{infwarerr.dtx}{package}}%
139 % \usedir{doc/latex/infwarerr/test}%
140 % \file{infwarerr-test1.tex}{\from{infwarerr.dtx}{test1}}%
141 % \file{infwarerr-test2.tex}{\from{infwarerr.dtx}{test2}}%
142 % \file{infwarerr-test3.tex}{\from{infwarerr.dtx}{test3}}%
143 }
144
145 \catcode32=13\relax% active space
146 \let =\space%
147 \Msg{************************************************************************}
148 \Msg{*}
149 \Msg{* To finish the installation you have to move the following}
150 \Msg{* file into a directory searched by TeX:}
151 \Msg{*}
152 \Msg{* infwarerr.sty}
153 \Msg{*}
154 \Msg{* To produce the documentation run the file `infwarerr.drv'}
155 \Msg{* through LaTeX.}
156 \Msg{*}
157 \Msg{* Happy TeXing!}
158 \Msg{*}
159 \Msg{************************************************************************}
160
161 \endbatchfile
162 %</install>
163 %<*ignore>
164 \fi
165 %</ignore>
166 %<*driver>
167 \NeedsTeXFormat{LaTeX2e}
168 \ProvidesFile{infwarerr.drv}%
169 [2019/12/03 v1.5 Providing info/warning/error messages (HO)]%
170 \documentclass{ltxdoc}
171 \usepackage{holtxdoc}[2011/11/22]
172 \begin{document}
173 \DocInput{infwarerr.dtx}%
174 \end{document}
175 %</driver>
176 % \fi
177 %
178 %
179 %
180 % \GetFileInfo{infwarerr.drv}
181 %
182 % \title{The \xpackage{infwarerr} package}
183 % \date{2019/12/03 v1.5}
184 % \author{Heiko Oberdiek\thanks
185 % {Please report any issues at \url{https://github.com/ho-tex/infwarerr/issues}}}
186 %
187 % \maketitle
188 %
189 % \begin{abstract}
190 % This package provides a complete set of macros for informations,
191 % warnings and error messages with support for \plainTeX.
192 % \end{abstract}
193 %
194 % \tableofcontents
195 %
196 % \section{Documentation}
197 %
198 % Package \xpackage{infwarerr} defines the following set of commands,
199 % given as pseudo regular expression:
200 % \begin{quote}
201 % \verb+\@(Package|Class)(Info|InfoNoLine|Warning|WarningNoLine|Error)+^^A
202 % \kern-\rightmargin
203 % \end{quote}
204 % The first argument is the package or class in question. The second
205 % argument contains the message text. \cs{MessageBreak} is supported.
206 % In case of error messages, the third argument contains the help
207 % text. Supported are \LaTeX's message texts \cs{@ehc}:
208 % \begin{quote}
209 % |Try typing <return> to proceed|\\
210 % |If that doesn't work, type X <return> to quit.|
211 % \end{quote}
212 % and \cs{@ehd}:
213 % \begin{quote}
214 % |You're in trouble here. Try typing <return> to proceed|\\
215 % |If that doesn't work, type X <return> to quit.|
216 % \end{quote}
217 %
218 % The package is intended for macro writers that want to write
219 % code that works for both \LaTeX\ and \plainTeX. If \LaTeX\ is
220 % detected, then the macros of this package will only be wrappers
221 % for \LaTeX's macros. Otherwise \LaTeX's macros will be mimicked
222 % for use with \plainTeX.
223 %
224 % \StopEventually{
225 % }
226 %
227 % \section{Implementation}
228 %
229 % \begin{macrocode}
230 %<*package>
231 % \end{macrocode}
232 %
233 % \subsection{Reload check and package identification}
234 % Reload check, especially if the package is not used with \LaTeX.
235 % \begin{macrocode}
236 \begingroup\catcode61\catcode48\catcode32=10\relax%
237 \catcode13=5 % ^^M
238 \endlinechar=13 %
239 \catcode35=6 % #
240 \catcode39=12 % '
241 \catcode44=12 % ,
242 \catcode45=12 % -
243 \catcode46=12 % .
244 \catcode58=12 % :
245 \catcode64=11 % @
246 \catcode123=1 % {
247 \catcode125=2 % }
248 \expandafter\let\expandafter\x\csname [email protected]\endcsname
249 \ifx\x\relax % plain-TeX, first loading
250 \else
251 \def\empty{}%
252 \ifx\x\empty % LaTeX, first loading,
253 % variable is initialized, but \ProvidesPackage not yet seen
254 \else
255 \expandafter\ifx\csname PackageInfo\endcsname\relax
256 \def\x#1#2{%
257 \immediate\write-1{Package #1 Info: #2.}%
258 }%
259 \else
260 \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
261 \fi
262 \x{infwarerr}{The package is already loaded}%
263 \aftergroup\endinput
264 \fi
265 \fi
266 \endgroup%
267 % \end{macrocode}
268 % Package identification:
269 % \begin{macrocode}
270 \begingroup\catcode61\catcode48\catcode32=10\relax%
271 \catcode13=5 % ^^M
272 \endlinechar=13 %
273 \catcode35=6 % #
274 \catcode39=12 % '
275 \catcode40=12 % (
276 \catcode41=12 % )
277 \catcode44=12 % ,
278 \catcode45=12 % -
279 \catcode46=12 % .
280 \catcode47=12 % /
281 \catcode58=12 % :
282 \catcode64=11 % @
283 \catcode91=12 % [
284 \catcode93=12 % ]
285 \catcode123=1 % {
286 \catcode125=2 % }
287 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
288 \def\x#1#2#3[#4]{\endgroup
289 \immediate\write-1{Package: #3 #4}%
290 \xdef#1{#4}%
291 }%
292 \else
293 \def\x#1#2[#3]{\endgroup
294 #2[{#3}]%
295 \ifx#1\@undefined
296 \xdef#1{#3}%
297 \fi
298 \ifx#1\relax
299 \xdef#1{#3}%
300 \fi
301 }%
302 \fi
303 \expandafter\x\csname [email protected]\endcsname
304 \ProvidesPackage{infwarerr}%
305 [2019/12/03 v1.5 Providing info/warning/error messages (HO)]%
306 % \end{macrocode}
307 %
308 % \subsection{Catcodes}
309 %
310 % \begin{macrocode}
311 \begingroup\catcode61\catcode48\catcode32=10\relax%
312 \catcode13=5 % ^^M
313 \endlinechar=13 %
314 \catcode123=1 % {
315 \catcode125=2 % }
316 \catcode64=11 % @
317 \def\x{\endgroup
318 \expandafter\edef\csname InfWarErr@AtEnd\endcsname{%
319 \endlinechar=\the\endlinechar\relax
320 \catcode13=\the\catcode13\relax
321 \catcode32=\the\catcode32\relax
322 \catcode35=\the\catcode35\relax
323 \catcode61=\the\catcode61\relax
324 \catcode64=\the\catcode64\relax
325 \catcode123=\the\catcode123\relax
326 \catcode125=\the\catcode125\relax
327 }%
328 }%
329 \x\catcode61\catcode48\catcode32=10\relax%
330 \catcode13=5 % ^^M
331 \endlinechar=13 %
332 \catcode35=6 % #
333 \catcode64=11 % @
334 \catcode123=1 % {
335 \catcode125=2 % }
336 \def\TMP@EnsureCode#1#2{%
337 \edef\InfWarErr@AtEnd{%
338 \InfWarErr@AtEnd
339 \catcode#1=\the\catcode#1\relax
340 }%
341 \catcode#1=#2\relax
342 }
343 \TMP@EnsureCode{10}{12}% ^^J
344 \TMP@EnsureCode{39}{12}% '
345 \TMP@EnsureCode{40}{12}% (
346 \TMP@EnsureCode{41}{12}% )
347 \TMP@EnsureCode{44}{12}% ,
348 \TMP@EnsureCode{45}{12}% -
349 \TMP@EnsureCode{46}{12}% .
350 \TMP@EnsureCode{58}{12}% :
351 \TMP@EnsureCode{60}{12}% <
352 \TMP@EnsureCode{62}{12}% >
353 \TMP@EnsureCode{94}{7}% ^
354 \edef\InfWarErr@AtEnd{\InfWarErr@AtEnd\noexpand\endinput}
355 % \end{macrocode}
356 %
357 % \subsection{\LaTeX\ detection}
358 %
359 % \begin{macrocode}
360 \begingroup
361 \let\x=Y%
362 \def\check#1{%
363 \@check{Generic}{#1}%
364 \@check{Package}{#1}%
365 \@check{Class}{#1}%
366 }%
367 \def\@check#1#2{%
368 \expandafter\ifx\csname #1#2\endcsname\relax
369 \let\x=N%
370 \fi
371 }%
372 \check{Info}%
373 \check{Warning}%
374 \check{Error}%
375 \@check{Package}{WarningNoLine}%
376 \@check{Class}{WarningNoLine}%
377 \@check{}{@ehc}%
378 \@check{}{@ehd}%
379 \expandafter\endgroup
380 \ifx\x Y%
381 % \end{macrocode}
382 %
383 % \subsection{Version for \LaTeX}
384 %
385 % \begin{macro}{\@PackageInfo}
386 % \begin{macrocode}
387 \let\@PackageInfo\PackageInfo
388 % \end{macrocode}
389 % \end{macro}
390 % \begin{macro}{\@PackageInfoNoLine}
391 % \begin{macrocode}
392 \def\@PackageInfoNoLine#1#2{%
393 \PackageInfo{#1}{#2\@gobble}%
394 }%
395 % \end{macrocode}
396 % \end{macro}
397 % \begin{macro}{\@ClassInfo}
398 % \begin{macrocode}
399 \let\@ClassInfo\ClassInfo
400 % \end{macrocode}
401 % \end{macro}
402 % \begin{macro}{\@ClassInfoNoLine}
403 % \begin{macrocode}
404 \def\@ClassInfoNoLine#1#2{%
405 \ClassInfo{#1}{#2\@gobble}%
406 }%
407 % \end{macrocode}
408 % \end{macro}
409 % \begin{macro}{\@PackageWarning}
410 % \begin{macrocode}
411 \let\@PackageWarning\PackageWarning
412 % \end{macrocode}
413 % \end{macro}
414 % \begin{macro}{\@PackageWarningNoLine}
415 % \begin{macrocode}
416 \let\@PackageWarningNoLine\PackageWarningNoLine
417 % \end{macrocode}
418 % \end{macro}
419 % \begin{macro}{\@ClassWarning}
420 % \begin{macrocode}
421 \let\@ClassWarning\ClassWarning
422 % \end{macrocode}
423 % \end{macro}
424 % \begin{macro}{\@ClassWarningNoLine}
425 % \begin{macrocode}
426 \let\@ClassWarningNoLine\ClassWarningNoLine
427 % \end{macrocode}
428 % \end{macro}
429 % \begin{macro}{\@PackageError}
430 % \begin{macrocode}
431 \let\@PackageError\PackageError
432 % \end{macrocode}
433 % \end{macro}
434 % \begin{macro}{\@ClassError}
435 % \begin{macrocode}
436 \let\@ClassError\ClassError
437 % \end{macrocode}
438 % \end{macro}
439 % \begin{macrocode}
440 \expandafter\InfWarErr@AtEnd
441 \fi%
442 % \end{macrocode}
443 %
444 % \subsection{Version for \plainTeX}
445 %
446 % \begin{macro}{\InfWarErr@online}
447 % \begin{macrocode}
448 \begingroup\expandafter\endgroup
449 \ifcase\expandafter\ifx\csname inputlineno\endcsname\relax
450 0 %
451 \else
452 \ifnum\inputlineno<0 %
453 0 %
454 \else
455 1 %
456 \fi
457 \fi
458 \def\InfWarErr@online{}%
459 \else
460 \def\InfWarErr@online{ on input line \the\inputlineno}%
461 \fi
462 % \end{macrocode}
463 % \end{macro}
464 %
465 % \begin{macro}{\InfWarErr@protected}
466 % \begin{macrocode}
467 \begingroup\expandafter\expandafter\expandafter\endgroup
468 \expandafter\ifx\csname protected\endcsname\relax
469 \def\InfWarErr@protected{}%
470 \else
471 \let\InfWarErr@protected\protected
472 \fi
473 % \end{macrocode}
474 % \end{macro}
475 %
476 % \begin{macro}{\InfWarErr@unused}
477 % \begin{macrocode}
478 \chardef\InfWarErr@unused=16 %
479 % \end{macrocode}
480 % \end{macro}
481 %
482 % \begin{macro}{\InfWarErr@ehc}
483 % \begin{macrocode}
484 \def\InfWarErr@ehc{%
485 Try typing \space <return> \space to proceed.\MessageBreak
486 If that doesn't work, type \space X <return> \space to quit.%
487 }
488 % \end{macrocode}
489 % \end{macro}
490 % \begin{macro}{\InfWarErr@ehd}
491 % \begin{macrocode}
492 \def\InfWarErr@ehd{%
493 You're in trouble here. \space\@ehc
494 }
495 % \end{macrocode}
496 % \end{macro}
497 %
498 % \begin{macro}{\InfWarErr@GenericInfo}
499 % \begin{macrocode}
500 \InfWarErr@protected\def\InfWarErr@GenericInfo#1#2{%
501 \begingroup
502 \let\on@line\InfWarErr@online
503 \long\def\@gobble##1{}%
504 \def\space{ }%
505 \def\@spaces{\space\space\space\space}%
506 \def\MessageBreak{^^J#1}%
507 \newlinechar=10 %
508 \escapechar=92 %
509 \immediate\write-1{#2\on@line.}%
510 \endgroup
511 }
512 % \end{macrocode}
513 % \end{macro}
514 % \begin{macro}{\InfWarErr@GenericWarning}
515 % \begin{macrocode}
516 \InfWarErr@protected\def\InfWarErr@GenericWarning#1#2{%
517 \begingroup
518 \let\on@line\InfWarErr@online
519 \long\def\@gobble##1{}%
520 \def\space{ }%
521 \def\@spaces{\space\space\space\space}%
522 \def\MessageBreak{^^J#1}%
523 \newlinechar=10 %
524 \escapechar=92 %
525 \immediate\write\InfWarErr@unused{^^J#2\on@line.^^J}%
526 \endgroup
527 }
528 % \end{macrocode}
529 % \end{macro}
530 % \begin{macro}{\InfWarErr@GenericError}
531 % Old \TeX\ versions below 3.141 where |^^J| is not working
532 % as newline in error message and help texts are not supported.
533 % \begin{macrocode}
534 \InfWarErr@protected\def\InfWarErr@GenericError#1#2#3#4{%
535 \begingroup
536 \immediate\write\InfWarErr@unused{}%
537 \def\space{ }%
538 \def\@spaces{\space\space\space\space}%
539 \let\@ehc\InfWarErr@ehc
540 \let\@ehd\InfWarErr@ehd
541 \let\on@line\InfWarErr@online
542 \def\MessageBreak{^^J}%
543 \newlinechar=10 %
544 \escapechar=92 %
545 \edef\InfWarErr@help{\noexpand\errhelp{#4}}%
546 \InfWarErr@help
547 \def\MessageBreak{^^J#1}%
548 \errmessage{%
549 #2.^^J^^J%
550 #3^^J%
551 Type \space H <return> \space for immediate help.^^J ...^^J%
552 }%
553 \endgroup
554 }
555 % \end{macrocode}
556 % \end{macro}
557 %
558 % \begin{macro}{\@PackageInfo}
559 % \begin{macrocode}
560 \def\@PackageInfo#1#2{%
561 \InfWarErr@GenericInfo{%
562 (#1) \@spaces\@spaces\@spaces
563 }{%
564 Package #1 Info: #2%
565 }%
566 }
567 % \end{macrocode}
568 % \end{macro}
569 % \begin{macro}{\@PackageInfoNoLine}
570 % \begin{macrocode}
571 \def\@PackageInfoNoLine#1#2{%
572 \@PackageInfo{#1}{#2\@gobble}%
573 }
574 % \end{macrocode}
575 % \end{macro}
576 % \begin{macro}{\@ClassInfo}
577 % \begin{macrocode}
578 \def\@ClassInfo#1#2{%
579 \InfWarErr@GenericInfo{%
580 (#1) \space\space\@spaces\@spaces
581 }{%
582 Class #1 Info: #2%
583 }%
584 }
585 % \end{macrocode}
586 % \end{macro}
587 % \begin{macro}{\@ClassInfoNoLine}
588 % \begin{macrocode}
589 \def\@ClassInfoNoLine#1#2{%
590 \@ClassInfo{#1}{#2\@gobble}%
591 }
592 % \end{macrocode}
593 % \end{macro}
594 % \begin{macro}{\@PackageWarning}
595 % \begin{macrocode}
596 \def\@PackageWarning#1#2{%
597 \InfWarErr@GenericWarning{%
598 (#1)\@spaces\@spaces\@spaces\@spaces
599 }{%
600 Package #1 Warning: #2%
601 }%
602 }
603 % \end{macrocode}
604 % \end{macro}
605 % \begin{macro}{\@PackageWarningNoLine}
606 % \begin{macrocode}
607 \def\@PackageWarningNoLine#1#2{%
608 \@PackageWarning{#1}{#2\@gobble}%
609 }
610 % \end{macrocode}
611 % \end{macro}
612 % \begin{macro}{\@ClassWarning}
613 % \begin{macrocode}
614 \def\@ClassWarning#1#2{%
615 \InfWarErr@GenericWarning{%
616 (#1) \space\@spaces\@spaces\@spaces
617 }{%
618 Class #1 Warning: #2%
619 }%
620 }
621 % \end{macrocode}
622 % \end{macro}
623 % \begin{macro}{\@ClassWarningNoLine}
624 % \begin{macrocode}
625 \def\@ClassWarningNoLine#1#2{%
626 \@ClassWarning{#1}{#2\@gobble}%
627 }
628 % \end{macrocode}
629 % \end{macro}
630 % \begin{macro}{\@PackageError}
631 % \begin{macrocode}
632 \def\@PackageError#1#2#3{%
633 \InfWarErr@GenericError{%
634 (#1)\@spaces\@spaces\@spaces\@spaces
635 }{%
636 Package #1 Error: #2%
637 }{%
638 See the #1 package documentation for explanation.%
639 }{#3}%
640 }
641 % \end{macrocode}
642 % \end{macro}
643 % \begin{macro}{\@ClassError}
644 % \begin{macrocode}
645 \def\@ClassError#1#2#3{%
646 \InfWarErr@GenericError{%
647 (#1) \space\@spaces\@spaces\@spaces
648 }{%
649 Class #1 Error: #2%
650 }{%
651 See the #1 class documentation for explanation.%
652 }{#3}%
653 }
654 % \end{macrocode}
655 % \end{macro}
656 %
657 % \begin{macrocode}
658 \InfWarErr@AtEnd%
659 %</package>
660 % \end{macrocode}
661 % \section{Installation}
662 %
663 % \subsection{Download}
664 %
665 % \paragraph{Package.} This package is available on
666 % CTAN\footnote{\CTANpkg{infwarerr}}:
667 % \begin{description}
668 % \item[\CTAN{macros/latex/contrib/infwarerr/infwarerr.dtx}] The source file.
669 % \item[\CTAN{macros/latex/contrib/infwarerr/infwarerr.pdf}] Documentation.
670 % \end{description}
671 %
672 %
673 % \paragraph{Bundle.} All the packages of the bundle `infwarerr'
674 % are also available in a TDS compliant ZIP archive. There
675 % the packages are already unpacked and the documentation files
676 % are generated. The files and directories obey the TDS standard.
677 % \begin{description}
678 % \item[\CTANinstall{install/macros/latex/contrib/infwarerr.tds.zip}]
679 % \end{description}
680 % \emph{TDS} refers to the standard ``A Directory Structure
681 % for \TeX\ Files'' (\CTANpkg{tds}). Directories
682 % with \xfile{texmf} in their name are usually organized this way.
683 %
684 % \subsection{Bundle installation}
685 %
686 % \paragraph{Unpacking.} Unpack the \xfile{infwarerr.tds.zip} in the
687 % TDS tree (also known as \xfile{texmf} tree) of your choice.
688 % Example (linux):
689 % \begin{quote}
690 % |unzip infwarerr.tds.zip -d ~/texmf|
691 % \end{quote}
692 %
693 % \subsection{Package installation}
694 %
695 % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
696 % \docstrip\ archive. The files are extracted by running the
697 % \xfile{.dtx} through \plainTeX:
698 % \begin{quote}
699 % \verb|tex infwarerr.dtx|
700 % \end{quote}
701 %
702 % \paragraph{TDS.} Now the different files must be moved into
703 % the different directories in your installation TDS tree
704 % (also known as \xfile{texmf} tree):
705 % \begin{quote}
706 % \def\t{^^A
707 % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
708 % infwarerr.sty & tex/generic/infwarerr/infwarerr.sty\\
709 % infwarerr.pdf & doc/latex/infwarerr/infwarerr.pdf\\
710 % infwarerr.dtx & source/latex/infwarerr/infwarerr.dtx\\
711 % \end{tabular}^^A
712 % }^^A
713 % \sbox0{\t}^^A
714 % \ifdim\wd0>\linewidth
715 % \begingroup
716 % \advance\linewidth by\leftmargin
717 % \advance\linewidth by\rightmargin
718 % \edef\x{\endgroup
719 % \def\noexpand\lw{\the\linewidth}^^A
720 % }\x
721 % \def\lwbox{^^A
722 % \leavevmode
723 % \hbox to \linewidth{^^A
724 % \kern-\leftmargin\relax
725 % \hss
726 % \usebox0
727 % \hss
728 % \kern-\rightmargin\relax
729 % }^^A
730 % }^^A
731 % \ifdim\wd0>\lw
732 % \sbox0{\small\t}^^A
733 % \ifdim\wd0>\linewidth
734 % \ifdim\wd0>\lw
735 % \sbox0{\footnotesize\t}^^A
736 % \ifdim\wd0>\linewidth
737 % \ifdim\wd0>\lw
738 % \sbox0{\scriptsize\t}^^A
739 % \ifdim\wd0>\linewidth
740 % \ifdim\wd0>\lw
741 % \sbox0{\tiny\t}^^A
742 % \ifdim\wd0>\linewidth
743 % \lwbox
744 % \else
745 % \usebox0
746 % \fi
747 % \else
748 % \lwbox
749 % \fi
750 % \else
751 % \usebox0
752 % \fi
753 % \else
754 % \lwbox
755 % \fi
756 % \else
757 % \usebox0
758 % \fi
759 % \else
760 % \lwbox
761 % \fi
762 % \else
763 % \usebox0
764 % \fi
765 % \else
766 % \lwbox
767 % \fi
768 % \else
769 % \usebox0
770 % \fi
771 % \end{quote}
772 % If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's
773 % TDS installing feature, then some files can already be in the right
774 % place, see the documentation of \docstrip.
775 %
776 % \subsection{Refresh file name databases}
777 %
778 % If your \TeX~distribution
779 % (\TeX\,Live, \mikTeX, \dots) relies on file name databases, you must refresh
780 % these. For example, \TeX\,Live\ users run \verb|texhash| or
781 % \verb|mktexlsr|.
782 %
783 % \subsection{Some details for the interested}
784 %
785 % \paragraph{Unpacking with \LaTeX.}
786 % The \xfile{.dtx} chooses its action depending on the format:
787 % \begin{description}
788 % \item[\plainTeX:] Run \docstrip\ and extract the files.
789 % \item[\LaTeX:] Generate the documentation.
790 % \end{description}
791 % If you insist on using \LaTeX\ for \docstrip\ (really,
792 % \docstrip\ does not need \LaTeX), then inform the autodetect routine
793 % about your intention:
794 % \begin{quote}
795 % \verb|latex \let\install=y\input{infwarerr.dtx}|
796 % \end{quote}
797 % Do not forget to quote the argument according to the demands
798 % of your shell.
799 %
800 % \paragraph{Generating the documentation.}
801 % You can use both the \xfile{.dtx} or the \xfile{.drv} to generate
802 % the documentation. The process can be configured by the
803 % configuration file \xfile{ltxdoc.cfg}. For instance, put this
804 % line into this file, if you want to have A4 as paper format:
805 % \begin{quote}
806 % \verb|\PassOptionsToClass{a4paper}{article}|
807 % \end{quote}
808 % An example follows how to generate the
809 % documentation with pdf\LaTeX:
810 % \begin{quote}
811 %\begin{verbatim}
812 %pdflatex infwarerr.dtx
813 %makeindex -s gind.ist infwarerr.idx
814 %pdflatex infwarerr.dtx
815 %makeindex -s gind.ist infwarerr.idx
816 %pdflatex infwarerr.dtx
817 %\end{verbatim}
818 % \end{quote}
819 %
820 % \begin{History}
821 % \begin{Version}{2007/04/26 v1.0}
822 % \item
823 % First version.
824 % \end{Version}
825 % \begin{Version}{2007/06/14 v1.1}
826 % \item
827 % Small fixes.
828 % \end{Version}
829 % \begin{Version}{2007/09/09 v1.2}
830 % \item
831 % Catcode section extended.
832 % \end{Version}
833 % \begin{Version}{2010/04/08 v1.3}
834 % \item
835 % Ensure \cs{escapechar}=92 (backslash) for infos/warnings/errors.
836 % \end{Version}
837 % \begin{Version}{2016/05/16 v1.4}
838 % \item
839 % Documentation updates.
840 % \end{Version}
841 % \begin{Version}{2019/12/03 v1.5}
842 % \item
843 % Documentation updates.
844 % \end{Version}
845 % \end{History}
846 %
847 % \PrintIndex
848 %
849 % \Finale
850 \endinput