From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6803 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: bookmarks Date: Mon, 4 Feb 2002 12:58:31 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <1427686646.20020204125831@bigfoot.com> References: <5.1.0.14.1.20020201100601.0395b2e8@server-1> <5.1.0.14.1.20020201100601.0395b2e8@server-1> <5.1.0.14.1.20020204121650.038830f8@server-1> Reply-To: Giuseppe Bilotta NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035397311 13880 80.91.224.250 (23 Oct 2002 18:21:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:21:51 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Hans Hagen In-Reply-To: <5.1.0.14.1.20020204121650.038830f8@server-1> Xref: main.gmane.org gmane.comp.tex.context:6803 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6803 Monday, February 04, 2002 Hans Hagen wrote: HH> At 03:24 PM 2/3/2002 +0100, Giuseppe Bilotta wrote: >>HH> [alternatively you can do things like >> >>HH> \appendtoks\def\mycs{WHOW}\to\everysanitize >> >>HH> to get your own clean up in bookmarks] >> >>This solution doesn't seem to work (either because \everysanitize >>is not issued by the PDF bookmark sanitizer or because it does not >>become effective soon enough). I found that a possible alternative >>is HH> hm, before i look into it someone should make me a minimal test file (never HH> use bookmarks myself) \setupinteraction[state=start] \placebookmarks[chapter] \def\thisisatest{This is a test} \starttext \chapter{\thisisatest} \stoptext >>\immediate\writeutility{% >> c \string\def\string\mycs{whatever we want}% >>} HH> that is a real terrible hack, isn't it? Yes. I propose some form of "generic (PDF) sanitizer" which gets called before the placebookmarks but can be configured anywhere in the TeX source (and thus needs to be saved to the auxiliary file). Something like: \startPDFsanity commandname {expansion in PDF form} anothercommandname {another expansion} andsoon {and so forth} \stopPDFsanity You could even define sanitizer as a class and then have PDF sanitizers, PS sanitizers etc, all with a common interface like the above. -- Giuseppe "Oblomov" Bilotta