diff options
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/docmute/docmute.dtx | 13 |
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 |