diff options
author | Karl Berry <karl@freefriends.org> | 2015-01-18 22:04:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-01-18 22:04:07 +0000 |
commit | 45315eeacd920a9de59a96471f23d904108cd94b (patch) | |
tree | 2da988ef4e9047f3365c306b7b9f670de1a96124 /Master/texmf-dist/tex | |
parent | 6e48412405af6ebe81310c43c86547fa62eb3bd7 (diff) |
autonum (18jan15)
git-svn-id: svn://tug.org/texlive/trunk@36084 c570f23f-e606-0410-a88d-b1316a301751
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}% }% } |