From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65057 Path: news.gmane.org!not-for-mail From: Florian Wobbe Newsgroups: gmane.comp.tex.context Subject: Re: PDF Bookmarks on unnumbered subjects/titles etc Date: Sun, 09 Jan 2011 16:09:38 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294585808 12405 80.91.229.12 (9 Jan 2011 15:10:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2011 15:10:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 09 16:10:02 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pbwu9-0001gK-LK for gctc-ntg-context-518@m.gmane.org; Sun, 09 Jan 2011 16:10:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E68CECAA42; Sun, 9 Jan 2011 16:10:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aJcuQUYT312T; Sun, 9 Jan 2011 16:09:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A6B6CA9CE; Sun, 9 Jan 2011 16:09:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 75EF0CA9CE for ; Sun, 9 Jan 2011 16:09:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xMm+PqpV+H3q for ; Sun, 9 Jan 2011 16:09:45 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 56FEACA9B9 for ; Sun, 9 Jan 2011 16:09:45 +0100 (CET) Original-Received: from mails3.awi.de (mails3.AWI.DE [134.1.2.14]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p09F9iWg005157 for ; Sun, 9 Jan 2011 16:09:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mails3.awi.de (Postfix) with ESMTP id AC9EBCE9B9 for ; Sun, 9 Jan 2011 16:09:43 +0100 (MET) X-Virus-Scanned: amavisd-new at awi.de Original-Received: from localhost ([127.0.0.1]) by localhost (mails3.awi.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id IDCpA4g2hJFJ for ; Sun, 9 Jan 2011 16:09:38 +0100 (MET) Original-Received: from msg.awi.de (msg.AWI.DE [134.1.3.16]) by mails3.awi.de (Postfix) with ESMTP id CDB9ECE9B4 for ; Sun, 9 Jan 2011 16:09:38 +0100 (MET) Original-Received: from [192.168.22.100] ([unknown] [91.61.44.22]) by msg.awi.de (Sun Java(tm) System Messaging Server 7u3-12.01 64bit (built Oct 15 2009)) with ESMTPSA id <0LER001FBGS2SD00@msg.awi.de> for ntg-context@ntg.nl; Sun, 09 Jan 2011 16:09:38 +0100 (MET) X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=134.1.2.14; country=DE; region=03; city=Bremerhaven; latitude=53.5500; longitude=8.5833; http://maps.google.com/maps?q=53.5500,8.5833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDRr9IvJ - a3e1df9346ea - 20110109 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:65057 Archived-At: 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 ___________________________________________________________________________________