From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31691 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: formula, bookmarks and misc Date: Thu, 2 Nov 2006 12:22:49 -0500 (EST) Message-ID: References: <4543FF4E.5050905@free.fr> <115224fb0610310045r258f7760x5b53fcef5a8795d8@mail.gmail.com> <20061102092346.ca0d2f07.schuster.wolfgang@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162488252 11144 80.91.229.2 (2 Nov 2006 17:24:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2006 17:24:12 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 02 18:24:07 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GfgHZ-0001aC-PX for gctc-ntg-context-518@m.gmane.org; Thu, 02 Nov 2006 18:23:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 242CE1FF03; Thu, 2 Nov 2006 18:23:12 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15078-04-3; Thu, 2 Nov 2006 18:23:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA1591FEF5; Thu, 2 Nov 2006 18:23:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 87D091FEF6 for ; Thu, 2 Nov 2006 18:23:00 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15078-04-2 for ; Thu, 2 Nov 2006 18:22:54 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id 5FF2D1FEF1 for ; Thu, 2 Nov 2006 18:22:54 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 454A2969.49A2B.6913 ; 2 Nov 2006 12:22:50 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <20061102092346.ca0d2f07.schuster.wolfgang@googlemail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31691 Archived-At: On Thu, 2 Nov 2006, Wolfgang Schuster wrote: > On Tue, 31 Oct 2006 15:55:08 -0500 (EST) > Aditya Mahajan wrote: > >> On Tue, 31 Oct 2006, Wolfgang Schuster wrote: >> >>> 2006/10/29, Sebastian Rooks : >>>> >>>> 2/ I'm using bookmarks but abbreviations in heads do not work properly. >>>> I've used a workaround some 3 years ago but I cannot remember which. Any >>>> suggestion ? (see test file below) >>> >>> \appendtoks \def\UK{UK} \to \simplifiedcommands >> >> >> Why doesn't >> >> \doglobal\appendtoks\setvalue{#2}{#2}\to\simplifiedcommands >> >> line in the definition of dodocomplexsynonym do this automatically? >> > > Hi Aditya, > > this was new to me. > > You are right, this did work as expected but only when you place the > definition of the abbreviation and the \placebookmarks command in the > right order. > > The following order in the souce works. > > \abbreviation [UK] {UK} {United Kingdom of Great Britain and Northern > Ireland} > > \placebookmarks[chapter,section,subsection] > > The problems is, the token register \simplifiedcommands is called by > the \placebookmarks command and every abbreviations, that follows after > the command is ignored. I will call this a bug. Typically, in my workflow, \placebookmark will go in the environment file (or the module) and \abbreviation will be in the main file. Hans, is there someway to make sure that this works even when abbreviations are defined after \placebookmark. Postponing to processing to everystarttext comes to mind, but I do not know how rugged that will be. Aditya