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
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
participants (2)
-
Alan BRASLAU
-
Jörg Hagmann