From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to get bookmarks working? Date: Fri, 31 Jul 1998 10:25:58 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <35C17F96.6DFA4E25@wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035390983 21353 80.91.224.250 (23 Oct 2002 16:36:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:36:23 +0000 (UTC) Cc: "'ntg-context@ntg.nl'" Original-To: Berend de Boer Xref: main.gmane.org gmane.comp.tex.context:107 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:107 Berend de Boer wrote: > > > I like to get bookmark support in the Acrobat viewer. In the sources this seems to be possible, but whatever I try, it fails. > > > > I never use them myself (Ijust use the tables of contents), but here is > > how it should work: > > It doesn't work. With bookmarks I also mean the table of contents, i.e. the separate window you get in Adobe. If I add > > \placebookmarks[hoofdstuk] > [hoofdstuk] > > context fails with: Wrong: pdfTeX fails. The page key seems no longer supported. Can you change this in spec-tpd: \def\doPDFbookmark level #1 n #2 text #3 page #4 open #5% {\pdfoutline user {<>}% \ifcase#2 \else count \ifcase#5-\fi#2 \fi {#3}} And this in spec-fdf: \def\doPDFinsertbookmark#1#2#3#4#5% level sublevels text page open=1 {\bgroup \scratchcounter=#4% \advance\scratchcounter by -1 \sanitizePDFstring#3\to\bookmarktext \doPDFbookmark level #1 n #2 text {\bookmarktext} page {\the\scratchcounter} open #5 \egroup} BTW, this only applies for the latest context releases, which have reorganized pdf special drivers. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl -----------------------------------------------------------------