ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: "'ntg-context@ntg.nl'" <ntg-context@ntg.nl>
Subject: Re: How to get bookmarks working?
Date: Fri, 31 Jul 1998 10:25:58 +0200	[thread overview]
Message-ID: <35C17F96.6DFA4E25@wxs.nl> (raw)

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 {<</S /GoTo /D [#4 /Fit]>>}%
     \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
-----------------------------------------------------------------


             reply	other threads:[~1998-07-31  8:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-31  8:25 Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-07-31 18:52 Berend de Boer
1998-07-30 17:06 Berend de Boer
1998-07-30  6:50 Hans Hagen
1998-07-29 20:04 Berend de Boer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=35C17F96.6DFA4E25@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).