diff options
author | Karl Berry <karl@freefriends.org> | 2010-03-31 00:11:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-03-31 00:11:07 +0000 |
commit | ac3fb1ee6dfc31e6b82bf85c87aac0b88c5c49ac (patch) | |
tree | 35b8a5e362306cdf4de49da379506e403bf53a07 /Master/texmf-dist/tex/latex/hyperref/hpdftex.def | |
parent | fb391569a88e85e8d3d220e2d61b15c6f1b9f764 (diff) |
hyperref update (30mar10)
git-svn-id: svn://tug.org/texlive/trunk@17636 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hpdftex.def | 93 |
1 files changed, 74 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def index a08fd9ee76d..b2d39109053 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def @@ -29,7 +29,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hpdftex.def} - [2010/03/19 v6.80r + [2010/03/30 v6.80u Hyperref driver for pdfTeX] \let\Hy@PutCatalog\pdfcatalog \ifHy@pagelabels @@ -211,7 +211,7 @@ }% }% \x - \AtBeginDocument{% + \Hy@AtBeginDocument{% \def\Hy@colorlink#1{% \begingroup \ifHy@ocgcolorlinks @@ -676,7 +676,7 @@ \hyper@pageduration \hyper@pagehidden } -\AtBeginDocument{% +\Hy@AtBeginDocument{% \ifHy@setpagesize \expandafter\@firstofone \else @@ -781,8 +781,8 @@ }% \else \def\HyField@AuxAddToFields#1{}% - \def\HyField@AfterAuxOpen{\AtBeginDocument}% - \AtBeginDocument{% + \def\HyField@AfterAuxOpen{\Hy@AtBeginDocument}% + \Hy@AtBeginDocument{% \if@filesw \immediate\write\@mainaux{% \string\providecommand\string\HyField@AuxAddToFields[1]{}% @@ -1531,6 +1531,7 @@ \fi \HyPsd@XeTeXBigCharstrue \pdfstringdef\Hy@tempa{#2}% + \HyPsd@SanitizeForOutFile\Hy@tempa \if@filesw \stepcounter{bookmark@seq@number}% \@ifundefined{@outlinefile}{% @@ -1547,6 +1548,55 @@ \endgroup } \newcounter{bookmark@seq@number} +\begingroup + \lccode`(=`{% + \lccode`)=`}% + \lccode`1=\z@ + \lccode`2=\z@ + \lccode`3=\z@ + \lccode`5=\z@ + \lccode`7=\z@ + \lccode`\#=\z@ + \lccode`\`=\z@ + \lccode`\{=\z@ + \lccode`\}=\z@ +\lowercase{% + \endgroup + \def\HyPsd@SanitizeForOutFile#1{% + \@onelevel@sanitize\Hy@tempa + \escapechar`\\% + \edef\Hy@tempa{% + \expandafter\HyPsd@SanitizeOut@BraceLeft\Hy@tempa(\@nil + }% + \edef\Hy@tempa{% + \expandafter\HyPsd@SanitizeOut@BraceRight\Hy@tempa)\@nil + }% + }% + \def\HyPsd@SanitizeOut@BraceLeft#1(#2\@nil{% + #1% + \ifx\\#2\\% + \expandafter\ltx@gobble + \else + \expandafter\ltx@firstofone + \fi + {% + \string\173% + \HyPsd@SanitizeOut@BraceLeft#2\@nil + }% + }% + \def\HyPsd@SanitizeOut@BraceRight#1)#2\@nil{% + #1% + \ifx\\#2\\% + \expandafter\ltx@gobble + \else + \expandafter\ltx@firstofone + \fi + {% + \string\175% + \HyPsd@SanitizeOut@BraceRight#2\@nil + }% + }% +} \newcommand{\currentpdfbookmark}{% \pdfbookmark[\Hy@currentbookmarklevel]% } @@ -1583,6 +1633,17 @@ } \def\ReadBookmarks{% \begingroup + \def\do##1{% + \ifnum\catcode`##1=\active + \@makeother##1% + \else + \ifnum\catcode`##1=6 % + \@makeother##1% + \fi + \fi + }% + \dospecials + \Hy@safe@activestrue \escapechar=`\\% \let\escapechar\@gobble % \def\@@BOOKMARK[##1][##2]##3##4##5{% @@ -1602,8 +1663,8 @@ }% }% {% - \def\WriteBookmarks{0}% - \InputIfFileExists{\jobname.out}{}{}% + \def\WriteBookmarks{0}% + \InputIfFileExists{\jobname.out}{}{}% }% %{\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}% \ifx\WriteBookmarks\relax @@ -1656,8 +1717,7 @@ } \let\H@old@ssect\@ssect \def\@ssect#1#2#3#4#5{% - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{section*.\the\Hy@linkcounter}% + \Hy@MakeCurrentHrefAuto{section*}% \setlength{\Hy@SectionHShift}{#1}% \begingroup \toks@{\H@old@ssect{#1}{#2}{#3}{#4}}% @@ -1673,8 +1733,7 @@ \def\@schapter#1{% \begingroup \let\@mkboth\@gobbletwo - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}% + \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}% \Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend }% @@ -1685,8 +1744,7 @@ \let\Hy@org@chapter\@chapter \def\@chapter{% \def\Hy@next{% - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}% + \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}% \Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend }% @@ -1716,8 +1774,7 @@ } \let\H@old@spart\@spart \def\@spart#1{% - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{part*.\the\Hy@linkcounter}% + \Hy@MakeCurrentHrefAuto{part*}% \Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend }% @@ -1731,8 +1788,7 @@ \expandafter\@secondoftwo \fi {% - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{section*.\the\Hy@linkcounter}% + \Hy@MakeCurrentHrefAuto{section*}% \setlength{\Hy@SectionHShift}{#3}% \begingroup \toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}% @@ -1766,8 +1822,7 @@ \fi \addtocontents{lof}{\protect\addvspace{10\p@}}% \addtocontents{lot}{\protect\addvspace{10\p@}}% - \Hy@GlobalStepCount\Hy@linkcounter - \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}% + \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}% \Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend }% |