ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: DesdeChaves <desdechaves@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: PPCHTEX: bonds overlaps the radicals groups
Date: Mon, 28 Sep 2015 17:20:13 +0200	[thread overview]
Message-ID: <20150928172013.2bb9c5d8@iram-hb-003386.extra.cea.fr> (raw)
In-Reply-To: <CAPBmU9HRsFT6MnAkPWa73256r-t+vgh6aHPo4A6r5_Uy0dNbfg@mail.gmail.com>

On Mon, 28 Sep 2015 15:37:27 +0100
DesdeChaves <desdechaves@gmail.com> wrote:

> I try inserting several \chemical[ONE, .2MOV1] statements in some key
> places, but without success. Can you provide me a very simple example?

The idea is to draw the bond, then move, then the atom:

\chemical [ONE,SB5,Z5,.2MOV1,Z0,.2MOV1,SB1,1.2MOV1,Z0] [H_3C,CH_2,CH_2]

a bit sloppy, perhaps, but such is the syntax.
On the other hand, one can make multiple calls to \chemical, thus
making the code more readable.

Alternately, one can shorten the bond segments which are defined as
[.25,.75] of the bond length, but this turns out to be less aesthetic
than adding small moves.

One could imagine also to draw the text inside a framed box using a
white background, as in
\framed[frame=off,background=color,backgroundcolor=white]{\chemical{CH_2}}
but I do not like this solution at all.


I suppose that we could modify the underlying MP code to avoid
extending any bond over the text box, but this would impose that the
user draw the nodes before the bonds and would surely fail as one
builds molecules in segments (unless the user be fully aware of the
drawing process). We decided that this would be worse.

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
___________________________________________________________________________________

      parent reply	other threads:[~2015-09-28 15:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-27 17:00 DesdeChaves
2015-09-28 12:01 ` Alan BRASLAU
     [not found]   ` <CAPBmU9HRsFT6MnAkPWa73256r-t+vgh6aHPo4A6r5_Uy0dNbfg@mail.gmail.com>
2015-09-28 15:20     ` Alan BRASLAU [this message]

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=20150928172013.2bb9c5d8@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).