From: Shen Chen <ShenChen@nus.edu.sg>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with chemistry in display mode
Date: Wed, 10 Oct 2007 10:18:14 +0800 [thread overview]
Message-ID: <C3325766.C6EA%ShenChen@nus.edu.sg> (raw)
In-Reply-To: <alpine.WNT.0.9999.0710091353550.3028@nqvgln>
The fix works. Thanks a lot!
shenchen
On 10/10/07 1:59 AM, "Aditya Mahajan" <adityam@umich.edu> 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
___________________________________________________________________________________
prev parent reply other threads:[~2007-10-10 2:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 15:50 Shen Chen
2007-10-09 17:59 ` Aditya Mahajan
2007-10-10 2:18 ` Shen Chen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C3325766.C6EA%ShenChen@nus.edu.sg \
--to=shenchen@nus.edu.sg \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).