From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Andreas Schneider <aksdb@gmx.de>
Subject: Re: \pdfcatalog broken in MkIV (wrong subject)
Date: Wed, 23 Jun 2010 14:18:59 +0200 [thread overview]
Message-ID: <4C21FBB3.60307@wxs.nl> (raw)
In-Reply-To: <hvsogc$ous$1@dough.gmane.org>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-06-23 12:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-11 13:39 \pdfcatalog broken in MkIV Andreas Schneider
2010-06-23 10:43 ` Andreas Schneider
2010-06-23 12:18 ` Hans Hagen [this message]
2010-06-23 13:31 ` \pdfcatalog broken in MkIV (wrong subject) Andreas Schneider
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=4C21FBB3.60307@wxs.nl \
--to=pragma@wxs.nl \
--cc=aksdb@gmx.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).