[NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Jörg Hagmann
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?


ppchTEX does a superb job and I hope that the most useful features will 
be implemented in the near future in mkiv!


Jörg
___
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
___


Re: [NTG-context] ppchtex, color and mkiv

2010-11-19 Thread Alan BRASLAU
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
___