[NTG-context] bookmarks problems

Adam Lindsay atl at comp.lancs.ac.uk
Thu Dec 16 17:33:33 CET 2004


Hans Hagen said this at Wed, 15 Dec 2004 18:32:22 +0100:

>> I haven't looked at this in detail lately, and barely at all with the
>> pdftex drivers. Hans, do you think it would be hard to turn direct page
>> links into indirect links (point to page object)?
>
>can you check this:
>
>
>\def\doPDFbookmark level #1 n #2 text #3 page #4 open #5%
>   {\scratchcounter#4\advance\scratchcounter\plusone % temp hack, better
here 
>  \expanded{\doPDFgetpagereference{\the\scratchcounter}}\PDFobjectreference
>    \pdfoutline
>      user {<</S /GoTo /D [\PDFobjectreference\space\PDFpageviewwrd]>>}%
>      \ifcase#2 \else count \ifcase#5-\fi#2 \fi
>      {#3}}

Yes! much happier in Apple's Preview!

Cheers,
adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl at comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the ntg-context mailing list