From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31673 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: formula, bookmarks and misc Date: Thu, 2 Nov 2006 09:23:46 +0100 Message-ID: <20061102092346.ca0d2f07.schuster.wolfgang@googlemail.com> References: <4543FF4E.5050905@free.fr> <115224fb0610310045r258f7760x5b53fcef5a8795d8@mail.gmail.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 1162455866 23140 80.91.229.2 (2 Nov 2006 08:24:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2006 08:24:26 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 02 09:24:21 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 1GfXs1-0005uz-5a for gctc-ntg-context-518@m.gmane.org; Thu, 02 Nov 2006 09:24:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3E5D81FED0; Thu, 2 Nov 2006 09:24:16 +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 16128-01; Thu, 2 Nov 2006 09:24:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1258D1FDDD; Thu, 2 Nov 2006 09:24:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F33BC1FE9D for ; Thu, 2 Nov 2006 09:24:03 +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 16049-01-2 for ; Thu, 2 Nov 2006 09:23:59 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ronja.ntg.nl (Postfix) with SMTP id 68FD51FD7D for ; Thu, 2 Nov 2006 09:23:57 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id m2so59762uge for ; Thu, 02 Nov 2006 00:23:57 -0800 (PST) Original-Received: by 10.67.22.7 with SMTP id z7mr218546ugi.1162455837073; Thu, 02 Nov 2006 00:23:57 -0800 (PST) Original-Received: from unknown ( [89.51.234.21]) by mx.google.com with ESMTP id m1sm1631988ugc.2006.11.02.00.23.55; Thu, 02 Nov 2006 00:23:56 -0800 (PST) Original-To: ntg-context@ntg.nl In-Reply-To: X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.6.10; i686-pc-mingw32) 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:31673 Archived-At: 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. Wolfgang