diff options
author | Karl Berry <karl@freefriends.org> | 2009-12-22 23:43:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-12-22 23:43:01 +0000 |
commit | 8c5ee37ebbf28e964cc0683db17b319177ceb2f1 (patch) | |
tree | c240287494cae575dd95a8700eed95096d6dcfb0 /Master/texmf-dist/source | |
parent | 2da1229487e5586f88bbccd034057d5164b79863 (diff) |
hyperref update (22dec09)
git-svn-id: svn://tug.org/texlive/trunk@16482 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 34 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/nameref.dtx | 4 |
2 files changed, 27 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 8db5ad379ff..57cdf6c6fd2 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx @@ -39,7 +39,7 @@ %<puenc>\ProvidesFile{puenc.def} %<puvnenc>\ProvidesFile{puvnenc.def} %<puarenc>\ProvidesFile{puarenc.def} -%<!none> [2009/12/17 v6.79v +%<!none> [2009/12/18 v6.79v %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -119,7 +119,7 @@ \end{document} %</driver> % \fi -% \CheckSum{25198} +% \CheckSum{25231} % % \MakeShortVerb{|} % \StopEventually{} @@ -1185,7 +1185,7 @@ \let\ignorespaces\HyPsd@ignorespaces % \end{macrocode} % \begin{macrocode} - \let\Hy@SectionAnchor\@empty + \let\Hy@SectionAnchorHref\@gobble % \end{macrocode} % % \paragraph{Patch for cjk bookmarks.} @@ -17004,17 +17004,17 @@ % \end{macrocode} % \begin{macrocode} \newlength\Hy@SectionHShift -\def\Hy@SectionAnchor{% +\def\Hy@SectionAnchorHref#1{% \ifx\protect\@typeset@protect - \Hy@@SectionAnchor + \Hy@@SectionAnchor{#1}% \fi } -\DeclareRobustCommand*{\Hy@@SectionAnchor}{% +\DeclareRobustCommand*{\Hy@@SectionAnchor}[1]{% \leavevmode \hbox to 0pt{% \kern-\Hy@SectionHShift \Hy@raisedlink{% - \hyper@anchorstart{\@currentHref}\hyper@anchorend + \hyper@anchorstart{#1}\hyper@anchorend }% \hss }% @@ -17024,7 +17024,15 @@ \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{section*.\the\Hy@linkcounter}% \setlength{\Hy@SectionHShift}{#1}% - \H@old@ssect{#1}{#2}{#3}{#4}{\Hy@SectionAnchor#5}% + \begingroup + \toks@{\H@old@ssect{#1}{#2}{#3}{#4}}% + \toks\tw@\expandafter{% + \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}% + #5% + }% + \edef\x{\endgroup + \the\toks@{\the\toks\tw@}% + }\x } \let\H@old@schapter\@schapter \def\@schapter#1{% @@ -17101,7 +17109,15 @@ \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{section*.\the\Hy@linkcounter}% \setlength{\Hy@SectionHShift}{#3}% - \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{\Hy@SectionAnchor#8}% + \begingroup + \toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}% + \toks\tw@\expandafter{% + \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}% + #8% + }% + \edef\x{\endgroup + \the\toks@{\the\toks\tw@}% + }\x }{% \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}% }% diff --git a/Master/texmf-dist/source/latex/hyperref/nameref.dtx b/Master/texmf-dist/source/latex/hyperref/nameref.dtx index 674080c1ea1..dafd01fce35 100644 --- a/Master/texmf-dist/source/latex/hyperref/nameref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/nameref.dtx @@ -24,7 +24,7 @@ %<driver>\ProvidesFile{nameref.drv} % \fi % \ProvidesFile{nameref.dtx} - [2009/12/08 v2.34 Cross-referencing by name of section]% + [2009/12/18 v2.35 Cross-referencing by name of section]% % % \CheckSum{580} % @@ -107,7 +107,7 @@ % % \begin{macrocode} \RequirePackage{refcount}[2006/02/12] -\RequirePackage{gettitlestring}[2009/12/08] +\RequirePackage{gettitlestring}[2009/12/18] % \end{macrocode} % % We redefine |\label| so that it also writes the name of the |