ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Chapter/paragraph numbers in pdf bookmarks
Date: Fri, 23 Oct 1998 10:37:52 +0100	[thread overview]
Message-ID: <36304E70.5DE5E379@wxs.nl> (raw)

Berend de Boer wrote:

> Is it possible (and how) to have the chapter and paragraph numbers in the bookmark (outline) for pdf output?
> 
> Now I only get the text of the chapter but I would like the part.chapter.paragraph number as well.

(did you ever try \tracebookmarkstrue?)

\def\doinsertsomebookmark#1#2#3#4#5#6%
  {\global\utilitydonetrue
   \global\let\localbookmark=\gobbleoneargument
   \global\let\flushbookmark=\relax
   \doifinstringelse{#1}{\openbookmarklist}
     {\chardef\openbookmark=1}
     {\chardef\openbookmark=0}%
   \iftracebookmarks(#6: #4)\quad(\the\openbookmark)\par\fi
   \doinsertbookmark{#2}{#3}{#4}{#5}{\openbookmark}}

Can you try: 

   \doinsertbookmark{#2}{#3}{#6 #4}{#5}{\openbookmark}} 

I can add an option: sectionnumber=yes/no to a yet non existing setup
command, but first I wanna make sure what way to go. 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              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-10-23  9:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-23  9:37 Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-30 19:06 Berend de Boer
1998-10-22 22:18 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=36304E70.5DE5E379@wxs.nl \
    --to=pragma@wxs.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).