diff options
author | Karl Berry <karl@freefriends.org> | 2012-07-13 17:56:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-07-13 17:56:57 +0000 |
commit | 59e4179290b3bc5101ab3cb918477e65f7b8bea9 (patch) | |
tree | 0d325a67ea02660ba6ca9a251fcfdc4ad51018c5 | |
parent | 75d256635dbdbe6b18ab0a72f3e4015120d6b2fb (diff) |
silence 1.5 (3jul12)
git-svn-id: svn://tug.org/texlive/trunk@27028 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/silence/README | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/silence/silence-doc.pdf | bin | 494431 -> 467316 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/silence/silence-doc.dtx | 78 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/silence/silence.ins | 7 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/silence/silence.sty | 71 |
5 files changed, 84 insertions, 80 deletions
diff --git a/Master/texmf-dist/doc/latex/silence/README b/Master/texmf-dist/doc/latex/silence/README index 06919d397ae..2b26b488d41 100644 --- a/Master/texmf-dist/doc/latex/silence/README +++ b/Master/texmf-dist/doc/latex/silence/README @@ -1,3 +1,5 @@ +$Id:: README 2 2012-07-01 13:45:14Z mhp $ + This is the file README for silence.sty. You'll find complete documentation in silence-doc.pdf. This package allows you to filter out error messages and warnings sent by LaTeX, @@ -8,8 +10,8 @@ To produce the documentation: run LaTeX on silence-doc.dtx. To produce the .sty file: run LaTeX on silence.ins. -Licensing of this package is covered by LPPL. +Licensing of this package is covered by the LaTeX Project Public License. -Any reaction is welcome: zappathustra@free.fr +Any reaction is welcome: mhp77 <at> gmx <dot> at -Paul Isambert +Michael Pock diff --git a/Master/texmf-dist/doc/latex/silence/silence-doc.pdf b/Master/texmf-dist/doc/latex/silence/silence-doc.pdf Binary files differindex b53248a3cc6..7e77cce06e5 100644 --- a/Master/texmf-dist/doc/latex/silence/silence-doc.pdf +++ b/Master/texmf-dist/doc/latex/silence/silence-doc.pdf diff --git a/Master/texmf-dist/source/latex/silence/silence-doc.dtx b/Master/texmf-dist/source/latex/silence/silence-doc.dtx index 2be90905a9f..8686f442acc 100644 --- a/Master/texmf-dist/source/latex/silence/silence-doc.dtx +++ b/Master/texmf-dist/source/latex/silence/silence-doc.dtx @@ -1,17 +1,16 @@ % \iffalse meta-comment +% $Id:: silence-doc.dtx 10 2012-07-02 12:24:42Z mhp $ % ****************************************************************************** % ****************************************************************************** % ** ** -% ** silence v.1.4 by Paul Isambert ** +% ** silence v1.5b by Michael Pock ** % ** See the documentation for a comment on the implementation. ** % ** ** % ** This set of macros is published under the LaTeX Project Public License. ** % ** ** % ** Comments, suggestions and bugs: ** % ** ** -% ** zappathustra@free.fr ** -% ** ** -% ** http://paulisambert.free.fr/ ** +% ** mhp77 <at> gmx <dot> at ** % ** ** % ** Enjoy! ** % ** ** @@ -21,9 +20,10 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e} -%<package>\ProvidesPackage{silence}[2011/12/06 v1.4 Selective filtering of warnings and error messages] +%<package>\ProvidesPackage{silence}[2012/07/02 v1.5b Selective filtering of warnings and error messages] %<*driver> \documentclass[a4paper]{ltxdoc} +\usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{silence} \usepackage[left=5cm,textwidth=14cm,textheight=23cm]{geometry} @@ -40,7 +40,7 @@ % \GetFileInfo{silence.sty} % \title{Filtering messages with "silence"\\\Large\fileversion} % \date{\filedate} -% \author{Paul Isambert\\"zappathustra@free.fr"} +% \author{Author: Paul Isambert\\Maintainer: Michael Pock\\"mhp77 <at> gmx <dot> at"} % % \maketitle % \vskip1em @@ -74,6 +74,9 @@ %\Change{v1.3}{2010/02/28}{Compatibility with Lua\TeX} %\Change{v1.4}{2011/12/06}{Fixed the \texttt{\string\@gobbletwo} error} %\Change{v1.4}{2012/01/26}{Fixed the \texttt{\string\@gobble} error (same as before, spotted with biblatex)} +%\Change{v1.5}{2012/07/01}{New maintainer: Michael Pock} +%\Change{v1.5a}{2012/07/02}{Improved compatibility with the "hyperref" package} +%\Change{v1.5b}{2012/07/02}{Improved "debrief" option code} % %\section{Introduction} %When working with \LaTeX, messages are utterly important. @@ -1382,7 +1385,7 @@ \sl@UnexpandedMessage{#1}% \else \sl@UnexpandedMessage{#1}% - \bgroup + \begingroup \let\protect\string \let\noexpand\string \def\sl@Tempa{#1}% @@ -1390,7 +1393,7 @@ \sl@RemoveGobbletwo#1\sl@Terminator\@gobbletwo\sl@Terminator\sl@Terminator \edef\sl@Tempa{\sl@Tempa}% \global\expandafter\sl@Message\expandafter{\sl@Tempa}% - \egroup + \endgroup \fi} % \end{macrocode} @@ -1612,16 +1615,16 @@ \ifcase\sl@Save \or \ifsl@KillMessage - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericWarning{#1}{#2}% - \egroup + \endgroup \fi \or - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericWarning{#1}{#2}% - \egroup + \endgroup \fi % \end{macrocode} % @@ -1834,16 +1837,16 @@ \ifcase\sl@Save \or \ifsl@KillMessage - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericError{#1}{#2}{#3}{#4}% - \egroup + \endgroup \fi \or - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericError{#1}{#2}{#3}{#4}% - \egroup + \endgroup \fi \gdef\sl@PackageName{NoPackage}}% \fi @@ -1859,9 +1862,10 @@ % some. % % \begin{macrocode} -\AtEndDocument{% - \ifsl@Debrief - \clearpage +\AtBeginDocument{% + \AtEndDocument{% + \ifsl@Debrief + \clearpage % \end{macrocode} % % \noindent Then we do some arithmetics and if messages @@ -1871,25 +1875,25 @@ % And we say goodbye. % % \begin{macrocode} - \sl@MessageCount\sl@WarningCount - \advance\sl@MessageCount\sl@ErrorCount - \sl@Casualties\sl@WarningCasualties - \advance\sl@Casualties\sl@ErrorCasualties - \ifnum\sl@MessageCount>0 - \ifnum\sl@Casualties>0 - \advance\sl@WarningCount-1 - \PackageWarningNoLine{silence}{% - There were \the\sl@WarningCount\space warning(s) - and \the\sl@ErrorCount\space error(s).\MessageBreak - \ifnum\sl@Casualties=\sl@MessageCount - None survived. This is a violent world% - \else - I've killed \the\sl@WarningCasualties\space warning(s) - and \the\sl@ErrorCasualties\space error(s)% - \fi}% + \sl@MessageCount\sl@WarningCount + \advance\sl@MessageCount\sl@ErrorCount + \sl@Casualties\sl@WarningCasualties + \advance\sl@Casualties\sl@ErrorCasualties + \ifnum\sl@MessageCount>0 + \ifnum\sl@Casualties>0 + \advance\sl@WarningCount-1 + \PackageWarningNoLine{silence}{% + There were \the\sl@WarningCount\space warning(s) + and \the\sl@ErrorCount\space error(s).\MessageBreak + \ifnum\sl@Casualties=\sl@MessageCount + None survived. This is a violent world% + \else + I've killed \the\sl@WarningCasualties\space warning(s) + and \the\sl@ErrorCasualties\space error(s)% + \fi}% + \fi \fi - \fi - \fi} + \fi}} \makeatother % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/silence/silence.ins b/Master/texmf-dist/source/latex/silence/silence.ins index 1412763cdd8..e31847bed2a 100644 --- a/Master/texmf-dist/source/latex/silence/silence.ins +++ b/Master/texmf-dist/source/latex/silence/silence.ins @@ -1,3 +1,4 @@ +% $Id:: silence.ins 10 2012-07-02 12:24:42Z mhp $ \input docstrip.tex \askforoverwritefalse %\keepsilent @@ -6,16 +7,14 @@ ****************************************************************************** ****************************************************************************** ** ** -** silence v.1.4 by Paul Isambert ** +** silence v1.5b by Michael Pock ** ** See the documentation for a comment on the implementation. ** ** ** ** This set of macros is published under the LaTeX Project Public License. ** ** ** ** Comments, suggestions and bugs: ** ** ** -** zappathustra@free.fr ** -** ** -** http://paulisambert.free.fr/ ** +** mhp77 <at> gmx <dot> at ** ** ** ** Enjoy! ** ** ** diff --git a/Master/texmf-dist/tex/latex/silence/silence.sty b/Master/texmf-dist/tex/latex/silence/silence.sty index 7139fba8732..af6e71c8a6b 100644 --- a/Master/texmf-dist/tex/latex/silence/silence.sty +++ b/Master/texmf-dist/tex/latex/silence/silence.sty @@ -9,16 +9,14 @@ %% ****************************************************************************** %% ****************************************************************************** %% ** ** -%% ** silence v.1.4 by Paul Isambert ** +%% ** silence v1.5b by Michael Pock ** %% ** See the documentation for a comment on the implementation. ** %% ** ** %% ** This set of macros is published under the LaTeX Project Public License. ** %% ** ** %% ** Comments, suggestions and bugs: ** %% ** ** -%% ** zappathustra@free.fr ** -%% ** ** -%% ** http://paulisambert.free.fr/ ** +%% ** mhp77 <at> gmx <dot> at ** %% ** ** %% ** Enjoy! ** %% ** ** @@ -27,7 +25,7 @@ %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{silence}[2011/12/06 v1.4 Selective filtering of warnings and error messages] +\ProvidesPackage{silence}[2012/07/02 v1.5b Selective filtering of warnings and error messages] \makeatletter \newcount\sl@Save @@ -366,7 +364,7 @@ \sl@UnexpandedMessage{#1}% \else \sl@UnexpandedMessage{#1}% - \bgroup + \begingroup \let\protect\string \let\noexpand\string \def\sl@Tempa{#1}% @@ -374,7 +372,7 @@ \sl@RemoveGobbletwo#1\sl@Terminator\@gobbletwo\sl@Terminator\sl@Terminator \edef\sl@Tempa{\sl@Tempa}% \global\expandafter\sl@Message\expandafter{\sl@Tempa}% - \egroup + \endgroup \fi} \ifsl@ShowWarnings @@ -465,16 +463,16 @@ \ifcase\sl@Save \or \ifsl@KillMessage - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericWarning{#1}{#2}% - \egroup + \endgroup \fi \or - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericWarning{#1}{#2}% - \egroup + \endgroup \fi \gdef\sl@PackageName{NoPackage}}% \fi @@ -633,41 +631,42 @@ \ifcase\sl@Save \or \ifsl@KillMessage - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericError{#1}{#2}{#3}{#4}% - \egroup + \endgroup \fi \or - \bgroup + \begingroup \let\@unused\sl@Write \sl@GenericError{#1}{#2}{#3}{#4}% - \egroup + \endgroup \fi \gdef\sl@PackageName{NoPackage}}% \fi -\AtEndDocument{% - \ifsl@Debrief - \clearpage - \sl@MessageCount\sl@WarningCount - \advance\sl@MessageCount\sl@ErrorCount - \sl@Casualties\sl@WarningCasualties - \advance\sl@Casualties\sl@ErrorCasualties - \ifnum\sl@MessageCount>0 - \ifnum\sl@Casualties>0 - \advance\sl@WarningCount-1 - \PackageWarningNoLine{silence}{% - There were \the\sl@WarningCount\space warning(s) - and \the\sl@ErrorCount\space error(s).\MessageBreak - \ifnum\sl@Casualties=\sl@MessageCount - None survived. This is a violent world% - \else - I've killed \the\sl@WarningCasualties\space warning(s) - and \the\sl@ErrorCasualties\space error(s)% - \fi}% +\AtBeginDocument{% + \AtEndDocument{% + \ifsl@Debrief + \clearpage + \sl@MessageCount\sl@WarningCount + \advance\sl@MessageCount\sl@ErrorCount + \sl@Casualties\sl@WarningCasualties + \advance\sl@Casualties\sl@ErrorCasualties + \ifnum\sl@MessageCount>0 + \ifnum\sl@Casualties>0 + \advance\sl@WarningCount-1 + \PackageWarningNoLine{silence}{% + There were \the\sl@WarningCount\space warning(s) + and \the\sl@ErrorCount\space error(s).\MessageBreak + \ifnum\sl@Casualties=\sl@MessageCount + None survived. This is a violent world% + \else + I've killed \the\sl@WarningCasualties\space warning(s) + and \the\sl@ErrorCasualties\space error(s)% + \fi}% + \fi \fi - \fi - \fi} + \fi}} \makeatother \endinput |