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/tex/latex/hyperref/hyperref.sty | |
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/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 50 |
1 files changed, 34 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index 4e362baeed5..c200ed64982 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty @@ -23,7 +23,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hyperref} - [2007/01/06 v6.75l + [2007/01/14 v6.75m Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -1199,24 +1199,37 @@ }% \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 % + \expandafter\HyPsd@unichar\expandafter{% + \number\numexpr 55296+% + \dimexpr.0009765625\dimexpr\number#1sp-\p@ + \relax\relax\relax }% + \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) @@ -3460,7 +3473,12 @@ }% \fi } -\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 |