https://wiki.contextgarden.net/index.php?title=Spot_Colors&feed=atom&action=historySpot Colors - Revision history2024-03-28T20:17:01ZRevision history for this page on the wikiMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Spot_Colors&diff=30982&oldid=prevHraban: fixed some cmd markup, commented outdated remarks2020-08-24T07:13:43Z<p>fixed some cmd markup, commented outdated remarks</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 07:13, 24 August 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l55" >Line 55:</td>
<td colspan="2" class="diff-lineno">Line 55:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></texcode></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></texcode></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>(Tested only on minimal Linux distribution dated 8 May 2010 - can others confirm this</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"><!-- </ins>(Tested only on minimal Linux distribution dated 8 May 2010 - can others confirm this</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>to be true across the board now?)</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>to be true across the board now?) <ins class="diffchange diffchange-inline">--></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Any text between a {{cmd|startcolor[DarkBlue]}} and {{cmd|stopcolor}} should now be assigned to the correct spot colour channel - Pantone 308 CV - on output. More importantly if you include an external figure containing areas of this colour then your text and those parts of the graphic which have the same colour should now appear together in the 'Pantone 308 CV' colour channel on colour separation. </div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Any text between a {{cmd|startcolor<ins class="diffchange diffchange-inline">|</ins>[DarkBlue]}} and {{cmd|stopcolor}} should now be assigned to the correct spot colour channel - Pantone 308 CV - on output. More importantly if you include an external figure containing areas of this colour then your text and those parts of the graphic which have the same colour should now appear together in the 'Pantone 308 CV' colour channel on colour separation. </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>For example, if your original graphic is an EPS file containing the following lines:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>For example, if your original graphic is an EPS file containing the following lines:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l111" >Line 111:</td>
<td colspan="2" class="diff-lineno">Line 111:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Hans posted this example about spot and multitone colors on the mailinglist (2012-05-07).</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Hans posted this example about spot and multitone colors on the mailinglist (2012-05-07).</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The interface has slightly changed in comparison to older versions. It is important to define the colorants as spot colors first (<del class="diffchange diffchange-inline">\</del>definespotcolor).</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"><!-- </ins>The interface has slightly changed in comparison to older versions. <ins class="diffchange diffchange-inline">--> </ins>It is important to define the colorants as spot colors first (<ins class="diffchange diffchange-inline">{{cmd|</ins>definespotcolor<ins class="diffchange diffchange-inline">}}</ins>).</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><texcode></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><texcode></div></td></tr>
<!-- diff cache key wikidb16_33:diff::1.12:old-29283:rev-30982 -->
</table>Hrabanhttps://wiki.contextgarden.net/index.php?title=Spot_Colors&diff=29283&oldid=prevGarulfo: Garulfo moved page Color/Spot Colors to Spot Colors without leaving a redirect: simplification2020-06-10T12:24:28Z<p>Garulfo moved page <a href="/index.php?title=Color/Spot_Colors&action=edit&redlink=1" class="new" title="Color/Spot Colors (page does not exist)">Color/Spot Colors</a> to <a href="/Spot_Colors" title="Spot Colors">Spot Colors</a> without leaving a redirect: simplification</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 12:24, 10 June 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Garulfohttps://wiki.contextgarden.net/index.php?title=Spot_Colors&diff=28680&oldid=prevGarulfo at 13:55, 8 June 20202020-06-08T13:55:18Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 13:55, 8 June 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l199" >Line 199:</td>
<td colspan="2" class="diff-lineno">Line 199:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\stoptext</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>\stoptext</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></texcode></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></texcode></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Color]]</ins></div></td></tr>
</table>Garulfohttps://wiki.contextgarden.net/index.php?title=Spot_Colors&diff=22888&oldid=prevAdityam: Created page with "= Spot Colors = To produce a file ready for a clean PDF separation process at your print house, start with: {{cmd|setupcolors}}<tt>[rgb=no,cmyk=yes,spot=yes,state=start,overpri..."2015-06-15T20:42:16Z<p>Created page with "= Spot Colors = To produce a file ready for a clean PDF separation process at your print house, start with: {{cmd|setupcolors}}<tt>[rgb=no,cmyk=yes,spot=yes,state=start,overpri..."</p>
<p><b>New page</b></p><div>= Spot Colors =<br />
<br />
To produce a file ready for a clean PDF separation process at your print house, start with:<br />
<br />
{{cmd|setupcolors}}<tt>[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes]</tt><br />
<br />
which will set things up for spot colors with CMYK allowed. The last setting ensures that black overprinting your spot colour tints will not knock out the colour - this is important for some types of commercial printing.<br />
<br />
Then define your basic spot colour. Note that the name cannot contain spaces or numbers (but we come to that later):<br />
<br />
{{cmd|definecolor}}<tt>[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18]</tt><br />
<br />
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:<br />
<br />
{{cmd|definespotcolor}}<tt>[MyBlue][PantoneTwoNineFour][p=1]</tt><br />
<br />
And then a 20% tint for nice display boxes:<br />
<br />
{{cmd|definespotcolor}}<tt>[MyBlueTint][PantoneTwoNineFour][p=.2]</tt><br />
<br />
And now you can happily use these named colours:<br />
<br />
<texcode><br />
\starttext<br />
\color[MyBlue]{Interesting}<br />
\stoptext<br />
</texcode><br />
<br />
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 some extra work.<br />
<br />
==Using the 'e' key to \definespotcolor to specify a spot colour name with spaces==<br />
<br />
You can use the 'e' key when defining your spot colours in order to specify the precise colour names to be used by your ConTeXt set-up in the output file. For example:<br />
<br />
<texcode><br />
% set up the cmyk fallbacks<br />
\definecolor<br />
[PantoneThreeZeroEight]<br />
[c=1,m=.05,y=0,k=.47]<br />
<br />
\definecolor<br />
[PantoneTwoNineEight]<br />
[c=.69,m=.07,y=0,k=0]<br />
<br />
% Define tints of spot colours to be used in document for colouring text<br />
\definespotcolor<br />
[DarkBlue]<br />
[PantoneThreeZeroEight]<br />
[p=1,e=PANTONE 308 CV]<br />
<br />
\definespotcolor<br />
[LightBlue]<br />
[PantoneTwoNineEight]<br />
[p=1,e=PANTONE 298 CV]<br />
</texcode><br />
<br />
(Tested only on minimal Linux distribution dated 8 May 2010 - can others confirm this<br />
to be true across the board now?)<br />
<br />
Any text between a {{cmd|startcolor[DarkBlue]}} and {{cmd|stopcolor}} should now be assigned to the correct spot colour channel - Pantone 308 CV - on output. More importantly if you include an external figure containing areas of this colour then your text and those parts of the graphic which have the same colour should now appear together in the 'Pantone 308 CV' colour channel on colour separation. <br />
<br />
For example, if your original graphic is an EPS file containing the following lines:<br />
<br />
%%DocumentCustomColors: (PANTONE 298 CV)<br />
%%+ (PANTONE 308 CV)<br />
%%CMYKCustomColor: 0.69 0.07 0 0 (PANTONE 298 CV)<br />
%%+ 1 0.05 0 0.47 (PANTONE 308 CV)<br />
<br />
and you convert this to a PDF using <tt>ps2pdf</tt> for inclusion in your '''ConTeXt''' document your PDF graphic will then contain something like:<br />
<br />
<code><br />
8 0 obj<br />
[/Separation<br />
/PANTONE#20308#20CV<br />
/DeviceCMYK<br />
9 0 R]endobj<br />
10 0 obj<br />
[/Separation<br />
/PANTONE#20298#20CV<br />
/DeviceCMYK<br />
11 0 R]endobj<br />
</code><br />
<br />
Note how the space characters in the colour name are now encoded as '#20', but the colour names are essentially identical between the original EPS graphic, the new PDF graphic and your text.<br />
<br />
A good way of testing colour separation if you don't have access to expensive pre-flight PDF validation tools is to use the following GhostScript command:<br />
<br />
gs \<br />
-dBATCH \<br />
-dNOPAUSE \<br />
-sDEVICE=tiffsep \<br />
-dDOINTERPOLATE \<br />
-dTextAlphaBits=4 \<br />
-dGraphicsAlphaBits=4 \<br />
-sOutputFile=output.tif \<br />
-r120 \<br />
-MaxSeparations=8 \<br />
input.pdf<br />
<br />
This renders a PDF file <tt>input.pdf</tt> as a set of TIFF files:<br />
<br />
output.tif - Composite including CMYK approximations to spot colours<br />
output.tif.Black.tif - K channel<br />
output.tif.Cyan.tif - C channel<br />
output.tif.Magenta.tif - M channel<br />
output.tif.Yellow.tif - Y channel<br />
output.tif.s0.tif - Pantone 308 CV<br />
output.tif.s1.tif - Pantone 298 CV<br />
<br />
=Multitones=<br />
<br />
Hans posted this example about spot and multitone colors on the mailinglist (2012-05-07).<br />
The interface has slightly changed in comparison to older versions. It is important to define the colorants as spot colors first (\definespotcolor).<br />
<br />
<texcode><br />
\definecolor [xcyan] [c=1]<br />
\definecolor [xmagenta][m=1]<br />
\definecolor [xyellow] [y=1]<br />
<br />
\definespotcolor [scyan] [xcyan] [p=1]<br />
\definespotcolor [smagenta][xmagenta][p=1]<br />
\definespotcolor [syellow] [xyellow] [p=1]<br />
<br />
\definemultitonecolor[scombi] [xcyan=.2,xmagenta=.4,xyellow=.6][c=.2,m=.4,y=.6]<br />
<br />
\startTEXpage<br />
\hbox \bgroup<br />
\blackrule[color=scyan, width=1cm,height=1cm,depth=0cm]%<br />
\blackrule[color=smagenta,width=1cm,height=1cm,depth=0cm]%<br />
\blackrule[color=syellow, width=1cm,height=1cm,depth=0cm]%<br />
\blackrule[color=scombi, width=1cm,height=1cm,depth=0cm]%<br />
\egroup<br />
\stopTEXpage<br />
</texcode><br />
(The CMYK color spec is the fall back color used on screen; one can preview separations in full Acrobat 7.)<br />
<br />
=Colorizing Grayscale Pictures=<br />
<br />
Another sample by Hans (mailing list 2005-11-16) demonstrates a lot of different possibilities:<br />
<br />
<texcode><br />
\setuplayout[header=0pt,footer=0pt,width=middle,height=middle,backspace=1cm,topspace=1cm]<br />
\setupcolors[state=start]<br />
<br />
\startbuffer<br />
\definecolor [blue] [c=1, m=.38, y=0, k=.64]<br />
\definecolor [yellow] [c=0, m=.28, y=1, k=.06]<br />
<br />
\definespotcolor [blue-100] [blue] [p=1]<br />
\definespotcolor [yellow-100] [yellow] [p=1]<br />
<br />
\definemultitonecolor [combicolor] [blue=.12, yellow=.28] [c=.1, m=.1, y=.3, k=.1]<br />
<br />
\definemultitonecolor [combicolor-b] [blue=1] [c=1, m=.38, y=0, k=.64] % force multitone<br />
\definemultitonecolor [combicolor-y] [yellow=1] [c=0, m=.28, y=1, k=.06] % force multitone<br />
<br />
\useexternalfigure[demo-a][mill.png] [object=no, width=.2\textwidth]<br />
\useexternalfigure[demo-b][hacker-bw.jpg][object=no, width=.2\textwidth]<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-a]} {no color}<br />
{\externalfigure[demo-a][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-a][color=combicolor-b]} {spot color}<br />
{\externalfigure[demo-a][color=combicolor-y]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-b]} {no color}<br />
{\externalfigure[demo-b][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-b][color=combicolor-b]} {spot color}<br />
{\externalfigure[demo-b][color=combicolor-y]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-a]} {no color}<br />
{\externalfigure[demo-a][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-a][color=blue-100]} {spot color}<br />
{\externalfigure[demo-a][color=yellow-100]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
<br />
\startbaselinecorrection<br />
\startcombination[4*1]<br />
{\externalfigure[demo-b]} {no color}<br />
{\externalfigure[demo-b][color=combicolor]} {indexed duotone}<br />
{\externalfigure[demo-b][color=blue-100]} {spot color}<br />
{\externalfigure[demo-b][color=yellow-100]} {spot color}<br />
\stopcombination<br />
\stopbaselinecorrection<br />
\stopbuffer<br />
<br />
\getbuffer \typebuffer<br />
<br />
\stoptext<br />
</texcode></div>Adityam