diff options
author | Karl Berry <karl@freefriends.org> | 2007-06-01 16:58:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-06-01 16:58:52 +0000 |
commit | 4d027ddb699c57025992eccbdd3cef0ec2836ee1 (patch) | |
tree | 7c9a8e252aa5133aa4c986aa37af12b8484ec44b /Master/texmf-dist/tex/latex/hyperref/hvtex.def | |
parent | ab8a652a0280de02179bbbdd79296f2bbd4073f7 (diff) |
hyperref update (30may07)
git-svn-id: svn://tug.org/texlive/trunk@4399 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hvtex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hvtex.def | 181 |
1 files changed, 116 insertions, 65 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtex.def b/Master/texmf-dist/tex/latex/hyperref/hvtex.def index dc2edcde006..e3dec84dce8 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hvtex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hvtex.def @@ -22,7 +22,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hvtex.def} - [2007/02/27 v6.75t + [2007/05/29 v6.76g Hyperref driver for VTeX in PDF/PS mode] \edef\Hy@VTeXversion{% \ifx\VTeXversion\@undefined @@ -41,17 +41,17 @@ \Hy@WarningNoLine{% VTeX 6.59g or above required for pdfpagelabels% }% - } + }% \else \gdef\Hy@PutCatalog#1{% - \Hy@vt@PutCatalog#1/PageLabels <<>>\@nil - } - \gdef\Hy@vt@PutCatalog#1/PageLabels <<#2>>#3\@nil{% + \Hy@vt@PutCatalog#1/PageLabels<<>>\@nil + }% + \gdef\Hy@vt@PutCatalog#1/PageLabels<<#2>>#3\@nil{% \ifx\\#2\\% \else \immediate\special{!pdfpagelabels #2}% \fi - } + }% \fi \endgroup \ifHy@pagelabels @@ -59,10 +59,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 @@ -79,7 +79,7 @@ }% |def|Hy@ExchangeBackslash#1\#2|@nil{% #1% - |ifx|\#2|\% + |ifx|\#2|\%% |else \\% |Hy@ReturnAfterFi{% @@ -87,7 +87,7 @@ }% |fi }% - } + }% \def\Hy@ExchangeLeftParenthesis#1(#2\@nil{% #1% \ifx\\#2\\% @@ -97,7 +97,7 @@ \Hy@ExchangeLeftParenthesis#2\@nil }% \fi - } + }% \def\Hy@ExchangeRightParenthesis#1)#2\@nil{% #1% \ifx\\#2\\% @@ -107,7 +107,7 @@ \Hy@ExchangeRightParenthesis#2\@nil }% \fi - } + }% \else \def\Hy@pstringdef#1#2{% \edef#1{\pdfescapestring{#2}}% @@ -143,7 +143,7 @@ \providecommand*\@pdfview{xyz} \providecommand*\@pdfborder{0 0 1} \providecommand*\@pdfborderstyle{} -\def\CurrentBorderColor{\@linkbordercolor} +\let\CurrentBorderColor\@linkbordercolor \def\hyper@anchor#1{% \Hy@SaveLastskip \begingroup @@ -173,12 +173,22 @@ \def\hyper@linkstart#1#2{% \Hy@pstringdef\Hy@pstringURI{#2}% \expandafter\Hy@colorlink\csname @#1color\endcsname - \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% + \@ifundefined{@#1bordercolor}{% + \let\CurrentBorderColor\relax + }{% + \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% + }% \def\Hy@tempa{#1}% \ifx\Hy@tempa\@urltype \special{!% aref <u=/Type /Action /S /URI /URI (\Hy@pstringURI)>;% - a=<\Hy@setpdfborder /C [\CurrentBorderColor]>% + a=<% + \Hy@setpdfborder + \ifx\CurrentBorderColor\relax + \else + /C [\CurrentBorderColor]% + \fi + >% }% \else \protected@edef\Hy@testname{#2}% @@ -187,7 +197,13 @@ \fi \special{!% aref \Hy@testname;% - a=<\Hy@setpdfborder /C [\CurrentBorderColor]>% + a=<% + \Hy@setpdfborder + \ifx\CurrentBorderColor\relax + \else + /C [\CurrentBorderColor]% + \fi + >% }% \fi } @@ -201,7 +217,13 @@ aref <% \ifnum\Hy@VTeXversion>753 \ifHy@newwindow n\fi\fi f=#2>#3;% - a=<\Hy@setpdfborder /C [\@filebordercolor]>% + a=<% + \Hy@setpdfborder + \ifx\@filebordercolor\relax + \else + /C [\@filebordercolor]% + \fi + >% }% \Hy@colorlink\@filecolor#1\Hy@endcolorlink \special{!endaref}% @@ -213,14 +235,24 @@ \leavevmode \special{!% aref <u=/Type /Action /S /URI /URI (\Hy@pstringURI)>;% - a=<\Hy@setpdfborder /C [\@urlbordercolor]>% + a=<% + \Hy@setpdfborder + \ifx\@urlbordercolor\relax + \else + /C [\@urlbordercolor]% + \fi + >% }% \Hy@colorlink\@urlcolor#1\Hy@endcolorlink \special{!endaref}% \endgroup } \def\hyper@link#1#2#3{% - \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% + \@ifundefined{@#1bordercolor}{% + \let\CurrentBorderColor\relax + }{% + \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}% + }% \leavevmode \protected@edef\Hy@testname{#2}% \ifx\Hy@testname\@empty @@ -228,7 +260,13 @@ \fi \special{!% aref \Hy@testname;% - a=<\Hy@setpdfborder /C [\CurrentBorderColor]>% + a=<% + \Hy@setpdfborder + \ifx\CurrentBorderColor\relax + \else + /C [\CurrentBorderColor]% + \fi + >% }% \expandafter\Hy@colorlink\csname @#1color\endcsname#3\Hy@endcolorlink \special{!endaref}% @@ -240,24 +278,36 @@ \Hy@pstringdef\Hy@pstringF{#1}% \Hy@pstringdef\Hy@pstringP{#3}% \leavevmode - \special{!aref + \special{!aref % <u=% - /Type /Action - /S /Launch - /F (\Hy@pstringF) + /Type/Action% + /S/Launch% + /F(\Hy@pstringF)% \ifHy@newwindow /NewWindow true \fi - \ifx\\#3\\\else /Win << /F (\Hy@pstringF) /P (\Hy@pstringP) >> \fi% + \ifx\\#3\\\else /Win<</F(\Hy@pstringF)/P(\Hy@pstringP)>>\fi% >;% - a=<\Hy@setpdfborder /C [\@runbordercolor]>% + a=<% + \Hy@setpdfborder + \ifx\@runbordercolor\relax + \else + /C[\@runbordercolor]% + \fi + >% }% - \Hy@colorlink\@filecolor#2\Hy@endcolorlink + \Hy@colorlink\@runcolor#2\Hy@endcolorlink \special{!endaref}% } \def\Acrobatmenu#1#2{% \leavevmode \special{!% aref <u=/S /Named /N /#1>;% - a=<\Hy@setpdfborder /C [\@menubordercolor]>% + a=<% + \Hy@setpdfborder + \ifx\@menubordercolor\relax + \else + /C[\@menubordercolor]% + \fi + >% }% \Hy@colorlink\@menucolor#2\Hy@endcolorlink \special{!endaref}% @@ -272,23 +322,23 @@ \hvtex@parse@trans\@pdfpagetransition \fi \fi - } - \def\hvtex@trans@effect@Blinds{\def\hvtex@trans@code{B}} - \def\hvtex@trans@effect@Box{\def\hvtex@trans@code{X}} - \def\hvtex@trans@effect@Dissolve{\def\hvtex@trans@code{D}} - \def\hvtex@trans@effect@Glitter{\def\hvtex@trans@code{G}} - \def\hvtex@trans@effect@Split{\def\hvtex@trans@code{S}} - \def\hvtex@trans@effect@Wipe{\def\hvtex@trans@code{W}} - \def\hvtex@trans@effect@R{\def\hvtex@trans@code{R}} - \def\hvtex@par@dimension{/Dm} - \def\hvtex@par@direction{/Di} - \def\hvtex@par@duration{/D} - \def\hvtex@par@motion{/M} - \def\hvtex@gettoken{\expandafter\hvtex@gettoken@\hvtex@buffer\@nil} + }% + \def\hvtex@trans@effect@Blinds{\def\hvtex@trans@code{B}}% + \def\hvtex@trans@effect@Box{\def\hvtex@trans@code{X}}% + \def\hvtex@trans@effect@Dissolve{\def\hvtex@trans@code{D}}% + \def\hvtex@trans@effect@Glitter{\def\hvtex@trans@code{G}}% + \def\hvtex@trans@effect@Split{\def\hvtex@trans@code{S}}% + \def\hvtex@trans@effect@Wipe{\def\hvtex@trans@code{W}}% + \def\hvtex@trans@effect@R{\def\hvtex@trans@code{R}}% + \def\hvtex@par@dimension{/Dm}% + \def\hvtex@par@direction{/Di}% + \def\hvtex@par@duration{/D}% + \def\hvtex@par@motion{/M}% + \def\hvtex@gettoken{\expandafter\hvtex@gettoken@\hvtex@buffer\@nil}% \def\hvtex@gettoken@#1 #2\@nil{% \edef\hvtex@token{#1}% \edef\hvtex@buffer{#2}% - } + }% \def\hvtex@parse@trans#1{% \let\hvtex@trans@code\@empty \let\hvtex@param@dimension\@empty @@ -305,7 +355,7 @@ \fi \csname hvtex@trans@effect@\hvtex@token\endcsname \hvtex@trans@params - } + }% \def\hvtex@trans@params{% \ifx\hvtex@buffer\@empty \else @@ -333,7 +383,7 @@ \let\next\hvtex@trans@params \fi \next - } + }% \def\hvtex@produce@trans{% \let\vtex@trans@special\@empty \if S\hvtex@trans@code @@ -362,7 +412,7 @@ \fi \special{!trans \vtex@trans@special}% \fi - } + }% \def\hyper@pageduration{% \ifx\@pdfpageduration\relax \else @@ -372,20 +422,20 @@ \special{!duration \@pdfpageduration}% \fi \fi - } + }% \def\hyper@pagehidden{% \ifHy@useHidKey \special{!hidden\ifHy@pdfpagehidden +\else -\fi}% \fi - } + }% \fi \ifx\@pdfproducer\relax - \def\@pdfproducer{VTeX} + \def\@pdfproducer{VTeX}% \ifnum\Hy@VTeXversion>\z@ \count@\VTeXversion - \divide\count@ 100 - \edef\@pdfproducer{\@pdfproducer\space v\the\count@} - \multiply\count@ -100 + \divide\count@ 100 % + \edef\@pdfproducer{\@pdfproducer\space v\the\count@}% + \multiply\count@ -100 % \advance\count@\VTeXversion \edef\@pdfproducer{% \@pdfproducer @@ -407,7 +457,7 @@ \ifx\gexmode\@undefined\else \ifnum\gexmode>\z@\space with GeX\fi \fi - } + }% \fi \fi \def\PDF@SetupDoc{% @@ -481,7 +531,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{% @@ -491,16 +542,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 @@ -509,7 +560,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 @@ -551,7 +602,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]{% @@ -562,12 +613,12 @@ \def\@BOOKMARK[#1]{\@ifnextchar[{\@@BOOKMARK[#1]}{\@@BOOKMARK[#1][-]}} \newcount\@serial@counter\@serial@counter=1\relax \begingroup - \catcode`\'=12 + \catcode`\'=12 % \ifnum\Hy@VTeXversion<650 % - \catcode`\"=12 + \catcode`\"=12 % \gdef\hv@pdf@char#1#2#3{% \char - \ifcase'#1#2#3 + \ifcase'#1#2#3 % "00\or"01\or"02\or"03\or"04\or"05\or"06\or"07% \or"08\or"09\or"0A\or"0B\or"0C\or"0D\or"0E\or"0F% \or"10\or"11\or"12\or"13\or"14\or"15\or"16\or"17% @@ -601,9 +652,9 @@ \or"F0\or"F1\or"F2\or"F3\or"F4\or"F5\or"F6\or"F7% \or"F8\or"F9\or"FA\or"FB\or"FC\or"FD\or"FE\or"FF% \fi - } + }% \else - \gdef\hv@pdf@char{\char'} + \gdef\hv@pdf@char{\char'}% \fi \endgroup \def\@@BOOKMARK[#1][#2]#3#4#5{% @@ -640,7 +691,7 @@ o\fi,t=#4}% \else \if@filesw \newwrite\@outlinefile - \immediate\openout\@outlinefile=\jobname.out + \immediate\openout\@outlinefile=\jobname.out\relax \ifHy@typexml \immediate\write\@outlinefile{<relaxxml>\relax}% \fi |