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/pdfmark.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/pdfmark.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/pdfmark.def | 88 |
1 files changed, 45 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def index d31f8c13ea3..ba6ea4b50fa 100644 --- a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def +++ b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def @@ -29,7 +29,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{pdfmark.def} - [2010/11/26 v6.81v % + [2010/12/03 v6.81w % Hyperref definitions for pdfmark specials] \Hy@VersionCheck{pdfmark.def} \begingroup @@ -1734,52 +1734,54 @@ }% } \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}% - \pdfmark{% - pdfmark=/OUT,% - Count={##2\check@bm@number{##3}},% - Dest={##3},% - Title=\expandafter\strip@prefix\meaning\Hy@temp + \def\@@BOOKMARK[##1][##2]##3##4##5{% + \def\Hy@temp{##4}% + \pdfmark{% + pdfmark=/OUT,% + Count={##2\check@bm@number{##3}},% + Dest={##3},% + Title=\expandafter\strip@prefix\meaning\Hy@temp + }% }% - }% - {% - \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 |