diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def index c649201dedd..cbc4ee63ea1 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def +++ b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def @@ -24,7 +24,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hdvipdfm.def} - [2007/10/30 v6.77b + [2007/11/12 v6.77e Hyperref driver for dvipdfm] \def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}} \ifHy@pagelabels @@ -58,8 +58,9 @@ }% }% \fi +\RequirePackage{pdftexcmds}[2007/11/11] \begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname pdfescapestring\endcsname\relax +\expandafter\ifx\csname pdf@escapestring\endcsname\relax \begingroup \catcode`\|=0 % \@makeother\\% @@ -104,7 +105,7 @@ }% \else \def\Hy@pstringdef#1#2{% - \edef#1{\pdfescapestring{#2}}% + \edef#1{\pdf@escapestring{#2}}% }% \fi \newsavebox{\pdfm@box} @@ -300,6 +301,11 @@ } \ifx\@pdfproducer\relax \def\@pdfproducer{dvipdfm}% + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname XeTeXversion\endcsname\relax + \else + \edef\@pdfproducer{XeTeX \the\XeTeXversion\XeTeXrevision}% + \fi \fi \def\PDF@FinishDoc{% \Hy@UseMaketitleInfos @@ -365,9 +371,12 @@ \Hy@pstringdef\Hy@pstringB{\@baseurl}% \@pdfm@mark{% docview<<% - \ifx\@pdfstartview\@empty + \ifx\@pdfstartpage\@empty \else - /OpenAction[@page\@pdfstartpage\@pdfstartview]% + \ifx\@pdfstartview\@empty + \else + /OpenAction[@page\@pdfstartpage\@pdfstartview]% + \fi \fi \ifx\@baseurl\@empty \else @@ -1008,7 +1017,8 @@ /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>% /A<</S/ResetForm>>% } -\def\Hy@writebookmark#1#2#3#4#5{% section number, text, label, level, file +\def\Hy@writebookmark#1#2#3#4#5{% + % section number, text, label, level, file \ifx\WriteBookmarks\relax% \else \ifnum#4>\Hy@bookmarksdepth\relax @@ -1170,7 +1180,9 @@ \let\@mkboth\@gobbletwo \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + \Hy@raisedlink{% + \hyper@anchorstart{\@currentHref}\hyper@anchorend + }% \endgroup } \@ifundefined{@chapter}{}{% @@ -1179,7 +1191,9 @@ \def\Hy@next{% \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + \Hy@raisedlink{% + \hyper@anchorstart{\@currentHref}\hyper@anchorend + }% }% \ifnum\c@secnumdepth>\m@ne \@ifundefined{if@mainmatter}% @@ -1209,7 +1223,9 @@ \H@old@spart{#1}% \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{part*.\the\Hy@linkcounter}% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + \Hy@raisedlink{% + \hyper@anchorstart{\@currentHref}\hyper@anchorend + }% } \let\H@old@sect\@sect \def\@sect#1#2#3#4#5#6[#7]#8{% @@ -1219,7 +1235,9 @@ \fi \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}% \ifnum #2>\c@secnumdepth - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + \Hy@raisedlink{% + \hyper@anchorstart{\@currentHref}\hyper@anchorend + }% \fi } \expandafter\def\csname Parent-4\endcsname{} @@ -1243,7 +1261,9 @@ \addtocontents{lot}{\protect\addvspace{10\p@}}% \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + \Hy@raisedlink{% + \hyper@anchorstart{\@currentHref}\hyper@anchorend + }% \if@twocolumn \@topnewpage[\@makeschapterhead{##2}]% \else |