summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/autonum/autonum.sty13
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}%
}%
}