diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-27 22:11:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-27 22:11:38 +0000 |
commit | 8242aaa29f30ed9c3abea253edf12970cc50634c (patch) | |
tree | 5a7317e1b23417cedd44e579f05cfe44cbdbb257 /Master/texmf-dist/tex | |
parent | 9dc7b757050fc5b40b9ff6765f32865917dbecb2 (diff) |
autonum (27aug12)
git-svn-id: svn://tug.org/texlive/trunk@27538 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/autonum/autonum.sty | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/autonum/autonum.sty b/Master/texmf-dist/tex/latex/autonum/autonum.sty index a44c6d4e27f..a3867ef19e9 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}[2012/08/16 v0.3 autonum LaTeX package] +\ProvidesPackage{autonum}[2012/08/25 v0.3.1 autonum LaTeX package] \PassOptionsToPackage{hypertexnames=false}{hyperref} \RequirePackage{etoolbox} \RequirePackage{amsmath} @@ -37,6 +37,7 @@ } \AtBeginDocument{% +\newlength{\autonum@environmentWidth}% \forcsvlist{\autonum@patchParametrizedFullEnvironment}{alignat}% \forcsvlist{\autonum@patchFullEnvironment}{equation,gather,multline,flalign,align}% \def\[#1\]{% @@ -71,6 +72,8 @@ \begin{textblock}{1}[1,1](0,0)% \begin{#2}% \begin{#1}#3% +\deflength{\autonum@environmentWidth}{\linewidth-\multlinegap-\multlinegap}% +\hspace{\autonum@environmentWidth}% \global\cslet{autonum@newline#1}\\% \notag% \ifboolexpr{not test {\ifstrequal{#1}{multline}} or test {\ifcsundef{autonum@label#1}}}{% @@ -98,14 +101,14 @@ \autonum@startChangeEnvironment{#1}{}% }{% \autonum@endChangeEnvironment{#1}% -} +}% \else \renewenvironment{#1}[1]{% \autonum@startChangeEnvironment{#1}{##1}% }{% \autonum@endChangeEnvironment{#1}% }% -\fi% +\fi \global\csundef{#1*}% \global\csundef{end#1*}% } @@ -166,7 +169,7 @@ \ifcsedef{autonum@\csuse{autonum@currentLabel}Referenced}{% }{% \notag% -} +}% }{% \notag% }% @@ -183,7 +186,7 @@ \def\autonum@generatePatchedReferenceGeneral#1#2{% \csletcs{autonum@reference#1Old}{#1}% \csdef{#1}##1{% -\csuse{#2}{\autonum@markLabelAsReferenced}{##1} +\csuse{#2}{\autonum@markLabelAsReferenced}{##1}% \csuse{autonum@reference#1Old}{##1}% }% } |