[NTG-context] ppchTeX

Henri Menke henrimenke at gmail.com
Sat Jul 9 12:02:44 CEST 2016


Dear Alan,

thanks a lot for fixed code.  Could you point out where to find the
updated manual for MkIV?

Cheers,
Henri

On 07/07/2016 08:26 PM, Alan BRASLAU wrote:
> On Wed, 6 Jul 2016 18:23:57 +0200
> Henri Menke <henrimenke at gmail.com> wrote:
> 
>> Dear list,
>>
>> I just wanted to check whether chemical structures typeset in ConTeXt
>> can be exported as XML.  Therefore I wanted to setup a simple example
>> with ppchTeX.  I copied example 3.1 from the manual [1]
>>
>>> \usemodule[chemic]
>>> \starttext
>>>
>>> \startchemical[height=4500,bottom=2500]
>>>   \bottext{$\beta$-D-Fructopyranose}
>>>   \chemical[SIX,FRONT,BB1236,+SB4,-SB5,Z5][O]
>>>   \chemical[SIX,FRONT,+R12346,+RZ12346][\SR{HO},H,H,H,OH]
>>>   \chemical[SIX,FRONT,-R12346,-RZ12346][H,OH,\SR{HO},H,CH_2OH]
>>> \stopchemical
>>>
>>> \stoptext  
>>
>> Unfortunately, typesetting with MkIV distributed with TL 2016 produces
>> something really weird (see attached).
>>
>> Is the module `chemic` compatible with MkIV or am I doing something
>> wrong?
>>
>> Cheers,
>> Henri
>>
>> [1] http://www.pragma-ade.nl/general/manuals/mp-ch-en.pdf
> 
> 
> \usemodule[chemic] is MKII. It has been replace with core MKIV commands.
> 
> The syntax has been somewhat rationalized and many bugs corrected.
> 
> The example can be reproduced as follows:
> 
> 
> \starttext
> 
> \startchemical [height=4500,bottom=2500]
>   \bottext{$\beta$-D-Fructopyranose}
>   \chemical[SIXFRONT,BB123,B4,+SB5,-SB6,Z6] [O]
>   \chemical[+LR12345,LRZ12345] [OH,\SR{HO},H,H,H]
>   \chemical[+RR12345,RRZ12345] [CH_2OH,H,\SL{OH},\SR{HO},H]
> \stopchemical
> 
> \stoptext 
> 
> 
> 
> Unfortunately, the revised manual still has some errors that I need to
> fix...
> 
> Alan
> 



More information about the ntg-context mailing list