diff options
author | Karl Berry <karl@freefriends.org> | 2010-12-18 00:45:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-12-18 00:45:14 +0000 |
commit | 47c1d73d07c48a89110bdc45a93204cdc05f24fc (patch) | |
tree | a39ee694b705424a23f5c6f9d8af58c0cc5d0aa5 /Master/texmf-dist/source/latex | |
parent | 37c7eb336886decf61bd5d7abacb0c1d0ecbbb98 (diff) |
hyperref (18dec10)
git-svn-id: svn://tug.org/texlive/trunk@20783 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 103 |
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 |