diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hpdftex.def | 174 |
1 files changed, 112 insertions, 62 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def index 311a7d8f55b..137a4ab9687 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def @@ -24,7 +24,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hpdftex.def} - [2007/10/30 v6.77b + [2007/11/12 v6.77e Hyperref driver for pdfTeX] \let\Hy@PutCatalog\pdfcatalog \ifHy@pagelabels @@ -41,8 +41,9 @@ \AtEndDocument{\clearpage\HyPL@SetPageLabels}% }% \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\\% @@ -87,7 +88,7 @@ }% \else \def\Hy@pstringdef#1#2{% - \edef#1{\pdfescapestring{#2}}% + \edef#1{\pdf@escapestring{#2}}% }% \fi \let\Hy@pdfminorversion\relax @@ -112,7 +113,8 @@ \Hy@pdfminorversion=\Hy@pdfversion\relax \fi \PackageInfo{hyperref}{% - \expandafter\string\Hy@pdfminorversion:=\number\Hy@pdfversion\space + \expandafter\string\Hy@pdfminorversion + :=\number\Hy@pdfversion\space }% \fi \edef\Hy@pdfversion{\number\Hy@pdfminorversion}% @@ -291,44 +293,61 @@ \endgroup } \ifx\@pdfproducer\relax - \def\@pdfproducer{pdfTeX}% - \ifx\eTeXversion\@undefined - \else - \ifx\eTeXversion\relax + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname luatexversion\endcsname\relax + \def\@pdfproducer{pdfTeX}% + \ifx\eTeXversion\@undefined \else - \ifnum\eTeXversion>0 % - \def\@pdfproducer{pdfeTeX}% + \ifx\eTeXversion\relax + \else + \ifnum\eTeXversion>0 % + \def\@pdfproducer{pdfeTeX}% + \fi \fi \fi - \fi - \ifx\pdftexversion\@undefined - \else - \ifnum\pdftexversion<100 % - \edef\@pdfproducer{% - \@pdfproducer - \the\pdftexversion.\pdftexrevision - }% + \ifx\pdftexversion\@undefined \else - \ifnum\pdftexversion<130 % + \ifnum\pdftexversion<100 % \edef\@pdfproducer{% - \@pdfproducer-% - \expandafter\@car\the\pdftexversion\@empty\@nil.% - \expandafter\@cdr\the\pdftexversion\@empty\@nil - \pdftexrevision + \@pdfproducer + \the\pdftexversion.\pdftexrevision }% \else - \ifnum\pdftexversion<140 % + \ifnum\pdftexversion<130 % + \edef\@pdfproducer{% + \@pdfproducer-% + \expandafter\@car\the\pdftexversion\@empty\@nil.% + \expandafter\@cdr\the\pdftexversion\@empty\@nil + \pdftexrevision + }% \else - \def\@pdfproducer{pdfTeX}% + \ifnum\pdftexversion<140 % + \else + \def\@pdfproducer{pdfTeX}% + \fi + \edef\@pdfproducer{% + \@pdfproducer-% + \expandafter\@car\the\pdftexversion\@empty\@nil.% + \expandafter\@cdr\the\pdftexversion\@empty\@nil.% + \pdftexrevision + }% \fi - \edef\@pdfproducer{% - \@pdfproducer-% - \expandafter\@car\the\pdftexversion\@empty\@nil.% - \expandafter\@cdr\the\pdftexversion\@empty\@nil.% - \pdftexrevision - }% \fi \fi + \else + \begingroup + \count@=\luatexversion + \divide\count@ by 100 % + \edef\x{\the\count@}% + \count@=-\x\relax + \multiply\count@ by 100 % + \advance\count@ by \luatexversion + \edef\x{\endgroup + \def\noexpand\@pdfproducer{% + LuaTeX-\x.\the\count@.\luatexrevision + }% + }% + \x \fi \fi \def\PDF@SetupDoc{% @@ -353,9 +372,12 @@ /URI<</Base(\Hy@pstringB)>>% \fi }% - \ifx\@pdfstartview\@empty + \ifx\@pdfstartpage\@empty \else - openaction goto page \@pdfstartpage {\@pdfstartview}% + \ifx\@pdfstartview\@empty + \else + openaction goto page\@pdfstartpage{\@pdfstartview}% + \fi \fi \edef\Hy@temp{% \ifHy@toolbar\else /HideToolbar true\fi @@ -430,7 +452,8 @@ \def\hyper@pagetransition{% \ifx\@pdfpagetransition\relax \else - \expandafter\Hy@RemoveTransPageAttr\the\pdfpageattr^^J/Trans{}>>\END + \expandafter\Hy@RemoveTransPageAttr + \the\pdfpageattr^^J/Trans{}>>\END \ifx\@pdfpagetransition\@empty \else \edef\@processme{% @@ -606,8 +629,12 @@ \char123 % \endgroup }{Ding}% - \MakeFieldObject{\fbox{\textcolor{yellow}{\textsf{Submit}}}}{Submit}% - \MakeFieldObject{\fbox{\textcolor{yellow}{\textsf{SubmitP}}}}{SubmitP}% + \MakeFieldObject{% + \fbox{\textcolor{yellow}{\textsf{Submit}}}% + }{Submit}% + \MakeFieldObject{% + \fbox{\textcolor{yellow}{\textsf{SubmitP}}}% + }{SubmitP}% } \def\@endForm{} \def\@TextField[#1]#2{% parameters, label @@ -817,26 +844,38 @@ }% \endgroup } -\pdfobj { << /Type /Encoding /Differences [ 24 /breve /caron -/circumflex /dotaccent /hungarumlaut /ogonek /ring /tilde 39 -/quotesingle 96 /grave 128 /bullet /dagger /daggerdbl /ellipsis -/emdash /endash /florin /fraction /guilsinglleft /guilsinglright -/minus /perthousand /quotedblbase /quotedblleft /quotedblright -/quoteleft /quoteright /quotesinglbase /trademark /fi /fl /Lslash /OE -/Scaron /Ydieresis /Zcaron /dotlessi /lslash /oe /scaron /zcaron 164 -/currency 166 /brokenbar 168 /dieresis /copyright /ordfeminine 172 -/logicalnot /.notdef /registered /macron /degree /plusminus -/twosuperior /threesuperior /acute /mu 183 /periodcentered /cedilla -/onesuperior /ordmasculine 188 /onequarter /onehalf /threequarters 192 -/Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla -/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex -/Idieresis /Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde -/Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex /Udieresis -/Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde -/adieresis /aring /ae /ccedilla /egrave /eacute /ecircumflex -/edieresis /igrave /iacute /icircumflex /idieresis /eth /ntilde -/ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash -/ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis ] >> +\pdfobj {% + <<% + /Type/Encoding% + /Differences[% + 24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek% + /ring/tilde % + 39/quotesingle % + 96/grave % + 128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin% + /fraction/guilsinglleft/guilsinglright/minus/perthousand% + /quotedblbase/quotedblleft/quotedblright/quoteleft% + /quoteright/quotesinglbase/trademark/fi/fl/Lslash/OE% + /Scaron/Ydieresis/Zcaron/dotlessi/lslash/oe/scaron/zcaron % + 164/currency % + 166/brokenbar % + 168/dieresis/copyright/ordfeminine % + 172/logicalnot/.notdef/registered/macron/degree/plusminus% + /twosuperior/threesuperior/acute/mu % + 183/periodcentered/cedilla/onesuperior/ordmasculine % + 188/onequarter/onehalf/threequarters % + 192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE% + /Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave% + /Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute% + /Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave% + /Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls% + /agrave/aacute/acircumflex/atilde/adieresis/aring/ae% + /ccedilla/egrave/eacute/ecircumflex/edieresis/igrave% + /iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute% + /ocircumflex/otilde/odieresis/divide/oslash/ugrave% + /uacute/ucircumflex/udieresis/yacute/thorn/ydieresis% + ]% + >>% } \edef\OBJ@pdfdocencoding{\the\pdflastobj} \pdfobj{% @@ -1156,7 +1195,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 @@ -1309,7 +1349,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}{}{% @@ -1318,7 +1360,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}% @@ -1348,7 +1392,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{% @@ -1358,7 +1404,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{} @@ -1382,7 +1430,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 |