From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78524 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: Wrong results for chemical structures and reactions Date: Tue, 2 Oct 2012 10:06:33 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <20121002100633.5ea6e2be@sole> References: <20121002094035.56af96fd@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349165212 24964 80.91.229.3 (2 Oct 2012 08:06:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2012 08:06:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 02 10:06:57 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 1TIxVB-0000h7-Vb for gctc-ntg-context-518@m.gmane.org; Tue, 02 Oct 2012 10:06:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 920AE10272; Tue, 2 Oct 2012 10:06:44 +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 5+txc8XWyQe4; Tue, 2 Oct 2012 10:06:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 38240101F2; Tue, 2 Oct 2012 10:06:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3EDB0101FC for ; Tue, 2 Oct 2012 10:06: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 lMA2VOG92xkx for ; Tue, 2 Oct 2012 10:06:39 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 34C98101F1 for ; Tue, 2 Oct 2012 10:06:39 +0200 (CEST) Original-Received: from oxalide-out.extra.cea.fr (oxalide-out.extra.cea.fr [132.168.224.8]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q9286afT019279 for ; Tue, 2 Oct 2012 10:06:37 +0200 Original-Received: from epeire2.extra.cea.fr (epeire2.extra.cea.fr [132.167.198.32]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id q9286XKR028420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 2 Oct 2012 10:06:33 +0200 Original-Received: from orpin2.extra.cea.fr (orpin2.extra.cea.fr [132.167.198.5]) by epeire2.extra.cea.fr (8.14.4/8.14.4) with ESMTP id q9286XEd008381; Tue, 2 Oct 2012 10:06:33 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from sole (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin2.extra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.2) with ESMTP id q9286XFv019484; Tue, 2 Oct 2012 10:06:33 +0200 In-Reply-To: <20121002094035.56af96fd@homerow> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) X-Bayes-Prob: 0.9789 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=132.168.224.8; country=FR; region=A3; city=Gif-sur-yvette; latitude=48.6833; longitude=2.1333; http://maps.google.com/maps?q=48.6833,2.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08I686Aqe - 494c7cac7057 - 20121002 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:78524 Archived-At: On Tue, 2 Oct 2012 09:40:35 +0200 Marco Patzer wrote: > Hi, > > chemical structures and reactions produce wrong results. Here is one > example from the wiki and two from the manual. > > \starttext > > %% does not typeset the reaction, prints the commas, wrong spacing > %% and no arrow > \startformula > \chemical{2H_2,+,O_2,->,2H_2O} > \stopformula > > %% same here, GIVES is not interpreted > \startformula > \chemical{A,GIVES,B,EQUILIBRIUM,C,MESOMERIC,D} > \stopformula > > %% wrong alignment, rules overlay symbols > \startformula > \setupchemical > [width=fit, > height=fit, > scale=small, > size=small] > \startchemical > \chemical[ONE,Z0,DB1,SB46,MOV1,Z0,SB28][C,C] > \stopchemical > \startchemical > \chemical[SPACE,PLUS,SPACE] > \stopchemical > \startchemical > \chemical[ONE,Z0,SB146,Z6][N,H] > \stopchemical > \startchemical > \chemical[SPACE,GIVES,SPACE] > \stopchemical > \startchemical > \chemical[ONE,Z07,SB1357,MOV1,Z0,SB27,PB:Z2,ONE,Z0,SB13,PE][C,H,C,N] > \stopchemical > \stopformula > > \stoptext > > Am I missing something? Is this mechanism not supported any more or > just broken? > > > Marco \startchemicalformula not \startformula \startchemicalformula \chemical{2H_2} \chemical{PLUS} \chemical{O_2} \chemical{GIVES} \chemical{2H_2O} \stopchemicalformula Also, the shorthand "+" for "PLUS", "->" for "GIVES", etc. seems to be interpreted only inline, not in displayed chemical formula mode. I am working (with Hans) to correct the mkiv chemical code, which has been completely re-written (from ppchTeX macros). Also working on a new manual, at the same time... Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________