summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-01-30 00:35:24 +0000
committerKarl Berry <karl@freefriends.org>2012-01-30 00:35:24 +0000
commitda5a8ebcbef768e7565429bb04feb998d3da0869 (patch)
treed0a4f21e3f06e7f992142562b06c201ab6750f6d /Master/texmf-dist/source/latex
parentf60c2c93c50a174b6f9fb879c7363038a97fa6fe (diff)
docmute (28jan12)
git-svn-id: svn://tug.org/texlive/trunk@25230 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/docmute/docmute.dtx13
1 files changed, 5 insertions, 8 deletions
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