From 8242aaa29f30ed9c3abea253edf12970cc50634c Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 27 Aug 2012 22:11:38 +0000
Subject: autonum (27aug12)

git-svn-id: svn://tug.org/texlive/trunk@27538 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/autonum/autonum.sty | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/autonum/autonum.sty')

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}%
 }%
 }
-- 
cgit v1.2.3

