From 47c1d73d07c48a89110bdc45a93204cdc05f24fc Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 18 Dec 2010 00:45:14 +0000
Subject: hyperref (18dec10)

git-svn-id: svn://tug.org/texlive/trunk@20783 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 90 +++++++++++++++++++----
 1 file changed, 74 insertions(+), 16 deletions(-)

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

diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index dd3cc85d87a..794ec51eec3 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -30,7 +30,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{hyperref}
-  [2010/12/15 v6.81y %
+  [2010/12/16 v6.81z %
   Hypertext links for LaTeX]
 \begingroup
   \@makeother\`%
@@ -6529,14 +6529,14 @@
   }%
 \fi
 \@ifpackageloaded{amsthm}{%
-  \def\@thm#1#2#3{%
-    \ifhmode
-      \unskip\unskip\par
-    \fi
+  \def\Hy@temp#1#2#3{%
+    \ifhmode\unskip\unskip\par\fi
     \normalfont
     \trivlist
     \let\thmheadnl\relax
     \let\thm@swap\@gobble
+    \let\thm@indent\indent % indent
+    \thm@headfont{\scshape}% heading font small caps
     \thm@notefont{\fontseries\mddefault\upshape}%
     \thm@headpunct{.}% add period after heading
     \thm@headsep 5\p@ plus\p@ minus\p@\relax
@@ -6544,21 +6544,79 @@
     #1% style overrides
     \@topsep \thm@preskip               % used by thm head
     \@topsepadd \thm@postskip           % used by \@endparenv
-    \def\dth@counter{#2}%
-    \ifx\@empty\dth@counter
-      \def\@tempa{%
-        \@oparg{\@begintheorem{#3}{}}[]%
-      }%
+    \def\@tempa{#2}\ifx\@empty\@tempa
+      \def\@tempa{\@oparg{\@begintheorem{#3}{}}[]}%
     \else
-      \H@refstepcounter{#2}%
-      \hyper@makecurrent{#2}%
-      \let\Hy@dth@currentHref\@currentHref
-      \def\@tempa{%
-        \@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]%
-      }%
+      \refstepcounter{#2}%
+      \def\@tempa{\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]}%
     \fi
     \@tempa
   }%
+  \ifx\Hy@temp\@thm
+    \def\@thm#1#2#3{%
+      \ifhmode
+        \unskip\unskip\par
+      \fi
+      \normalfont
+      \trivlist
+      \let\thmheadnl\relax
+      \let\thm@swap\@gobble
+      \let\thm@indent\indent % indent
+      \thm@headfont{\scshape}% heading font small caps
+      \thm@notefont{\fontseries\mddefault\upshape}%
+      \thm@headpunct{.}% add period after heading
+      \thm@headsep 5\p@ plus\p@ minus\p@\relax
+      \thm@space@setup
+      #1% style overrides
+      \@topsep \thm@preskip               % used by thm head
+      \@topsepadd \thm@postskip           % used by \@endparenv
+      \def\dth@counter{#2}%
+      \ifx\@empty\dth@counter
+        \def\@tempa{%
+          \@oparg{\@begintheorem{#3}{}}[]%
+        }%
+      \else
+        \H@refstepcounter{#2}%
+        \hyper@makecurrent{#2}%
+        \let\Hy@dth@currentHref\@currentHref
+        \def\@tempa{%
+          \@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]%
+        }%
+      \fi
+      \@tempa
+    }%
+  \else
+    \def\@thm#1#2#3{%
+      \ifhmode
+        \unskip\unskip\par
+      \fi
+      \normalfont
+      \trivlist
+      \let\thmheadnl\relax
+      \let\thm@swap\@gobble
+      \thm@notefont{\fontseries\mddefault\upshape}%
+      \thm@headpunct{.}% add period after heading
+      \thm@headsep 5\p@ plus\p@ minus\p@\relax
+      \thm@space@setup
+      #1% style overrides
+      \@topsep \thm@preskip               % used by thm head
+      \@topsepadd \thm@postskip           % used by \@endparenv
+      \def\dth@counter{#2}%
+      \ifx\@empty\dth@counter
+        \def\@tempa{%
+          \@oparg{\@begintheorem{#3}{}}[]%
+        }%
+      \else
+        \H@refstepcounter{#2}%
+        \hyper@makecurrent{#2}%
+        \let\Hy@dth@currentHref\@currentHref
+        \def\@tempa{%
+          \@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]%
+        }%
+      \fi
+      \@tempa
+    }%
+  \fi
   \dth@everypar={%
     \@minipagefalse
     \global\@newlistfalse
-- 
cgit v1.2.3

