On 10/22/2025 3:03 PM, [email protected] wrote:
Afer draw examples molecule
https://www.pragma-ade.nl/general/manuals/mp-ch-en.pdf
Have distance bond number not correct project out figure (link below.
I am used context 2025
I haven't had time to adapt the manual to the new module. When we redid
the chemistry in mkiv / mkxl, we decided to change the syntax a bit so
that one has more control (consistency):
old new
+R +RR
-R +RL
R +R
that way R can be used to combine; + - can be used to make 'm shorter or
longer (also ++ and --); RL going left, RR going right
so:
\starttext
\startTEXpage[offset=1ts]
\startchemical[width=fit,frame=off,scale=small]
\chemical[SIX,B,+R36,RZ36][\SL{COOH},\SL{COOH}]
\stopchemical
\stopTEXpage
\startTEXpage[offset=1ts]
\startchemical[height=4500,bottom=2500]
\bottext{$\beta$-D-Fructopyranose}
\chemical[SIX,FRONT,BB1236,+SB4,-SB5,Z5][O]
\chemical[SIX,FRONT,+LR12346,+LRZ12346][\SR{HO},H,H,H,OH]
\chemical[SIX,FRONT,+RR12346,+RRZ12346][H,OH,\SR{HO},H,CH_2OH]
\stopchemical
\stopTEXpage
\startTEXpage[offset=1ts]
\startchemical[scale=big,width=fit,top=3500,bottom=3500]
\chemical
[FIVE,FRONT,BB125,+SB3,-SB4,Z4]
[O]
\chemical
[FIVE,FRONT,+LR1235,+LRZ1235]
[H,H,\SR{HOH_2C},OH]
\chemical
[FIVE,FRONT,+RR1235,+RRZ1235]
[H,OH,H,H]
\stopchemical
\stopTEXpage
\startTEXpage[offset=1ts]
\startchemical[axis=on,frame=on]
\chemical[SIX,B,+R,RZ][1,2,3,4,5,6]
\stopchemical
\stopTEXpage
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________