Changes

Jump to navigation Jump to search
329 bytes added ,  13:36, 12 May 2007
</texcode>
Basically, the idea is to envelope each item to be colorized inside a <texcode>/BTEX /ETEX</texcode>. Note that inside the block the text is no more verbatim, so you have to define some string replacemtn for special characters (e.g. _, %, $ etc). The example uses some definitions (explained before) which have to be put in the global ConTeXt file
<texcode>
\definecolor [SCblue] [r=0.0, g=0.0, b=0.75]
\definecolor [SCred] [r=0.75, g=0.0, b=0.0]
\definecolor [SCgrey] [r=0.376, g=0.376, b=0.376]
\definecolor [SCgreen] [r=0.0, g=0.45, b=0.0]
\definecolor [SCgreycirmaBlue] [r=0.376, g=0.376, b=0.376] \definecolor [SCgreen] [r=0.0, g=0.452, b=0.06]
</texcode>
\input example
</texcode>
 
After compiling, this is the result.
<context>
89

edits

Navigation menu