summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/docmute/docmute.pdfbin147848 -> 147898 bytes
-rw-r--r--Master/texmf-dist/source/latex/docmute/docmute.dtx21
-rw-r--r--Master/texmf-dist/tex/latex/docmute/docmute.sty9
3 files changed, 18 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/docmute/docmute.pdf b/Master/texmf-dist/doc/latex/docmute/docmute.pdf
index ec4bc9dbffb..03606f42b71 100644
--- a/Master/texmf-dist/doc/latex/docmute/docmute.pdf
+++ b/Master/texmf-dist/doc/latex/docmute/docmute.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/docmute/docmute.dtx b/Master/texmf-dist/source/latex/docmute/docmute.dtx
index 6af608a2702..8635b6ffd0e 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}[2012/01/28 v1.3 Input stand-alone documents]
+\ProvidesPackage{docmute}[2012/03/22 v1.4 Input stand-alone documents]
% \end{macrocode}
%
% Macro used for comparison to see if we already reached
@@ -171,7 +171,8 @@ The |\documentclass| and/or |\csname docmute\endcsname| command has to be in th
% \begin{macrocode}
\def\document{%
\docmute@document
- \countdef\docmute@nestinglevel=1
+ \newcount\docmute@nestinglevel
+ \docmute@nestinglevel=0\relax
\let\documentclass=\docmute
\renewenvironment{document}{%
% \end{macrocode}
@@ -181,22 +182,26 @@ The |\documentclass| and/or |\csname docmute\endcsname| command has to be in th
%
% \begin{macrocode}
\endgroup
- \advance \docmute@nestinglevel 1%
+ \advance \docmute@nestinglevel 1\relax
\ignorespaces
}{%
- \advance \docmute@nestinglevel -1%
% \end{macrocode}
%
% At the top level execute the original |\enddocument|.
-% Otherwise match the grouping from |\end|, set ignore blanks
-% switch to true, redefine |\@currenvir| to |document|
-% to keep the check at |\end{document}| happy and finally
-% |\endinput|.
%
% \begin{macrocode}
\ifnum\docmute@nestinglevel=0
\expandafter\docmute@enddocument
+% \end{macrocode}
+%
+% Otherwise, decrement nesting level, match the grouping
+% from |\end|, set ignore blanks switch to true, redefine
+% |\@currenvir| to |document| to keep the check at
+% |\end{document}| happy and finally |\endinput|.
+%
+% \begin{macrocode}
\else
+ \advance \docmute@nestinglevel -1\relax
\begingroup
\@ignoretrue
\def\@currenvir{document}%
diff --git a/Master/texmf-dist/tex/latex/docmute/docmute.sty b/Master/texmf-dist/tex/latex/docmute/docmute.sty
index 10fd1764050..41438a24823 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}[2012/01/28 v1.3 Input stand-alone documents]
+\ProvidesPackage{docmute}[2012/03/22 v1.4 Input stand-alone documents]
\def\docmute@docenv{document}
\long\def\docmute@gobblepreamble#1\begin#2{%
\def\docmute@thisenv{#2}%
@@ -14,17 +14,18 @@
\let\docmute=\docmute@gobblepreamble
\def\document{%
\docmute@document
- \countdef\docmute@nestinglevel=1
+ \newcount\docmute@nestinglevel
+ \docmute@nestinglevel=0\relax
\let\documentclass=\docmute
\renewenvironment{document}{%
\endgroup
- \advance \docmute@nestinglevel 1%
+ \advance \docmute@nestinglevel 1\relax
\ignorespaces
}{%
- \advance \docmute@nestinglevel -1%
\ifnum\docmute@nestinglevel=0
\expandafter\docmute@enddocument
\else
+ \advance \docmute@nestinglevel -1\relax
\begingroup
\@ignoretrue
\def\@currenvir{document}%