diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/docmute/docmute.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/docmute/docmute.sty | 9 |
1 files changed, 5 insertions, 4 deletions
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}% |