diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hpdftex.def | 368 |
1 files changed, 227 insertions, 141 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def index e10044dc4c3..33ffc752337 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def @@ -22,7 +22,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hpdftex.def} - [2007/02/27 v6.75t + [2007/05/29 v6.76g Hyperref driver for pdfTeX] \let\Hy@PutCatalog\pdfcatalog \ifHy@pagelabels @@ -30,10 +30,10 @@ \toks@\expandafter{\HyPL@Labels}% \xdef\HyPL@Labels{% \the\toks@ - \the\Hy@abspage\space<< #1 >> % + \the\Hy@abspage<<#1>>% }% - } - \AtEndDocument{\clearpage\HyPL@SetPageLabels} + }% + \AtEndDocument{\clearpage\HyPL@SetPageLabels}% \fi \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname pdfescapestring\endcsname\relax @@ -50,7 +50,7 @@ }% |def|Hy@ExchangeBackslash#1\#2|@nil{% #1% - |ifx|\#2|\% + |ifx|\#2|\%% |else \\% |Hy@ReturnAfterFi{% @@ -58,7 +58,7 @@ }% |fi }% - } + }% \def\Hy@ExchangeLeftParenthesis#1(#2\@nil{% #1% \ifx\\#2\\% @@ -68,7 +68,7 @@ \Hy@ExchangeLeftParenthesis#2\@nil }% \fi - } + }% \def\Hy@ExchangeRightParenthesis#1)#2\@nil{% #1% \ifx\\#2\\% @@ -78,7 +78,7 @@ \Hy@ExchangeRightParenthesis#2\@nil }% \fi - } + }% \else \def\Hy@pstringdef#1#2{% \edef#1{\pdfescapestring{#2}}% @@ -92,7 +92,7 @@ \let\pdflastxform\pdflastform \let\pdfrefxform\pdfrefform \else - \pdflinkmargin1pt + \pdflinkmargin1pt % \fi \providecommand*\@pdfview{XYZ} \def\new@pdflink#1{% @@ -125,7 +125,10 @@ \else /H\@pdfhighlight \fi - /C[\CurrentBorderColor]% + \ifx\CurrentBorderColor\relax + \else + /C[\CurrentBorderColor]% + \fi }\Hy@testname \expandafter\Hy@colorlink\csname @#1color\endcsname } @@ -137,14 +140,23 @@ \def\hyper@anchorstart#1{\new@pdflink{#1}\Hy@activeanchortrue} \def\hyper@anchorend{\pdf@endanchor\Hy@activeanchorfalse} \def\hyper@linkstart#1#2{% - \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% - \find@pdflink{#1}{#2}} + \@ifundefined{@#1bordercolor}{% + \let\CurrentBorderColor\relax + }{% + \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% + }% + \find@pdflink{#1}{#2}% +} \def\hyper@linkend{\close@pdflink} \def\hyper@link#1#2#3{% - \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% + \@ifundefined{@#1bordercolor}{% + \let\CurrentBorderColor\relax + }{% + \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% + }% \find@pdflink{#1}{#2}#3\close@pdflink } -\def\CurrentBorderColor{\@linkbordercolor} +\let\CurrentBorderColor\@linkbordercolor \def\hyper@linkurl#1#2{% \begingroup \Hy@pstringdef\Hy@pstringURI{#2}% @@ -157,7 +169,10 @@ \else /H\@pdfhighlight \fi - /C[\@urlbordercolor]% + \ifx\@urlbordercolor\relax + \else + /C[\@urlbordercolor]% + \fi }% user{% /Subtype/Link% @@ -184,7 +199,10 @@ \else /H\@pdfhighlight \fi - /C[\@filebordercolor]% + \ifx\@filebordercolor\relax + \else + /C[\@filebordercolor]% + \fi }% user {% /Subtype/Link% @@ -216,7 +234,10 @@ \else /H\@pdfhighlight \fi - /C[\@runbordercolor]% + \ifx\@runbordercolor\relax + \else + /C[\@runbordercolor]% + \fi }% user {% /Subtype/Link% @@ -231,18 +252,18 @@ >>% }% \relax - \Hy@colorlink\@filecolor#2% + \Hy@colorlink\@runcolor#2% \close@pdflink \endgroup } \ifx\@pdfproducer\relax - \def\@pdfproducer{pdfTeX} + \def\@pdfproducer{pdfTeX}% \ifx\eTeXversion\@undefined \else \ifx\eTeXversion\relax \else \ifnum\eTeXversion>0 % - \def\@pdfproducer{pdfeTeX} + \def\@pdfproducer{pdfeTeX}% \fi \fi \fi @@ -252,7 +273,7 @@ \edef\@pdfproducer{% \@pdfproducer \the\pdftexversion.\pdftexrevision - } + }% \else \ifnum\pdftexversion<130 % \edef\@pdfproducer{% @@ -260,7 +281,7 @@ \expandafter\@car\the\pdftexversion\@empty\@nil.% \expandafter\@cdr\the\pdftexversion\@empty\@nil \pdftexrevision - } + }% \else \ifnum\pdftexversion<140 % \else @@ -503,10 +524,13 @@ \else /H\@pdfhighlight \fi - /C[\@menubordercolor]% + \ifx\@menubordercolor\relax + \else + /C[\@menubordercolor]% + \fi }% - user{ - /Subtype /Link + user{% + /Subtype/Link% /A<<% /S/Named/N/#1% >>% @@ -526,7 +550,7 @@ \def\@Form[#1]{% \@ifundefined{textcolor}{\let\textcolor\@gobble}{}% \setkeys{Form}{#1}% - \ifnum\pdftexversion>13 + \ifnum\pdftexversion>13 % \pdfrefobj\OBJ@pdfdocencoding \pdfrefobj\OBJ@ZaDb \pdfrefobj\OBJ@Helv @@ -581,7 +605,7 @@ \def\Fld@width{\DefaultWidthofChoiceMenu}% \def\Fld@height{\DefaultHeightofChoiceMenu}% \bgroup - \Fld@menulength=0 + \Fld@menulength=0 % \@tempdima\z@ \@for\@curropt:=#3\do{% \expandafter\Fld@checkequals\@curropt==\\% @@ -610,8 +634,8 @@ \ifFld@popdown\def\Fld@flags{/Ff 131072}\fi \ifx\Fld@flags\@empty \@tempdima=\the\Fld@menulength\Fld@charsize - \advance\@tempdima by \Fld@borderwidth bp - \advance\@tempdima by \Fld@borderwidth bp + \advance\@tempdima by \Fld@borderwidth bp % + \advance\@tempdima by \Fld@borderwidth bp % \edef\Fld@height{\the\@tempdima}% \fi \@@Listbox{#3}% @@ -621,7 +645,7 @@ \egroup } \def\@@Radio#1{% - \Fld@listcount=0 + \Fld@listcount=0 % \@for\@curropt:=#1\do{% \expandafter\Fld@checkequals\@curropt==\\% \Hy@StepCount\Fld@listcount @@ -630,21 +654,21 @@ \Hy@escapeform\PDFForm@Radio \pdfstartlink user {% \PDFForm@Radio - /AP << - /N << + /AP<<% + /N<<% /\@currValue\space \DingObject - >> - >> + >>% + >>% }% \relax \MakeRadioField{\Fld@width}{\Fld@height}\pdfendlink - \space% deliberate space between radio buttons + \space % deliberate space between radio buttons }% } \newcount\Fld@listcount \def\@@Listbox#1{% \Choice@toks={ }% - \Fld@listcount=0 + \Fld@listcount=0 % \@for\@curropt:=#1\do{% \expandafter\Fld@checkequals\@curropt==\\% \Hy@StepCount\Fld@listcount @@ -685,7 +709,7 @@ \Hy@escapeform\PDFForm@Submit \pdfstartlink user {% \PDFForm@Submit - /AP << /N \SubmitObject\space /D \SubmitPObject >> + /AP<</N \SubmitObject/D \SubmitPObject>>% }% \relax \MakeButtonField{#2}% @@ -746,33 +770,37 @@ /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis ] >> } \edef\OBJ@pdfdocencoding{\the\pdflastobj} -\pdfobj { - << - /Type /Font - /Subtype /Type1 - /Name /ZaDb - /BaseFont /ZapfDingbats ->> +\pdfobj{% + <<% + /Type/Font% + /Subtype/Type1% + /Name/ZaDb% + /BaseFont/ZapfDingbats% + >>% } \edef\OBJ@ZaDb{\the\pdflastobj} -\pdfobj { << - /Type /Font - /Subtype /Type1 - /Name /Helv - /BaseFont /Helvetica - /Encoding \OBJ@pdfdocencoding\space 0 R - >> +\pdfobj{% + <<% + /Type/Font% + /Subtype/Type1% + /Name/Helv% + /BaseFont/Helvetica% + /Encoding \OBJ@pdfdocencoding\space 0 R% + >>% } \edef\OBJ@Helv{\the\pdflastobj} -\pdfobj { - << - /Fields [] - /DR << - /Font << /ZaDb \OBJ@ZaDb\space 0 R /Helv \OBJ@Helv\space0 R >> - >> - /DA (/Helv 10 Tf 0 g ) - /NeedAppearances true - >> +\pdfobj{% + <<% + /Fields[]% + /DR<<% + /Font<<% + /ZaDb \OBJ@ZaDb\space 0 R% + /Helv \OBJ@Helv\space0 R% + >>% + >>% + /DA(/Helv 10 Tf 0 g)% + /NeedAppearances true% + >>% } \edef\OBJ@acroform{\the\pdflastobj} \begingroup\expandafter\expandafter\expandafter\endgroup @@ -817,80 +845,99 @@ \Hy@escapeform{}% \fi \def\PDFForm@Check{% - /Subtype /Widget - \ifFld@hidden /F 6 \else /F 4 \fi - /T (\Hy@escapestring{\Fld@name}) - /Q \Fld@align\space - /BS << /W \Fld@borderwidth\space /S /\Fld@borderstyle\space >> - /MK << - /BC [\Fld@bordercolor] - \ifx\Fld@bcolor\@empty + /Subtype/Widget% + \ifFld@hidden /F 6\else /F 4\fi + /T(\Hy@escapestring{\Fld@name})% + /Q \Fld@align + /BS<</W \Fld@borderwidth /S/\Fld@borderstyle>>% + /MK<<% + \ifnum\Fld@rotation=\z@ + \else + /R \Fld@rotation + \fi + \ifx\Fld@bordercolor\relax \else - /BG [\Fld@bcolor] + /BC[\Fld@bordercolor]% \fi - /CA (\Hy@escapestring{\Fld@cbsymbol}) - >> - /DA (/ZaDb \strip@pt\Fld@charsize\space Tf \Fld@color\space rg) - /FT /Btn - /H /P - \ifFld@checked /V /Yes \else /V /Off \fi + \ifx\Fld@bcolor\relax + \else + /BG[\Fld@bcolor]% + \fi + /CA(\Hy@escapestring{\Fld@cbsymbol})% + >>% + /DA(/ZaDb \strip@pt\Fld@charsize\space Tf% + \ifx\Fld@color\@empty\else\space\Fld@color\fi)% + /FT/Btn% + /H/P% + \ifFld@checked /V/Yes\else /V/Off\fi } \def\PDFForm@Push{% - /Subtype/Widget + /Subtype/Widget% \ifFld@hidden /F 6\else /F 4\fi /T(\Hy@escapestring{\Fld@name})% /FT/Btn% - /Ff 65540 + /Ff 65540% /H/P% /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>% /MK<<% - /BC[\Fld@bordercolor]% - >>% - /A<</S/JavaScript/JS(\Hy@escapestring{\Fld@onclick})>>% -} -\def\Fld@additionalactions{% - /AA << - \ifx\Fld@keystroke@code\@empty - \else - /K<</S/JavaScript/JS(\Hy@escapestring{\Fld@keystroke@code})>>% - \fi - \ifx\Fld@format@code\@empty + \ifnum\Fld@rotation=\z@ \else - /F<</S/JavaScript/JS(\Hy@escapestring{\Fld@format@code})>>% + /R \Fld@rotation \fi - \ifx\Fld@validate@code\@empty + \ifx\Fld@bordercolor\relax \else - /V<</S/JavaScript/JS(\Hy@escapestring{\Fld@validate@code})>>% - \fi - \ifx\Fld@calculate@code\@empty - \else - /C<</S/JavaScript/JS(\Hy@escapestring{\Fld@calculate@code})>>% - \fi - \ifx\Fld@onfocus@code\@empty - \else - /Fo<</S/JavaScript/JS(\Hy@escapestring{\Fld@onfocus@code})>>% - \fi - \ifx\Fld@onblur@code\@empty - \else - /Bl<</S/JavaScript/JS(\Hy@escapestring{\Fld@onblur@code})>>% - \fi - \ifx\Fld@onmousedown@code\@empty - \else - /D<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmousedown@code})>>% - \fi - \ifx\Fld@onmouseup@code\@empty - \else - /U<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmouseup@code})>>% - \fi - \ifx\Fld@onenter@code\@empty - \else - /E<</S/JavaScript/JS(\Hy@escapestring{\Fld@onenter@code})>>% - \fi - \ifx\Fld@onexit@code\@empty - \else - /X<</S/JavaScript/JS(\Hy@escapestring{\Fld@onexit@code})>>% + /BC[\Fld@bordercolor]% \fi >>% + /A<</S/JavaScript/JS(\Hy@escapestring{\Fld@onclick})>>% +} +\def\Fld@@additionalactions{% + \ifx\Fld@keystroke@code\@empty + \else + /K<</S/JavaScript/JS(\Hy@escapestring{\Fld@keystroke@code})>>% + \fi + \ifx\Fld@format@code\@empty + \else + /F<</S/JavaScript/JS(\Hy@escapestring{\Fld@format@code})>>% + \fi + \ifx\Fld@validate@code\@empty + \else + /V<</S/JavaScript/JS(\Hy@escapestring{\Fld@validate@code})>>% + \fi + \ifx\Fld@calculate@code\@empty + \else + /C<</S/JavaScript/JS(\Hy@escapestring{\Fld@calculate@code})>>% + \fi + \ifx\Fld@onfocus@code\@empty + \else + /Fo<</S/JavaScript/JS(\Hy@escapestring{\Fld@onfocus@code})>>% + \fi + \ifx\Fld@onblur@code\@empty + \else + /Bl<</S/JavaScript/JS(\Hy@escapestring{\Fld@onblur@code})>>% + \fi + \ifx\Fld@onmousedown@code\@empty + \else + /D<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmousedown@code})>>% + \fi + \ifx\Fld@onmouseup@code\@empty + \else + /U<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmouseup@code})>>% + \fi + \ifx\Fld@onenter@code\@empty + \else + /E<</S/JavaScript/JS(\Hy@escapestring{\Fld@onenter@code})>>% + \fi + \ifx\Fld@onexit@code\@empty + \else + /X<</S/JavaScript/JS(\Hy@escapestring{\Fld@onexit@code})>>% + \fi +} +\def\Fld@additionalactions{% + \if-\Fld@@additionalactions-% + \else + /AA<<\Fld@@additionalactions>>% + \fi } \def\PDFForm@List{% /Subtype/Widget% @@ -900,13 +947,21 @@ /Q \Fld@align /BS<</W \Fld@borderwidth /S/\Fld@borderstyle>>% /MK<<% - /BC[\Fld@bordercolor]% - \ifx\Fld@bcolor\@empty + \ifnum\Fld@rotation=\z@ + \else + /R \Fld@rotation + \fi + \ifx\Fld@bordercolor\relax + \else + /BC[\Fld@bordercolor]% + \fi + \ifx\Fld@bcolor\relax \else /BG[\Fld@bcolor]% \fi >>% - /DA(/Helv \strip@pt\Fld@charsize\space Tf \Fld@color\space rg)% + /DA(/Helv \strip@pt\Fld@charsize\space Tf% + \ifx\Fld@color\@empty\else\space\Fld@color\fi)% /Opt[\the\Choice@toks]% \ifx\Fld@default\relax \else @@ -925,17 +980,25 @@ /T(\Hy@escapestring{\Fld@name})% /FT/Btn% /Ff 49152% - /H/P + /H/P% /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>% /MK<<% - /BC[\Fld@bordercolor]% - \ifx\Fld@bcolor\@empty + \ifnum\Fld@rotation=\z@ + \else + /R \Fld@rotation + \fi + \ifx\Fld@bordercolor\relax + \else + /BC[\Fld@bordercolor]% + \fi + \ifx\Fld@bcolor\relax \else /BG[\Fld@bcolor]% \fi /CA(H)% >>% - /DA(/ZaDb \strip@pt\Fld@charsize\space Tf \Fld@color\space rg)% + /DA(/ZaDb \strip@pt\Fld@charsize\space Tf% + \ifx\Fld@color\@empty\else\space\Fld@color\fi)% \ifx\@currValue\Fld@default /V/\Fld@default \else @@ -946,18 +1009,26 @@ \def\PDFForm@Text{% /Subtype/Widget% \ifFld@hidden /F 6\else /F 4\fi - /T(\Hy@escapestring{\Fld@name}) + /T(\Hy@escapestring{\Fld@name})% /Q \Fld@align /FT/Tx% /BS<</W \Fld@borderwidth\space /S /\Fld@borderstyle>>% /MK<<% - /BC[\Fld@bordercolor]% - \ifx\Fld@bcolor\@empty + \ifnum\Fld@rotation=\z@ + \else + /R \Fld@rotation + \fi + \ifx\Fld@bordercolor\relax + \else + /BC[\Fld@bordercolor]% + \fi + \ifx\Fld@bcolor\relax \else /BG[\Fld@bcolor]% \fi >>% - /DA(/Helv \strip@pt\Fld@charsize\space Tf \Fld@color\space rg)% + /DA(/Helv \strip@pt\Fld@charsize\space Tf% + \ifx\Fld@color\@empty\else\space\Fld@color\fi)% /DV(\Hy@escapestring{\Fld@default})% /V(\Hy@escapestring{\Fld@value})% \Fld@additionalactions @@ -970,7 +1041,7 @@ \ifFld@readonly /Ff 1\fi \fi \fi - \ifnum\Fld@maxlen>0/MaxLen \Fld@maxlen \fi + \ifnum\Fld@maxlen>\z@/MaxLen \Fld@maxlen \fi } \def\PDFForm@Submit{% /Subtype/Widget% @@ -981,7 +1052,14 @@ /H/P% /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>% /MK<<% - /BC[\Fld@bordercolor]% + \ifnum\Fld@rotation=\z@ + \else + /R \Fld@rotation + \fi + \ifx\Fld@bordercolor\relax + \else + /BC[\Fld@bordercolor]% + \fi >>% /A<<% /S/SubmitForm% @@ -1001,7 +1079,14 @@ /DA(/Helv \strip@pt\Fld@charsize\space Tf 0 0 1 rg)% /Ff 65540% /MK<<% - /BC[\Fld@bordercolor]% + \ifnum\Fld@rotation=\z@ + \else + /R \Fld@rotation + \fi + \ifx\Fld@bordercolor\relax + \else + /BC[\Fld@bordercolor]% + \fi >>% /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>% /A<</S/ResetForm>>% @@ -1013,7 +1098,8 @@ \else \@@writetorep{#1}{#2}{#3}{#4}{#5}% \fi - \fi} + \fi +} \def\Hy@currentbookmarklevel{0} \def\Hy@numberline#1{#1 } \def\@@writetorep#1#2#3#4#5{% @@ -1023,16 +1109,16 @@ \edef\Hy@level{#4}% \ifx\Hy@levelcheck Y% \@tempcnta\Hy@level\relax - \advance\@tempcnta by -1 + \advance\@tempcnta by -1 % \ifnum\Hy@currentbookmarklevel<\@tempcnta \advance\@tempcnta by -\Hy@currentbookmarklevel\relax - \advance\@tempcnta by 1 + \advance\@tempcnta by 1 % \Hy@Warning{% Difference (\the\@tempcnta) between bookmark levels is % greater \MessageBreak than one, level fixed% }% \@tempcnta\Hy@currentbookmarklevel - \advance\@tempcnta by 1 + \advance\@tempcnta by 1 % \edef\Hy@level{\the\@tempcnta}% \fi \else @@ -1041,7 +1127,7 @@ \global\let\Hy@currentbookmarklevel\Hy@level \@tempcnta\Hy@level\relax \expandafter\xdef\csname Parent\Hy@level\endcsname{#3}% - \advance\@tempcnta by -1 + \advance\@tempcnta by -1 % \edef\Hy@tempa{#3}% \edef\Hy@tempb{\csname Parent\the\@tempcnta\endcsname}% \ifx\Hy@tempa\Hy@tempb @@ -1083,7 +1169,7 @@ \@tempcnta\Hy@currentbookmarklevel \Hy@StepCount\@tempcnta \expandafter\pdfbookmark\expandafter[\the\@tempcnta]{#1}{#2}% - \advance\@tempcnta by -1 + \advance\@tempcnta by -1 % \xdef\Hy@currentbookmarklevel{\the\@tempcnta}% } \renewcommand\pdfbookmark[3][0]{% @@ -1119,7 +1205,7 @@ \else \if@filesw \newwrite\@outlinefile - \immediate\openout\@outlinefile=\jobname.out + \immediate\openout\@outlinefile=\jobname.out\relax \ifHy@typexml \immediate\write\@outlinefile{<relaxxml>\relax}% \fi @@ -1139,7 +1225,7 @@ } \def\calc@bm@number#1{% \@tempcnta=\check@bm@number{#1}\relax - \advance\@tempcnta by1 + \advance\@tempcnta by 1 % \expandafter\xdef\csname B_#1\endcsname{\the\@tempcnta}% } \ifHy@implicit |