From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59799 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \pdfcatalog broken in MkIV (wrong subject) Date: Wed, 23 Jun 2010 14:18:59 +0200 Message-ID: <4C21FBB3.60307@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277295568 14668 80.91.229.12 (23 Jun 2010 12:19:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2010 12:19:28 +0000 (UTC) Cc: Andreas Schneider To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 23 14:19:24 2010 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 1OROvM-00070y-2m for gctc-ntg-context-518@m.gmane.org; Wed, 23 Jun 2010 14:19:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E1104C9A8A; Wed, 23 Jun 2010 14:19:22 +0200 (CEST) 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 zcmPo39thsoJ; Wed, 23 Jun 2010 14:19:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7013EC9AAF; Wed, 23 Jun 2010 14:19:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53F0AC9AAF for ; Wed, 23 Jun 2010 14:19:17 +0200 (CEST) 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 rIw0j+ChieLU for ; Wed, 23 Jun 2010 14:19:15 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id 1E077C9A8A for ; Wed, 23 Jun 2010 14:19:14 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.3e) with ESMTP id 3095-1713362 for multiple; Wed, 23 Jun 2010 14:18:17 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b1 Thunderbird/3.0.5 In-Reply-To: X-Authenticated-User: hagen@controller-9 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:59799 Archived-At: On 23-6-2010 12:43, Andreas Schneider wrote: > Andreas Schneider wrote: > >> Hello, >> >> as suggested in the thread about PDF Page Labels, \pdfcatalog can be used >> to manually modify the PDF Stream. However it seems that this does not >> currently work in MkIV (from the minimals, beta branch). In MkII it does >> exactly as I though (the resulting PDF contains a Catalog section with the >> content I passed to \pdfcatalog). In the PDF produced by MkIV however no >> Catalog can be found. The \pdfcatalog primitive is not broken, it's simply not present in mkiv where we have a rather strict control over access to pdf resources. Anyhow, i'll add an option to the upcoming beta (normally I only do such weird features in paid projects). The thing is that it has to be hooked into the regular mechanisms properly (numbering, conversion) and the code in the mail you refer to is not ok (as it's hardcoded). Concerning your example, control over numbers happens this way: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setupuserpagenumber[way=byblock] \setupuserpagenumber[numberconversionset=pagenumber] \starttext \startfrontmatter \completecontent[interaction=all] \chapter{Preface} \dorecurse{10}{\input zapf\par} \stopfrontmatter \startbodymatter \chapter{Test} \dorecurse{15}{\input tufte\par} \chapter{TestAgain} \dorecurse{15}{\input ward\par} \stopbodymatter \startbackmatter Index maybe. \stopbackmatter \stoptext Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________