ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Florian Wobbe <Florian.Wobbe@awi.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: PDF Bookmarks on unnumbered subjects/titles etc
Date: Sun, 09 Jan 2011 16:09:38 +0100	[thread overview]
Message-ID: <FE45BD87-A43E-4AA8-B0A3-5A91AEB69D3A@awi.de> (raw)

Dear Wolfgang,

3 years ago, you wrote:

>> [...]
>> \setupinteraction[state=start]
>> \placebookmarks[chapter]
>> \setupinteractionscreen[option=bookmark]
>> \starttext
>> \chapter{some chapter}
>> \bookmark{a title}
>> some text
>> \stoptext
>>
>> The above example correctly generates bookmarks in the PDF.
>>
>> I can't, however, get the same thing to work when using
>> \subject. [...]
>
>You can to play with the following code, I don't know why it produce multiple
>bookmark entries and even more with text between the headers but it's funny.
>
>\setupinteraction[state=start]
>\def\sectionbookmark#1{\bookmark[section]{#1}#1}
>\def\subjectbookmark#1{\bookmark[subject]{#1}#1}
>\setuphead[section][deeptextcommand=\sectionbookmark]
>\setuphead[subject][deeptextcommand=\subjectbookmark]
>\placebookmarks[chapter,section,subject]
>\setupinteractionscreen[option=bookmark]
>\starttext
>\chapter{Chapter}
>\section{Section}
>\subject{Subject}
>\section{Another section}
>\chapter{Second Chapter}
>text
>\section{First section in second chapter}
>text
>\subject{Another Subject}
>text
>\section{Last section}
>text
>\stoptext

This minimal example gives me an error. Are there other/better means to achieve the same thing today?

Best,
Florian

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2011-01-09 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09 15:09 Florian Wobbe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-12-11 21:08 mir_ctx
2007-12-12 14:09 ` Wolfgang Schuster

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=FE45BD87-A43E-4AA8-B0A3-5A91AEB69D3A@awi.de \
    --to=florian.wobbe@awi.de \
    --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).