diff options
author | Karl Berry <karl@freefriends.org> | 2008-04-20 21:33:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-04-20 21:33:37 +0000 |
commit | fbbc434924c127c9b89abff25fbdfc4f387fcd47 (patch) | |
tree | 6cc8f38565f80b2d6b16b18f37ea267b029d9586 /Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def | |
parent | b2da44db5b6071ae3d6320974e527a2143043793 (diff) |
hyperref update (20apr08)
git-svn-id: svn://tug.org/texlive/trunk@7554 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def | 107 |
1 files changed, 106 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def index 22b791a45a4..5f4a9f0acb9 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} - [2008/04/17 v6.77q + [2008/04/20 v6.77s Hyperref driver for dvipdfm] \def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}} \ifHy@pagelabels @@ -183,6 +183,111 @@ \def\hyper@anchorend{% \Hy@activeanchorfalse } +\ifHy@ocgcolorlinks + \def\OBJ@OCG@view{@OCG@view}% + \@pdfm@mark{% + obj \OBJ@OCG@view <<% + /Type/OCG% + /Name(View)% + /Usage<<% + /Print<<% + /PrintState/OFF% + >>% + /View<<% + /ViewState/ON% + >>% + >>% + >>% + }% + \@pdfm@mark{close \OBJ@OCG@view}% + \def\OBJ@OCG@print{@OCG@print}% + \@pdfm@mark{% + obj \OBJ@OCG@print <<% + /Type/OCG% + /Name(Print)% + /Usage<<% + /Print<<% + /PrintState/ON% + >>% + /View<<% + /ViewState/OFF% + >>% + >>% + >>% + }% + \@pdfm@mark{close \OBJ@OCG@print}% + \def\OBJ@OCGs{@OCGs}% + \@pdfm@mark{% + obj \OBJ@OCGs [% + \OBJ@OCG@view\space\OBJ@OCG@print + ]% + }% + \@pdfm@mark{close \OBJ@OCGs}% + \@pdfm@mark{% + put @catalog <<% + /OCProperties<<% + /OCGs \OBJ@OCGs + /D<<% + /OFF[\OBJ@OCG@print]% + /AS[% + <<% + /Event/View% + /OCGs \OBJ@OCGs + /Category[/View]% + >>% + <<% + /Event/Print% + /OCGs \OBJ@OCGs + /Category[/Print]% + >>% + <<% + /Event/Export% + /OCGs \OBJ@OCGs + /Category[/Print]% + >>% + ]% + >>% + >>% + >>% + }% + \@pdfm@mark{% + put @resources <<% + /Properties<<% + /OCView \OBJ@OCG@view + /OCPrint \OBJ@OCG@print + >>% + >>% + }% + \AtBeginDocument{% + \def\Hy@colorlink#1{% + \begingroup + \ifHy@ocgcolorlinks + \def\Hy@ocgcolor{#1}% + \setbox0=\color@hbox + \else + \HyColor@UseColor#1% + \fi + }% + \def\Hy@endcolorlink{% + \ifHy@ocgcolorlinks + \color@endbox + \mbox{% + \@pdfm@mark{content /OC/OCPrint BDC}% + \rlap{\copy0}% + \@pdfm@mark{content EMC/OC/OCView BDC}% + \begingroup + \expandafter\HyColor@UseColor\Hy@ocgcolor + \box0 % + \endgroup + \@pdfm@mark{content EMC}% + }% + \fi + \endgroup + }% + }% +\else + \Hy@DisableOption{ocgcolorlinks}% +\fi \def\Hy@undefinedname{UNDEFINED} \def\hyper@linkstart#1#2{% \protected@edef\Hy@testname{#2}% |