| 1 |
README for warning package, 2025-01-01, v0.11 |
| 2 |
|
| 3 |
|
| 4 |
TABLE OF CONTENTS |
| 5 |
================= |
| 6 |
|
| 7 |
1 Introduction |
| 8 |
2 Download |
| 9 |
3 Installation |
| 10 |
|
| 11 |
|
| 12 |
1 INTRODUCTION |
| 13 |
============== |
| 14 |
|
| 15 |
Note 1: This package is obsolete. For LaTeX-format 2020-10-01 and newer: |
| 16 |
Instead of \addglobalwarning{ something } use |
| 17 |
\AddToHook{enddocument/info}{ something } and do not load the warning package. |
| 18 |
|
| 19 |
Note 2: The package author, Harald Harders, is inactive. |
| 20 |
|
| 21 |
|
| 22 |
Sometimes a class or package has to make a global warning such as |
| 23 |
"Rerun for this or that reason" or "This is draft, change this |
| 24 |
before the final run". If you are generating them with |
| 25 |
\AtEndDocument{\PackageWarningNoLine{<packagename>}{<warning>}} |
| 26 |
the warning appears very early before the filelist. Then the warning can easily be |
| 27 |
overseen. This package provides a command that surely puts the warning at the end |
| 28 |
near to the global warnings generated by LaTeX itself. You can add a warning to a list |
| 29 |
of user defined warnings using the command \addglobalwarning as it can be seen in |
| 30 |
the example below. |
| 31 |
|
| 32 |
This material is published under the LPPL 1.3c: This work may be |
| 33 |
distributed and/or modified under the conditions of the LaTeX Project |
| 34 |
Public License, either version 1.3c of this license or (at your option) |
| 35 |
any later version. This version of this license is in |
| 36 |
https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 37 |
and the latest version of this license is in |
| 38 |
https://www.latex-project.org/lppl.txt |
| 39 |
and version 1.3c or later is part of all distributions of |
| 40 |
LaTeX version 2005-12-01 or later. |
| 41 |
|
| 42 |
|
| 43 |
2 DOWNLOAD |
| 44 |
========== |
| 45 |
|
| 46 |
"warning" is available on CTAN: |
| 47 |
https://ctan.org/pkg/warning |
| 48 |
|
| 49 |
Also a ZIP file is provided that contains the files: |
| 50 |
the manual (warning-doc.tex and warning-doc.pdf, |
| 51 |
including examples), |
| 52 |
the style file (warning.sty), |
| 53 |
and this README: |
| 54 |
https://mirrors.ctan.org/macros/latex/contrib/warning.zip |
| 55 |
|
| 56 |
|
| 57 |
3 INSTALLATION |
| 58 |
============== |
| 59 |
|
| 60 |
a) Download the warning files from CTAN. |
| 61 |
If necessary, unpack them. |
| 62 |
b) Install the file "warning.sty" in your TDS tree: |
| 63 |
cp warning.sty TDS:tex/latex/warning/ |
| 64 |
Replace "TDS:" by the prefix of your TDS tree |
| 65 |
(texmf directory). |
| 66 |
c) Create the documentation, if necessary, e.g. |
| 67 |
pdflatex warning.tex |
| 68 |
pdflatex warning.tex |
| 69 |
d) Update the databases if necessary, e.g. for TeX Live |
| 70 |
texhash or mktexlsr. |
| 71 |
e) Create the warning-example.pdf, if necessary, |
| 72 |
by copying the example code from the documentation |
| 73 |
into (a) separate .tex file(s) and compiling that (those). |
| 74 |
f) Copy the documentation files to |
| 75 |
"TDS:doc/latex/warning/": |
| 76 |
README, warning.pdf, warning.tex, |
| 77 |
and the example(s), if you created any. |