Changes

Jump to navigation Jump to search
2,547 bytes removed ,  20:45, 15 June 2015
m
Moved to a separate page
* For spot colors, 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.
 
== Transparency ==
 
Acrobat Reader might not render transparency using RGB in a PDF that is displayed on a monitor. If the colours do not appear correctly, add the following code:
 
<code>
\setupcolors[pagecolormodel=auto]
</code>
 
In Acrobat, when transparency is used, a different route is followed (at least in the past) when rendering. Rendering colorspaces might be adapted to the output medium so it's a combination of colorspace, monitor/paper, calibration, knockout/overprint, transparency groups, assumptions, and so forth.
 
 
|}
===Transparent Colors===
 
You can define '''transparent''' colors through setting t, e.g. <tt>t=0.5</tt>. Beware, some PDF viewers and printshops can't handle PDF transparences!
 
Hans Hagen posted the following sample code for transparent colors on the mailing list on 2005-07-13; the yellow blocks have been added to demonstrate the order in which the blocks are drawn on the page; the first yellow block is behind the transparent red and blue blocks, while the second is in front of them.
 
{|
! width="45%"|
! width="10%"|
! width="45%"|
|-
| <texcode>
\definecolor [transparentred] [r=1,t=.5,a=1]
\definecolor [transparentblue] [b=1,t=.5,a=1]
\definecolor [solidyellow] [y=1,t=1,a=1]
 
\starttext
 
\startTEXpage
This is some sample text that goes behind the rectangles\hskip-8cm
\blackrule[width=2cm,height=1cm,depth=1cm,color=solidyellow]\hskip-0.67cm
\blackrule[width=2cm,height=2cm,color=transparentred]\hskip-0.67cm
\blackrule[width=2cm,height=1cm,depth=1cm,color=transparentblue]\hskip-0.67cm
\blackrule[width=2cm,height=2cm,color=solidyellow]\hskip2cm.
\stopTEXpage
 
\stoptext
</texcode>
|
|<context>
\setupcolors[state=start]
\definecolor [transparentred] [r=1,t=.5,a=1]
\definecolor [transparentblue] [b=1,t=.5,a=1]
\definecolor [solidyellow] [y=1,t=1,a=1]
 
\starttext
 
\startTEXpage
This is some sample text that goes behind the rectangles\hskip-8cm
\blackrule[width=2cm,height=1cm,depth=1cm,color=solidyellow]\hskip-0.67cm
\blackrule[width=2cm,height=2cm,color=transparentred]\hskip-0.67cm
\blackrule[width=2cm,height=1cm,depth=1cm,color=transparentblue]\hskip-0.67cm
\blackrule[width=2cm,height=2cm,color=solidyellow]\hskip2cm.
\stopTEXpage
 
\stoptext
</context>
|}
 
== Defining color schemes: {{cmd|definecolorgroup}} and {{cmd|definepalet}}==
{{cmd|definecolorgroup}}<tt>[name][system][values]</tt>
 
{{cmd|definepalet}}<tt>[palettename][colorname1=groupcolor:1, colorname2=groupcolor:2, ...]</tt>
Very interesting feature, see also the manual and here on the wiki [[Command/definecolor]]
=Choosing a color scheme=

Navigation menu