From da5a8ebcbef768e7565429bb04feb998d3da0869 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 30 Jan 2012 00:35:24 +0000 Subject: docmute (28jan12) git-svn-id: svn://tug.org/texlive/trunk@25230 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/docmute/docmute.pdf | Bin 92811 -> 147848 bytes Master/texmf-dist/source/latex/docmute/docmute.dtx | 13 +++++-------- Master/texmf-dist/tex/latex/docmute/docmute.sty | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Master/texmf-dist/doc/latex/docmute/docmute.pdf b/Master/texmf-dist/doc/latex/docmute/docmute.pdf index 0540bfcfa2f..ec4bc9dbffb 100644 Binary files a/Master/texmf-dist/doc/latex/docmute/docmute.pdf and b/Master/texmf-dist/doc/latex/docmute/docmute.pdf differ diff --git a/Master/texmf-dist/source/latex/docmute/docmute.dtx b/Master/texmf-dist/source/latex/docmute/docmute.dtx index 720b52c54d2..6af608a2702 100644 --- a/Master/texmf-dist/source/latex/docmute/docmute.dtx +++ b/Master/texmf-dist/source/latex/docmute/docmute.dtx @@ -119,7 +119,7 @@ The |\documentclass| and/or |\csname docmute\endcsname| command has to be in th % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{docmute}[2010/04/12 v1.2 Input stand-alone documents] +\ProvidesPackage{docmute}[2012/01/28 v1.3 Input stand-alone documents] % \end{macrocode} % % Macro used for comparison to see if we already reached @@ -165,7 +165,7 @@ The |\documentclass| and/or |\csname docmute\endcsname| command has to be in th % % Redefine the |\documentclass| command and |document| % environment at the beginning of the document. -% |\AtBeginDocument| happens to early to be used for that, +% |\AtBeginDocument| happens to early to be useful for that, % so we need to append directly to the |\document|. % % \begin{macrocode} @@ -176,11 +176,8 @@ The |\documentclass| and/or |\csname docmute\endcsname| command has to be in th \renewenvironment{document}{% % \end{macrocode} % -% Avoid grouping coming from the environment, store definition -% of |\@currenvir| at current nesting level and redefine it -% as |document| to keep check at |\end{document}| happy. -% Keep track of document nesting level and take care of excess -% spaces. +% Avoid grouping coming from the environment, keep track +% of document nesting level and take care of excess spaces. % % \begin{macrocode} \endgroup @@ -198,7 +195,7 @@ The |\documentclass| and/or |\csname docmute\endcsname| command has to be in th % % \begin{macrocode} \ifnum\docmute@nestinglevel=0 - \docmute@enddocument + \expandafter\docmute@enddocument \else \begingroup \@ignoretrue diff --git a/Master/texmf-dist/tex/latex/docmute/docmute.sty b/Master/texmf-dist/tex/latex/docmute/docmute.sty index 5bbaf7cd1a4..10fd1764050 100644 --- a/Master/texmf-dist/tex/latex/docmute/docmute.sty +++ b/Master/texmf-dist/tex/latex/docmute/docmute.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{docmute}[2010/04/12 v1.2 Input stand-alone documents] +\ProvidesPackage{docmute}[2012/01/28 v1.3 Input stand-alone documents] \def\docmute@docenv{document} \long\def\docmute@gobblepreamble#1\begin#2{% \def\docmute@thisenv{#2}% @@ -23,7 +23,7 @@ }{% \advance \docmute@nestinglevel -1% \ifnum\docmute@nestinglevel=0 - \docmute@enddocument + \expandafter\docmute@enddocument \else \begingroup \@ignoretrue -- cgit v1.2.3