summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/silence
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-04-03 16:23:53 +0000
committerKarl Berry <karl@freefriends.org>2009-04-03 16:23:53 +0000
commit2c6efb10e65099a14b97c9f063b0ddad238fa738 (patch)
treea33e4ead469d8d451df9ea11574e4d51de586c2d /Master/texmf-dist/source/latex/silence
parenta14cfc3b6e487853838ffee086d9c3cff2d95286 (diff)
silence update (2apr09)
git-svn-id: svn://tug.org/texlive/trunk@12616 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/silence')
-rw-r--r--Master/texmf-dist/source/latex/silence/silence-doc.dtx31
-rw-r--r--Master/texmf-dist/source/latex/silence/silence.ins2
2 files changed, 25 insertions, 8 deletions
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
%<package>\NeedsTeXFormat{LaTeX2e}
-%<package>\ProvidesPackage{silence}[2009/02/20 v1.1 Selective filtering of warnings and error messages]
+%<package>\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: **