From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92371 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \startchemical Date: Wed, 19 Aug 2015 17:52:05 +0200 Message-ID: <55D4A625.1000709@gmail.com> References: <55D36E7C.4080604@gmail.com> <20150818120120.1abbf338@iram-hb-003386.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1913202095==" X-Trace: ger.gmane.org 1439999575 2404 80.91.229.3 (19 Aug 2015 15:52:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Aug 2015 15:52:55 +0000 (UTC) Cc: mailing list for ConTeXt users To: Alan BRASLAU Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 19 17:52:41 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZS5fN-0000DJ-2W for gctc-ntg-context-518@m.gmane.org; Wed, 19 Aug 2015 17:52:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25E7E10236 for ; Wed, 19 Aug 2015 17:52:40 +0200 (CEST) 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 38fm_hGUQ5Ab for ; Wed, 19 Aug 2015 17:52:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 098261023A for ; Wed, 19 Aug 2015 17:52:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF46E101F7 for ; Wed, 19 Aug 2015 17:52:10 +0200 (CEST) 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 tyf8JS7iaLEg for ; Wed, 19 Aug 2015 17:52:10 +0200 (CEST) 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 F2550101E6 for ; Wed, 19 Aug 2015 17:52:09 +0200 (CEST) Original-Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by filter1-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7JFq8I6024427 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 19 Aug 2015 17:52:09 +0200 Original-Received: by wibhh20 with SMTP id hh20so12367009wib.0 for ; Wed, 19 Aug 2015 08:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=/vJx1eyQ0WazBgrp+fw3jOTnZser9UhBnPGHdUu/CXQ=; b=S8mJTdezdDiujBi32s0VkClcgRl9aBRkz35bFgOadLz3C8ZxZmmI5ZvHObStKuZwi0 SoX2GCK//j7E1p6BSZjv60CrvtlLveoXnnzT3ssZjnYwEOn4QfbBrbErQnz00+vH0KhC LfFzrWE+OqvJ/WtpQUVMtm8Cc4k4qe2TWXA6MW9DisLsZCpNOY2WNVaQ3qe3chEvvbmT eMqxARyEx8gySHgx8V9LW7DBFnk/JV7WedQGrQbI6IveG5NKzaLe/8DnqAriDEFM1yWk qVBhmPO1G7gHFX5av7ZnO734HuIPb50Y6lR2z8XGPkKI81XXAzRv34k4B+BGQuV+VimM DZog== X-Received: by 10.180.90.198 with SMTP id by6mr4447444wib.82.1439999528498; Wed, 19 Aug 2015 08:52:08 -0700 (PDT) Original-Received: from keima.localdomain (x2f2a9a8.dyn.telefonica.de. [2.242.169.168]) by smtp.googlemail.com with ESMTPSA id c7sm1607461wjb.19.2015.08.19.08.52.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Aug 2015 08:52:07 -0700 (PDT) User-Agent: Postbox 4.0.3 (Macintosh/20150805) In-Reply-To: <20150818120120.1abbf338@iram-hb-003386.extra.cea.fr> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::236; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RP6DQ82e - 88087624ad05 - 20150819 (trained as not-spam) Received-SPF: pass (filter1-til.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::236 as permitted sender) receiver=filter1-til.mf.surf.net; client-ip=2a00:1450:400c:c05::236; envelope-from=; helo=mail-wi0-x236.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:92371 Archived-At: This is a multi-part message in MIME format. --===============1913202095== Content-Type: multipart/alternative; boundary="------------090908010509050407060608" This is a multi-part message in MIME format. --------------090908010509050407060608 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Alan BRASLAU > 18. August 2015 20:01 > On Tue, 18 Aug 2015 19:42:20 +0200 > > I did not realize that \startchemical took the name of an instance as > argument - I have only used it with key=3Dvalue, i.e.: > \startchemical[...=3D...] > > I suppose that it uses some "standard" mechanisms. There are helper commands for the default \define and \setup macros but the allowed arguments for \start... depend only on the way how you write it. > \definechemical[benzene] is different. It gets used as: > > \startchemical > \chemical[benzene,...] > \stopchemical > > > Perhaps there is some inconsistency with respect to ConTeXt syntax here= . There are other commands which redefine the generated \define-command but normally it is saved before the redefintion and the problem here is t= hat you can=E2=80=99t pass a instance because it can=E2=80=99t be created. Wolfgang --------------090908010509050407060608 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
18= .=20 August 2015 20:01
On= =20 Tue, 18 Aug 2015 19:42:20 +0200

I did not=20 realize that \startchemical took the name of an instance as
argument - I have only used it with key=3Dvalue, i.e.:
\startchemical[...=3D...]=

I suppose that it uses some "standard" mechanisms.
There are helper commands for the default \define and \setup macros
but the allowed arguments for \start... depend only on the way how
you write it.
\definechemical[benzene] is different. It gets used as:

\= startchemical
\chemical[benzene,...]
\stopchemical


Perhaps there is=20 some inconsistency with respect to ConTeXt syntax here.
There are other commands which redefine the generated \define-command
but normally it is saved before the redefintion and the problem here is=20 that
you can=E2=80=99t pass a instance because it can=E2=80=99t be created.
Wolfgang
--------------090908010509050407060608-- --===============1913202095== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1913202095==--