ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: Henri Menke <henrimenke@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ppchTeX
Date: Thu, 7 Jul 2016 12:26:14 -0600	[thread overview]
Message-ID: <20160707122614.3ff9d9fa@cea.fr> (raw)
In-Reply-To: <577D309D.50502@gmail.com>

On Wed, 6 Jul 2016 18:23:57 +0200
Henri Menke <henrimenke@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
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2016-07-07 18:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-06 16:23 ppchTeX Henri Menke
2016-07-07 18:26 ` Alan BRASLAU [this message]
2016-07-09 10:02   ` ppchTeX Henri Menke
  -- strict thread matches above, loose matches on Subject: below --
2005-03-15 17:38 ppchtex Johannes Werner
2005-03-15 18:17 ` ppchtex Hans Hagen
2005-03-15 19:28   ` ppchtex Johannes Werner
2005-03-15 21:51     ` ppchtex Willi Egger
2005-03-15 23:13       ` ppchtex Johannes Werner
2005-03-16  8:40     ` ppchtex Hans Hagen
2001-05-29 15:46 PPCHtex Willi Egger
2001-05-31  9:31 ` PPCHtex Hans Hagen

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=20160707122614.3ff9d9fa@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=henrimenke@gmail.com \
    --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).