diff options
Diffstat (limited to 'Master/texmf-dist/source')
-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 |
2 files changed, 44 insertions, 41 deletions
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! ** ** ** |