ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: "Jörg Hagmann" <joerg.hagmann@unibas.ch>, "Hans Hagen" <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: ppchtex, color and mkiv
Date: Fri, 19 Nov 2010 10:52:30 +0100	[thread overview]
Message-ID: <201011191052.30710.alan.braslau@cea.fr> (raw)
In-Reply-To: <4CE63ADF.3050909@unibas.ch>

On Friday 19 November 2010 09:52:47 Jörg Hagmann wrote:
>  From a thread on this list (May 2009:
> http://archive.contextgarden.net/message/20090512.132914.5c29b5f4.en.html)
> I gather that whereas colouring a whole molecule works fine, colouring
> groups within a chemical structure is not yet fully implemented in mkiv.
>   Is that still correct?
> 
> Putting colour on atoms works with {\blue C} etc. or "\defineprocessor
> ... etc. chemred->C" etc.. However, I couldn't find a way to colour the
> bonds belonging to the group. Is there one?

The only way that I managed to do this is to draw the chemical twice and to 
use overlays (or to trick the bounding box using left=,right=,top=,bottom=). 
It would be nice to be able to draw colored bonds, perhaps with the syntax:
\chemical[SIX,rulecolor=blue,SB1,rulecolor=black,SB2..6][]

The problem is that we usually don't mix single tokens with token=val.
(but Hans has broken this rule with an experimental feature: Z1=C, currently 
broken as it converts C to lowercase...)

For now, rulecolor= can only be specified in \startchemical or \setupchemical.

Maybe we can discuss this with Hans off-list?

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:[~2010-11-19  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-19  8:52 Jörg Hagmann
2010-11-19  9:52 ` 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=201011191052.30710.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=joerg.hagmann@unibas.ch \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).