From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36933 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem with chemistry in display mode Date: Tue, 9 Oct 2007 13:59:16 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191952787 29143 80.91.229.12 (9 Oct 2007 17:59:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 17:59:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 09 19:59:44 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1IfJMu-0001y2-DT for gctc-ntg-context-518@m.gmane.org; Tue, 09 Oct 2007 19:59:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B58A71FABF; Tue, 9 Oct 2007 19:59:38 +0200 (CEST) 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 27557-01; Tue, 9 Oct 2007 19:59:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 13FC81FB01; Tue, 9 Oct 2007 19:59:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACA5C1FB01 for ; Tue, 9 Oct 2007 19:59:25 +0200 (CEST) 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 27346-01-3 for ; Tue, 9 Oct 2007 19:59:20 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 5A61B1FABF for ; Tue, 9 Oct 2007 19:59:19 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY hackers.mr.itd.umich.edu ID 470BC175.44E17.26902 ; 9 Oct 2007 13:59:17 -0400 In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36933 Archived-At: On Tue, 9 Oct 2007, Shen Chen wrote: > Hi all, > > The following example with the chemical module complains that "! Argument of > \mtharrowfill has an extra }.". > > ----------- > \usemodule[chemic] > \starttext > $$ \chemical{2H_2,PLUS,O_2,GIVES,2H_2O} $$ > \stoptext > ----------- > > The result pdf looks fine, though. The annoying problem only occurs when > there's an arrow "GIVES", and only in display mode. This error is due to a change that I suggested in math-ext (for over and under arrows). I did not check that it breaks ppchtex. Here is a fix. Add this somewhere in your style file: \def\chemicalsingleouterarrow {\dochemicalouterarrow {\hbox to \dimen2{\rightarrowfill\textstyle}}} \def\chemicaldoubleouterarrow {\dochemicalouterarrow {\lower.5\ht0\vbox {\offinterlineskip \hbox to \dimen2{\rightarrowfill\textstyle} \hbox to \dimen2{\leftarrowfill\textstyle}}}} \def\chemicaltwintipouterarrow {\dochemicalouterarrow {\hbox {\hbox to \dimen2{\rightarrowfill\textstyle}% \hskip-\dimen2 \hbox to \dimen2{\leftarrowfill\textstyle}}}} Hans, this should be corrected in ppchtex. There are a few other chemistry modules that use arrowfills, which now needs an argument specifying the math mode in which arrow should be drawn. I will look into it, but I have examples of working chemical formulas. Aditya ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________