ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ppchtex, color and mkiv
@ 2010-11-19  8:52 Jörg Hagmann
  2010-11-19  9:52 ` Alan BRASLAU
  0 siblings, 1 reply; 2+ messages in thread
From: Jörg Hagmann @ 2010-11-19  8:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ppchtex, color and mkiv
  2010-11-19  8:52 ppchtex, color and mkiv Jörg Hagmann
@ 2010-11-19  9:52 ` Alan BRASLAU
  0 siblings, 0 replies; 2+ messages in thread
From: Alan BRASLAU @ 2010-11-19  9:52 UTC (permalink / raw)
  To: Jörg Hagmann, Hans Hagen; +Cc: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-19  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19  8:52 ppchtex, color and mkiv Jörg Hagmann
2010-11-19  9:52 ` Alan BRASLAU

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).