diff options
Diffstat (limited to 'macros/latex/contrib/warning/warning-doc.tex')
-rw-r--r-- | macros/latex/contrib/warning/warning-doc.tex | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/macros/latex/contrib/warning/warning-doc.tex b/macros/latex/contrib/warning/warning-doc.tex index d8b78dbdf6..82a93be17e 100644 --- a/macros/latex/contrib/warning/warning-doc.tex +++ b/macros/latex/contrib/warning/warning-doc.tex @@ -1,10 +1,6 @@ -\documentclass[pagesize=auto, parskip=half, fontsize=12pt, DIV=11]{scrartcl} - -\usepackage{fixltx2e} -\usepackage{etex} +\documentclass[parskip=half,fontsize=12pt,DIV=11]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} -\usepackage{textcomp} \usepackage[svgnames]{xcolor} \usepackage{listings} \usepackage{microtype} @@ -34,16 +30,19 @@ numberstyle=\scriptsize\color{SlateGray}% } -\title{The \pkg{warning} package\thanks{This manual corresponds to \pkg{warning.sty}~v0.01, dated~2001/08/17.}} +\title{The \pkg{warning} package\thanks{This manual corresponds to \pkg{warning.sty}~v0.10, dated~2023-03-18.}} \subtitle{Global warnings at the end of the screen output\\and the logfile} -\author{Harald Harders\thanks{\mail{h.harders@tu-bs.de}}} -\date{2001/08/17} - +\author{Harald Harders\thanks{\mail{harald.harders@gmx.de}}\hspace{0.7em}(inactive)} +\date{2023-03-18}% (2023-03-18 update done by H.-Martin Münch, <Martin dot Muench at Uni-Bonn dot de>) \begin{document} - \maketitle +{\large\color{red} +\textbf{Note: This package is obsolete. For \LaTeX-format \hbox{2020-10-01} and newer: +Instead of }\verb|\addglobalwarning{ something }|\textbf{ use } +\verb|\AddToHook{enddocument/info}{ something }|\textbf{ and do not load the warning package.}} + Sometimes a class or package has to make a global warning such as ``Rerun for this or that reason'' or ``This is draft, change this before the final run''. If you are generating them with @@ -60,6 +59,7 @@ the packages \pkg{changebar.sty} or \pkg{longtable.sty}. Harald Harders +\newpage \minisec{Example:} @@ -75,4 +75,15 @@ Hello \end{document} \end{lstlisting} +For \LaTeX-format 2020-10-01 and newer use: +\begin{lstlisting} +\documentclass{article} +\AddToHook{enddocument/info}{% + \ClassWarningNoLine{testclass}{This is a global warning}} +\AddToHook{enddocument/info}{% + \PackageWarningNoLine{testpackage}{This is another global warning}} +\begin{document} +Hello \end{document} +\end{lstlisting} +\end{document}
\ No newline at end of file |