summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def108
1 files changed, 55 insertions, 53 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
index fcaf3e3a4e9..e49525c4977 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdvipdfm.def}
- [2010/11/26 v6.81v %
+ [2010/12/03 v6.81w %
Hyperref driver for dvipdfm]
\Hy@VersionCheck{hdvipdfm.def}
\def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}}
@@ -1461,64 +1461,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