From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36937 Path: news.gmane.org!not-for-mail From: Shen Chen Newsgroups: gmane.comp.tex.context Subject: Re: Problem with chemistry in display mode Date: Wed, 10 Oct 2007 10:18:14 +0800 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 1191982930 26765 80.91.229.12 (10 Oct 2007 02:22:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2007 02:22:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 10 04:22:06 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 1IfRD2-00074h-6n for gctc-ntg-context-518@m.gmane.org; Wed, 10 Oct 2007 04:22:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B3201FBCB; Wed, 10 Oct 2007 04:21:58 +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 00824-08; Wed, 10 Oct 2007 04:21:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D8D71FC54; Wed, 10 Oct 2007 04:18:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7157D1FBCB for ; Wed, 10 Oct 2007 04:18:30 +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 00824-04-2 for ; Wed, 10 Oct 2007 04:18:22 +0200 (CEST) Original-Received: from ims22.stu.nus.edu.sg (ims22.stu.nus.edu.sg [137.132.14.250]) by ronja.ntg.nl (Postfix) with ESMTP id 111641FB87 for ; Wed, 10 Oct 2007 04:18:20 +0200 (CEST) Original-Received: from MBX22.stu.nus.edu.sg ([137.132.14.212]) by ims22.stu.nus.edu.sg with Microsoft SMTPSVC(6.0.3790.3959); Wed, 10 Oct 2007 10:18:15 +0800 Original-Received: from 137.132.49.160 ([137.132.49.160]) by MBX22.stu.nus.edu.sg ([137.132.14.211]) via Exchange Front-End Server exchange.nus.edu.sg ([172.18.184.5]) with Microsoft Exchange Server HTTP-DAV ; Wed, 10 Oct 2007 02:18:15 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Thread-Topic: [NTG-context] Problem with chemistry in display mode Thread-Index: AcgK48/JDiWh9nbXEdyOZQANk1x6Gg== In-Reply-To: X-OriginalArrivalTime: 10 Oct 2007 02:18:15.0432 (UTC) FILETIME=[D0A3F880:01C80AE3] 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:36937 Archived-At: The fix works. Thanks a lot! shenchen On 10/10/07 1:59 AM, "Aditya Mahajan" wrote: > 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 > ______________________________________________________________________________ > _____ ___________________________________________________________________________________ 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 ___________________________________________________________________________________