diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/autonum/autonum.sty | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/autonum/autonum.sty b/Master/texmf-dist/tex/latex/autonum/autonum.sty index 09ad9b60fc1..fc2f22192b8 100644 --- a/Master/texmf-dist/tex/latex/autonum/autonum.sty +++ b/Master/texmf-dist/tex/latex/autonum/autonum.sty @@ -13,7 +13,7 @@ %% ---------------------------------------------------------------- %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{autonum}[2015/01/03 v0.3.10 autonum LaTeX package] +\ProvidesPackage{autonum}[2015/01/18 v0.3.11 Automatic numbering of equations] \PassOptionsToPackage{hypertexnames=false}{hyperref} \RequirePackage{etoolbox} \makeatletter % The missing \makeatother command is on purpose (as every other combination results in an error). @@ -203,11 +203,13 @@ with \expandafter\detokenize\expandafter{\csname\string#1\endcsname}defined as\M \def\autonum@startChangeEnvironment#1#2{% \ifstrequal{#1}{split}{% +\GlobalLetLtxMacro\autonum@outerMathEnvironmentLabel\label }{% \autonum@saveSubcommands }% \csuse{autonum@#1Old}#2% \ifstrequal{#1}{split}{% +\GlobalLetLtxMacro\label\autonum@outerMathEnvironmentLabel }{% \autonum@patchSubcommands{#1}% }% @@ -233,8 +235,8 @@ when using autonum. Wrongly placed label is:\MessageBreak } \def\autonum@saveSubcommands{% -\LetLtxMacro\autonum@labelNormal\label -\LetLtxMacro\autonum@newlineNormal\\% +\GlobalLetLtxMacro\autonum@labelNormal\label +\GlobalLetLtxMacro\autonum@newlineNormal\\% } \def\autonum@patchSubcommands#1{% @@ -252,6 +254,8 @@ when using autonum. Wrongly placed label is:\MessageBreak \def\autonum@generatePatchedLabel#1{% \newcommandsequence{autonum@patched#1Label}[2][]{% +\ifmeasuring@ +\else \ifdef{\autonum@currentLabel}{% \ifmeasuring@ \PackageError{autonum}{Two succeeding \string\label's detected}{Did you forget a \string\\?}% @@ -270,19 +274,17 @@ when using autonum. Wrongly placed label is:\MessageBreak \else \csuse{autonum@label#1}[##1]{##2}% \fi -}{}% +}{% +}% +\fi }% } \def\autonum@generatePatchedNewline#1{% -\newcommandsequence{autonum@patched#1Newline}[1][]{% +\newcommandsequence{autonum@patched#1Newline}{% \autonum@possiblyHideNumber -\if\relax\detokenize{##1}\relax -\csuse{autonum@newline#1}% -\else -\csuse{autonum@newline#1}[##1]% -\fi \global\undef\autonum@currentLabel +\csuse{autonum@newline#1}% }% } |