ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mp-chem.mpiv bug
@ 2011-11-07 11:59 Alan Braslau
  2011-11-07 16:10 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Braslau @ 2011-11-07 11:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

There is a (new) problem typesetting text in chemical structures.

Alan

Minimal example:

\starttext
\startchemical
\chemical [ONE,Z0] [O]
\stopchemical
\stoptext





! terminal: (/usr/local/context/beta/tex/texmf-context/metapost/context/base/mp-chem.mpiv)



>> labtype-10
! Unknown relation will be considered false.
<to be read again> 
                   )
chem_text->...XPR3));p:=p.if(labtype(SUFFIX2)>=10)
                                                  :shifted(0,ypart.center.p)...

chem_z_zero->...(SUFFIX2)((TEXT3),chem_do(origin))
                                                  ;endgroup
<*> chem_z_zero("\dochemicaltext{O}")
                                     ;



.

system          > tex > error on line 4 in file foo.tex: terminal: (/usr/local/context/beta/tex/texmf-context/metapost/context/base/mp-chem.mpiv)



>> labtype-10
! Unknown relation will be considered false.
<to be read again> 
                   )
chem_text->...XPR3));p:=p.if(labtype(SUFFIX2)>=10)
                                                  :shifted(0,ypart.center.p)...

chem_z_zero->...(SUFFIX2)((TEXT3),chem_do(origin))
                                                  ;endgroup
<*> chem_z_zero("\dochemicaltext{O}")
                                     ;



 ...

1     \starttext
2     \startchemical
3     \chemical [ONE,Z0] [O]
4 >>  \stopchemical
5     \stoptext
6     


\stopchemical ...erence \ctxlua {chemicals.stop()}
                                                  \egroup \chemicalwidth \wd...
l.4 \stopchemical


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mp-chem.mpiv bug
  2011-11-07 11:59 mp-chem.mpiv bug Alan Braslau
@ 2011-11-07 16:10 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2011-11-07 16:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 7-11-2011 12:59, Alan Braslau wrote:
> starttext
> \startchemical
> \chemical [ONE,Z0] [O]
> \stopchemical
> \stoptext

in mp-chem.mpiv patch labtype to mfun_labtype:

         if (mfun_labtype@# >= 10) : shifted (0,ypart center p) fi

(much has been moved to a namespace in order to be more protected 
against clashes)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-07 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-07 11:59 mp-chem.mpiv bug Alan Braslau
2011-11-07 16:10 ` Hans Hagen

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).