Changes

Jump to navigation Jump to search
1,601 bytes added ,  15:38, 14 March 2005
no edit summary
Using colors with ConTeXt is easy:
* Start with <cmd>setupcolors</cmd><tt>[state=start]</tt>. Without that, everything appears in greys.
* RGB and CMYK are enabled by default. If you want only RGB or only CMYK color, use <tt>cmyk=no</tt> or <tt>rgb=no</tt>. Multitone colors see below. Perhaps that covers * For spot colors and hexachrome also, say spot=yes. To eliminate everything except spot colours, leaving a clean file for professional printing, accompany this with rgb=no,cmyk=no. See spot colours below for more details.
* Normally all colors are defined in RGB ''and'' CMYK and get converted if needed.
* You find lists of predefined colors in the files <tt>colo-xxx.tex</tt>, load them with <cmd>setupcolor</cmd><tt>[xxx]</tt>:
Very interesting feature, to be described later... (see manual)
 
=Spot colours=
 
To produce a file ready for a clean PDF separation process at your print house, start with:
 
<cmd>setupcolors</cmd><tt>[rgb=no,cmyk=no,spot=yes,state=start]</tt>
 
which will set things up for spot colors only, no RGB or CMYK allowed. Then define your basic spot colour. Note that this cannot contain spaces or numbers:
 
<cmd>definecolor</cmd><tt>[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18]</tt>
 
Now you can define the tints of this ink that you are actually going to use in your document. Let's say you'll have a 100% for headings:
 
<cmd>definecolor</cmd><tt>[MyBlue][PantoneTwoNineFour][p=1]</tt>
 
And then a 20% tint for nice display boxes:
 
<cmd>definecolor</cmd><tt>[MyBlueTint][PantoneTwoNineFour][p=.2]</tt>
 
And now you can happily use these named colours:
 
<texcode>
\starttext
\color[MyBlue]{Interesting}
\stoptext
</texcode>
 
If you are including graphics made by an external program, you might want to match the colour name used in the graphic with the colour name in your ConTeXt set-up so that only one colour space is used in the final file. Unfortunately Pantone names and others tend to have spaces and numbers in them, so you need to do a low-level mapping trick from your base name to the name you want embedded in the file:
 
<cmd>doregisterspotcolorname</cmd><tt>{PantoneTwoNineFour}{PANTONE 294 CV}</tt>
 
Now your output file should work beautifully with graphics embedded!
=Multitones=
21

edits

Navigation menu