From: Alan Braslau <alan.braslau@cea.fr>
To: desdechaves@gmail.com
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Drawing chemical structures
Date: Thu, 21 Nov 2013 20:01:50 +0100 [thread overview]
Message-ID: <20131121200150.0866241f@iram-hb-003386.extra.cea.fr> (raw)
In-Reply-To: <CAPBmU9EFQssGoasJTau_-pKrM5UWf-Jv33KSHYjqG=tbzK0Pug@mail.gmail.com>
Hello,
We have completely rewritten the chemical macros from ppchtex, taking
some liberty with some details of the syntax. I will look into your
examples to see what is going wrong.
Alan
On Thu, 21 Nov 2013 18:10:45 +0000
DesdeChaves <desdechaves@gmail.com> wrote:
> Dear Sirs,
>
> I'm trying to run some code from the ppchtex manual, however, the
> chemical structures are not correctly drawn. See the example:
> https://www.dropbox.com/s/w7v8kouc4glndf0/chemicerror.pdf.
>
> I found this problem en Minimals (last version) and on TexLive 2013.
>
>
> \setupbodyfont[11pt]
> \usemodule[chemic]
> \starttext
>
>
> \startchemical[width=fit,scale=small,size=big]
> \bottext{α-Glycerophosphate}
> \chemical[ONE,SB1357,Z0357][\TL{α}{C},\SL{OPO\lohi{3}{2-}},H,H]
> \chemical[MOV1,SB137,Z037][C,\SL{OH},H]
> \chemical[MOV1,SB137,Z0137][C,H,\SL{OH},H]
> \stopchemical
>
>
>
> \definechemical[desoxyribose]
> {\chemical[FIVE,FRONT,BB125,+SB3,-SB4,Z4][O]
> \chemical[FIVE,FRONT,+R1235,+RZ1235][H,H,\SR{HOH_2C},OH]
> \chemical[FIVE,FRONT,-R1235,-RZ1235][H,OH,H,H]}
>
> \startchemical[height=6500,top=2000,bottom=2500,width=4500]
> \chemical[desoxyribose]
> \bottext{Desoxiribosa (dR)}
> \stopchemical
>
> \startchemical[height=4500,bottom=2500]
> \bottext{$\alpha$-D-Fructofuranose}
> \chemical
> [FIVE,FRONT,BB125,+SB3,-SB4,Z4][O]
> \chemical
> [FIVE,FRONT,+R1235,+RZ1235][\SR{HO},H,\SR{HOH_2C},CH_2OH]
> \chemical
> [FIVE,FRONT,-R1235,-RZ1235][OH,H,\SR{HO},H,CH_2OH]
> \stopchemical
>
> \startchemical[height=4500,bottom=2500]
> \chemical [FIVE,FRONT,B,R]
> \chemical [+RZ1..5] [1,2,3,4,5]
> \chemical [-RZ1..5] [a,b,c,d,e]
> \stopchemical
>
>
>
> \stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-11-21 19:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-21 18:10 DesdeChaves
2013-11-21 19:01 ` Alan Braslau [this message]
2013-11-21 20:11 ` Alan Braslau
2013-11-21 20:55 ` Aditya Mahajan
2013-11-21 22:28 ` Alan Braslau
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=20131121200150.0866241f@iram-hb-003386.extra.cea.fr \
--to=alan.braslau@cea.fr \
--cc=desdechaves@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).