diff options
author | Karl Berry <karl@freefriends.org> | 2007-01-17 16:19:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-01-17 16:19:32 +0000 |
commit | 45fd9e9c2f589ef516b321a8ce20033586a32c48 (patch) | |
tree | 0b9ec908a76b8e23edb3093237a43b2b3ca14fb1 /Master/texmf-dist/source/latex/hyperref | |
parent | 9e6887e47659202f012d448368ddf2b6d424de1d (diff) |
hyperref update (16jan07)
git-svn-id: svn://tug.org/texlive/trunk@3552 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 65 |
1 files changed, 46 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 7f4d0bc5bc8..377f39fa93e 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> [2007/01/06 v6.75l +%<!none> [2007/01/14 v6.75m %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -116,7 +116,7 @@ \end{document} %</driver> % \fi -% \CheckSum{19645} +% \CheckSum{19686} % % \MakeShortVerb{|} % \StopEventually{} @@ -3032,24 +3032,45 @@ % \begin{macrocode} \def\HyPsd@unichar#1{% \ifHy@unicode - \ifnum#1>"FFFF % - \HyPsd@UnicodeReplacementCharacter % unsupported + \ifnum#1>"10FFFF % + \HyPsd@UnicodeReplacementCharacter % illegal \else - \ifnum#1>"7FF % - \9% - \expandafter\HyPsd@unichar@first@byte\expandafter{% - \number - \dimexpr.00390625\dimexpr\number#1sp\relax\relax + \ifnum#1>"FFFF % +% \end{macrocode} +% High-surrogate code point. +% (|"D800| = |55296|, |\p@| = |1pt| = |65536sp|) +% \begin{macrocode} + \expandafter\HyPsd@unichar\expandafter{% + \number\numexpr 55296+% + \dimexpr.0009765625\dimexpr\number#1sp-\p@ + \relax\relax\relax }% +% \end{macrocode} +% Low-surrogate code point. +% (|"DC00| = 56320, |"DC00| - |65536| = |-9216|) +% \begin{macrocode} + \expandafter\HyPsd@unichar\expandafter{% + \number\numexpr#1-9216% + -1024*\dimexpr.0009765625\dimexpr\number#1sp-\p@ + \relax\relax\relax + }% \else - \8% - \number\dimexpr.00390625\dimexpr\number#1sp\relax\relax + \ifnum#1>"7FF % + \9% + \expandafter\HyPsd@unichar@first@byte\expandafter{% + \number + \dimexpr.00390625\dimexpr\number#1sp\relax\relax + }% + \else + \8% + \number\dimexpr.00390625\dimexpr\number#1sp\relax\relax + \fi + \expandafter\HyPsd@unichar@second@byte\expandafter{% + \number + \numexpr#1-256*\number + \dimexpr.00390625\dimexpr\number#1sp\relax\relax\relax + }% \fi - \expandafter\HyPsd@unichar@second@byte\expandafter{% - \number - \numexpr#1-256*\number - \dimexpr.00390625\dimexpr\number#1sp\relax\relax\relax - }% \fi \else .% unsupported (Unicode -> PDF Doc Encoding) @@ -6318,7 +6339,8 @@ % \end{macrocode} % \end{macro} % -% After \cmd{\appendix} ``chapter'' should be replaced +% After \cmd{\appendix} ``chapter'' (or ``section'' for classes +% without chapter) should be replaced % by ``appendix'' to get \cmd{\autoref} work. % Macro \cmd{\Hy@chapapp} contains the current valid % name like \cmd{\@chapapp}, which cannot be used, @@ -6327,7 +6349,12 @@ % The ``french'' package defines counter \cmd{\thechapter} % by \cmd{\newcounter{chapter}}, if \cmd{\@ifundefined{chapter}}. % \begin{macrocode} -\def\Hy@chapterstring{chapter} +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname chapter\endcsname\relax + \def\Hy@chapterstring{section}% +\else + \def\Hy@chapterstring{chapter}% +\fi \def\Hy@appendixstring{appendix} \def\Hy@chapapp{\Hy@chapterstring} \let\HyOrg@appendix\appendix @@ -13376,7 +13403,7 @@ o\fi,t=#4}% }% \ifnum\c@secnumdepth>\m@ne \@ifundefined{if@mainmatter}% - \iftrue{\csname if@mainmatter\endcsname} + \iftrue{\csname if@mainmatter\endcsname}% \let\Hy@next\relax \fi \fi |