ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with chemistry in display mode
Date: Tue, 9 Oct 2007 13:59:16 -0400 (EDT)	[thread overview]
Message-ID: <alpine.WNT.0.9999.0710091353550.3028@nqvgln> (raw)
In-Reply-To: <C331C462.C6B6%ShenChen@nus.edu.sg>

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
___________________________________________________________________________________


  reply	other threads:[~2007-10-09 17:59 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 [this message]
2007-10-10  2:18   ` Shen Chen

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=alpine.WNT.0.9999.0710091353550.3028@nqvgln \
    --to=adityam@umich.edu \
    --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).