diff options
author | Karl Berry <karl@freefriends.org> | 2010-12-05 00:11:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-12-05 00:11:54 +0000 |
commit | 934cc6ee84db1068d96f54fc06f57064867febc4 (patch) | |
tree | edd5b30ece835451793c031951a5ea60013b155d /Master/texmf-dist/tex/latex/hyperref/hxetex.def | |
parent | 4a35a6083597c5be84ca9a8c1f2da109d8c3a960 (diff) |
hyperref (4dec10)
git-svn-id: svn://tug.org/texlive/trunk@20656 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hxetex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hxetex.def | 108 |
1 files changed, 55 insertions, 53 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hxetex.def b/Master/texmf-dist/tex/latex/hyperref/hxetex.def index 0a8aa534c16..acbb7a79953 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hxetex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hxetex.def @@ -29,7 +29,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hxetex.def} - [2010/11/26 v6.81v % + [2010/12/03 v6.81w % Hyperref driver for XeTeX] \Hy@VersionCheck{hxetex.def} \HyPsd@LoadUnicode @@ -1523,64 +1523,66 @@ }% } \def\ReadBookmarks{% - \begingroup - \def\do##1{% - \ifnum\catcode`##1=\active - \@makeother##1% - \else - \ifnum\catcode`##1=6 % + \pdf@ifdraftmode{}{% + \begingroup + \def\do##1{% + \ifnum\catcode`##1=\active \@makeother##1% + \else + \ifnum\catcode`##1=6 % + \@makeother##1% + \fi \fi + }% + \dospecials + \Hy@safe@activestrue + \escapechar=`\\% + \def\@@BOOKMARK[##1][##2]##3##4##5{% + \calc@bm@number{##5}% + }% + \InputIfFileExists{\jobname.out}{}{}% + \ifx\WriteBookmarks\relax + \global\let\WriteBookmarks\relax \fi - }% - \dospecials - \Hy@safe@activestrue - \escapechar=`\\% - \def\@@BOOKMARK[##1][##2]##3##4##5{% - \calc@bm@number{##5}% - }% - \InputIfFileExists{\jobname.out}{}{}% - \ifx\WriteBookmarks\relax - \global\let\WriteBookmarks\relax - \fi - \def\@@BOOKMARK[##1][##2]##3##4##5{% - \def\Hy@temp{##4}% - \Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}% - \@pdfm@mark{% - outline \ifHy@DvipdfmxOutlineOpen - [% - \ifnum##21>\z@ - \else - -% + \def\@@BOOKMARK[##1][##2]##3##4##5{% + \def\Hy@temp{##4}% + \Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}% + \@pdfm@mark{% + outline \ifHy@DvipdfmxOutlineOpen + [% + \ifnum##21>\z@ + \else + -% + \fi + ] % \fi - ] % - \fi - ##1<<% - /Title(\expandafter\strip@prefix\meaning\Hy@temp)% - /A<<% - /S/GoTo% - /D(\Hy@pstringName)% + ##1<<% + /Title(\expandafter\strip@prefix\meaning\Hy@temp)% + /A<<% + /S/GoTo% + /D(\Hy@pstringName)% + >>% >>% - >>% + }% }% - }% - {% - \def\WriteBookmarks{0}% - \InputIfFileExists{\jobname.out}{}{}% - }% - %{\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}% - \ifx\WriteBookmarks\relax - \else - \if@filesw - \newwrite\@outlinefile - \Hy@OutlineRerunCheck - \immediate\openout\@outlinefile=\jobname.out\relax - \ifHy@typexml - \immediate\write\@outlinefile{<relaxxml>\relax}% - \fi - \fi - \fi - \endgroup + \begingroup + \def\WriteBookmarks{0}% + \InputIfFileExists{\jobname.out}{}{}% + \endgroup + %{\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}% + \endgroup + }% + \ifx\WriteBookmarks\relax + \else + \if@filesw + \newwrite\@outlinefile + \Hy@OutlineRerunCheck + \immediate\openout\@outlinefile=\jobname.out\relax + \ifHy@typexml + \immediate\write\@outlinefile{<relaxxml>\relax}% + \fi + \fi + \fi } \def\check@bm@number#1{% \expandafter\ifx\csname B_#1\endcsname\relax |