summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx103
1 files changed, 86 insertions, 17 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index 8fb8c381d9c..d393441720b 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -44,7 +44,7 @@
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
-%<!none> [2010/12/15 v6.81y %
+%<!none> [2010/12/16 v6.81z %
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -139,7 +139,7 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{28082}
+% \CheckSum{28201}
%
% \MakeShortVerb{|}
% \StopEventually{}
@@ -10319,14 +10319,25 @@
% Support for package \texttt{amsthm} (Daniel M\"ullner):
% \begin{macrocode}
\@ifpackageloaded{amsthm}{%
- \def\@thm#1#2#3{%
- \ifhmode
- \unskip\unskip\par
- \fi
+% \end{macrocode}
+% Class amsbook uses a different definition of \cs{@thm},
+% where two lines are added (thanks to Dan Luecking for
+% his analysis):
+%\begin{quote}
+%\begin{verbatim}
+%\let\thm@indent\indent % indent
+%\thm@headfont{\scshape}% heading font small caps
+%\end{verbatim}
+%\end{quote}
+% \begin{macrocode}
+ \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
@@ -10334,21 +10345,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