From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79796 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Doubled annotation content Date: Fri, 7 Dec 2012 06:38:08 +0100 Message-ID: References: <20121206202408.GC26897@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354858703 31847 80.91.229.3 (7 Dec 2012 05:38:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2012 05:38:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 07 06:38:36 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tgqdo-0003Zy-Nj for gctc-ntg-context-518@m.gmane.org; Fri, 07 Dec 2012 06:38:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DDE93101F1; Fri, 7 Dec 2012 06:38:15 +0100 (CET) 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 6ZkSEv5I5of0; Fri, 7 Dec 2012 06:38:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CAE6E10263; Fri, 7 Dec 2012 06:38:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BFC1010263 for ; Fri, 7 Dec 2012 06:38:12 +0100 (CET) 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 UZeP4sewF61L for ; Fri, 7 Dec 2012 06:38:11 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 98D07101F1 for ; Fri, 7 Dec 2012 06:38:11 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB75c9lN013811 for ; Fri, 7 Dec 2012 06:38:09 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so50588bkc.14 for ; Thu, 06 Dec 2012 21:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=tJ3lEqvaWLOUye6OZaVmOW8tNEvskfoxnfF7bDHAV60=; b=jOLko7BZYtbmeXm0xzs1dT+mGEDzAXtL3icrpqbrP10ScKAuuuh3BlzwEukfMn+YaN kW5KVbBZj9IhqJFwF29Om72hwTaH6zyVs/cZnLP9IVjWgeiK+eFxgicAuhy5dYs3Os3Z UrBHr4aCcaG0YlHhdW0NClVrml1oKeAQxvjAb2fzpTdyhmAP/XlCgbrA4TkOENovIBSS gBDad1fw+ZnEZCi15oYkxx2PNg3ho/PrrsP4Ydf8yAxKH66J59drji+BbT/5ZwLiYcch jKWFK1Lxn7UhP1sLRbBfZeGCX8kCWawQlnJ8k5KwPWJNYmVQyD2P+QyoxEblW/Z3akFk p9dQ== Original-Received: by 10.204.12.202 with SMTP id y10mr1597347bky.51.1354858689507; Thu, 06 Dec 2012 21:38:09 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbfa592.pool.mediaWays.net. [77.191.165.146]) by mx.google.com with ESMTPS id 18sm7948318bkv.0.2012.12.06.21.38.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Dec 2012 21:38:08 -0800 (PST) In-Reply-To: <20121206202408.GC26897@homerow> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RIwtC9Bo - fa42c1d3d710 - 20121207 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79796 Archived-At: Am 06.12.2012 um 21:24 schrieb Marco Patzer : > In the following example the content of the annotation is printed > twice. Bug? > > \usemodule [annotation] > > \defineannotation > [myannotation] > [alternative=command, > command=\cmd] > > \def\cmd > {\placeannotationcontent} The argument for the command keys has to be a macro with two parameters, the first parameters contains the formatted header and the second argument the formatted content of the environment. You have to change your definition of \cmd to \define[2]\cmd{#2} or \define[2]\cmd{\placeannotationcontent} Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________