From 2c6efb10e65099a14b97c9f063b0ddad238fa738 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 3 Apr 2009 16:23:53 +0000 Subject: silence update (2apr09) git-svn-id: svn://tug.org/texlive/trunk@12616 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/silence/silence-doc.dtx | 31 +++++++++++++++++----- Master/texmf-dist/source/latex/silence/silence.ins | 2 +- 2 files changed, 25 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/source/latex/silence') diff --git a/Master/texmf-dist/source/latex/silence/silence-doc.dtx b/Master/texmf-dist/source/latex/silence/silence-doc.dtx index 2d8dcaa5cb6..2e6e4bb112a 100644 --- a/Master/texmf-dist/source/latex/silence/silence-doc.dtx +++ b/Master/texmf-dist/source/latex/silence/silence-doc.dtx @@ -2,7 +2,7 @@ % ****************************************************************************** % ****************************************************************************** % ** ** -% ** silence v.1.1 by Paul Isambert ** +% ** silence v.1.2 by Paul Isambert ** % ** See the documentation for a comment on the implementation. ** % ** ** % ** This set of macros is published under the LaTeX Project Public License: ** @@ -25,13 +25,12 @@ % \iffalse %\NeedsTeXFormat{LaTeX2e} -%\ProvidesPackage{silence}[2009/02/20 v1.1 Selective filtering of warnings and error messages] +%\ProvidesPackage{silence}[2009/04/02 v1.2 Selective filtering of warnings and error messages] %<*driver> \documentclass[a4paper]{ltxdoc} \usepackage[T1]{fontenc} \usepackage{silence} \usepackage[left=5cm,textwidth=14cm,textheight=23cm]{geometry} -\RecordChanges \begin{document} \DocInput{silence-doc.dtx} \end{document} @@ -66,8 +65,17 @@ %targeted too. \TeX's messages are left untouched. %\end{abstract} % -% \tableofcontents -% +% +% \tableofcontents\clearpage +% +%\setcounter{section}{-1} +% +%\section{Changes} +%\def\Change#1#2#3{\par\noindent\llap{\textbullet\ }\textbf{#1} (#2)\leaders\hbox{... }\hfill#3\par} +% +%\Change{v1.1}{2009/03/20}{Initial version} +%\Change{v1.2}{2009/04/02}{\texttt{LaTeX Font Warning}s can be filtered} +% %\section{Introduction} %When working with \LaTeX, messages are utterly important. % @@ -125,8 +133,10 @@ %warnings. The important part for "silence" is \meta{Name of the %package} or \meta{Name of the class}, because the information %is needed when filtering messages. In case of a \LaTeX\ message, -%\meta{Name of the package} is supposed to be "latex". For filters, -%\meta{message text} will be crucial too. +%\meta{Name of the package} is supposed to be "latex". In case +%of a `\texttt{LaTeX Font}' message, \meta{Name of the package} +%is "latexfont" by convention. +%For filters, \meta{message text} will be crucial too. % %If a message doesn't begin as above, but displays its text %immediately, then it has been sent by \TeX; "silence" cannot @@ -1408,6 +1418,7 @@ \let\sl@PackageWarning\PackageWarning \let\sl@ClassWarning\ClassWarning \let\sl@latex@warning\@latex@warning +\let\sl@font@warning\@font@warning % \end{macrocode} % \DescribeMacro{\PackageWarning} @@ -1443,6 +1454,7 @@ % \DescribeMacro{\ClassWarning}\DescribeMacro{\ClassWarningNoLine} % \DescribeMacro{\@latex@warning}\DescribeMacro{\@latex@warning@no@line} +% \DescribeMacro{\@font@warning} % We do exactly the same for class warnings and \LaTeX\ warnings, except % that in the latter case we manually set "\sl@PackageName" to "latex". % @@ -1474,6 +1486,11 @@ \sl@StoreMessage{#1}% \sl@NoLinetrue% \@latex@warning{#1\@gobble}} + +\def\@font@warning#1{% + \def\sl@PackageName{latexfont}% + \sl@StoreMessage{#1}% + \sl@font@warning{#1}} % \end{macrocode} % \DescribeMacro{\GenericWarning} diff --git a/Master/texmf-dist/source/latex/silence/silence.ins b/Master/texmf-dist/source/latex/silence/silence.ins index 17564a3eb0e..658c4960ec9 100644 --- a/Master/texmf-dist/source/latex/silence/silence.ins +++ b/Master/texmf-dist/source/latex/silence/silence.ins @@ -6,7 +6,7 @@ ****************************************************************************** ****************************************************************************** ** ** -** silence v.1.1 by Paul Isambert ** +** silence v.1.2 by Paul Isambert ** ** See the documentation for a comment on the implementation. ** ** ** ** This set of macros is published under the LaTeX Project Public License: ** -- cgit v1.2.3