ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* multitone color problem
@ 2012-04-24 16:03 Peter Rolf
  2012-05-07  8:05 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2012-04-24 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

Hi,

just playing around with spot colors and run into this problem.
tested with 23.04.2012 and ??.11.2011, same result. the color definition
leads to an invalid pdf.


% multitone.tex----
\nopdfcompression
\setuppagenumber[state=stop]
\definemultitonecolor[combicolor] [blue=.12,yellow=.28]
[c=.1,m=.1,y=.3,k=.1]

\starttext
\null
\stoptext
%------------------

I also attached the original example (spot.tex).


Best wishes,  Peter

[-- Attachment #2: spot.tex --]
[-- Type: text/x-tex, Size: 2260 bytes --]

% interface=en output=pdftex
% Time-stamp: <Mittwoch, 16 November 2005 18:00:56; spot.tex>
%
\setuplayout[header=0pt,footer=0pt,width=middle,height=middle,backspace=1cm,topspace=1cm]
\setupcolors[state=start]


\startbuffer
\definecolor [blue]   [c=1,m=.38,y=0,k=.64]
\definecolor [yellow] [c=0,m=.28,y=1,k=.06]

\definecolor [blue-100]   [blue]   [p=1]
\definecolor [yellow-100] [yellow] [p=1]

\definemultitonecolor [combicolor]   [blue=.12,yellow=.28] [c=.1,m=.1,y=.3,k=.1]

\definemultitonecolor [combicolor-b] [blue=1]   [c=1,m=.38,y=0,k=.64] % force multitone
\definemultitonecolor [combicolor-y] [yellow=1] [c=0,m=.28,y=1,k=.06] % force multitone

\useexternalfigure[demo-a][mill.png]     [object=no,width=.2\textwidth]
\useexternalfigure[demo-b][hacker-bw.png][object=no,width=.2\textwidth]

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-a]}                     {no color}
 {\externalfigure[demo-a][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-a][color=combicolor-b]} {spot color}
 {\externalfigure[demo-a][color=combicolor-y]} {spot color}
\stopcombination
\stopbaselinecorrection

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-b]}                     {no color}
 {\externalfigure[demo-b][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-b][color=combicolor-b]} {spot color}
 {\externalfigure[demo-b][color=combicolor-y]} {spot color}
\stopcombination
\stopbaselinecorrection

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-a]}                     {no color}
 {\externalfigure[demo-a][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-a][color=blue-100]}     {spot color}
 {\externalfigure[demo-a][color=yellow-100]}   {spot color}
\stopcombination
\stopbaselinecorrection

\startbaselinecorrection
\startcombination[4*1]
 {\externalfigure[demo-b]}                     {no color}
 {\externalfigure[demo-b][color=combicolor]}   {indexed duotone}
 {\externalfigure[demo-b][color=blue-100]}     {spot color}
 {\externalfigure[demo-b][color=yellow-100]}   {spot color}
\stopcombination
\stopbaselinecorrection
\stopbuffer

\starttext

\getbuffer \typebuffer

\stoptext



%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:

[-- Attachment #3: multitone.7z --]
[-- Type: application/octet-stream, Size: 3900 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 4+ messages in thread

* Re: multitone color problem
  2012-04-24 16:03 multitone color problem Peter Rolf
@ 2012-05-07  8:05 ` Hans Hagen
  2012-05-07 10:39   ` Peter Rolf
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2012-05-07  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 24-4-2012 18:03, Peter Rolf wrote:
> Hi,
>
> just playing around with spot colors and run into this problem.
> tested with 23.04.2012 and ??.11.2011, same result. the color definition
> leads to an invalid pdf.
>
>
> % multitone.tex----
> \nopdfcompression
> \setuppagenumber[state=stop]
> \definemultitonecolor[combicolor] [blue=.12,yellow=.28]
> [c=.1,m=.1,y=.3,k=.1]
>
> \starttext
> \null
> \stoptext
> %------------------
>
> I also attached the original example (spot.tex).

You need to define the colorants as spot color first. It happens that 
yellow is an official built in colorant but blue isn't.

\nopdfcompression

\definecolor         [xcyan]   [c=1]
\definecolor         [xmagenta][m=1]
\definecolor         [xyellow] [y=1]

\definespotcolor     [scyan]   [xcyan]   [p=1]
\definespotcolor     [smagenta][xmagenta][p=1]
\definespotcolor     [syellow] [xyellow] [p=1]

\definemultitonecolor[scombi] 
[xcyan=.2,xmagenta=.4,xyellow=.6][c=.2,m=.4,y=.6]

\startTEXpage
     \hbox \bgroup
         \blackrule[color=scyan,   width=1cm,height=1cm,depth=0cm]%
         \blackrule[color=smagenta,width=1cm,height=1cm,depth=0cm]%
         \blackrule[color=syellow, width=1cm,height=1cm,depth=0cm]%
         \blackrule[color=scombi,  width=1cm,height=1cm,depth=0cm]%
     \egroup
\stopTEXpage


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

* Re: multitone color problem
  2012-05-07  8:05 ` Hans Hagen
@ 2012-05-07 10:39   ` Peter Rolf
  2012-05-07 10:58     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2012-05-07 10:39 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Am 07.05.2012 10:05, schrieb Hans Hagen:
> On 24-4-2012 18:03, Peter Rolf wrote:
>> Hi,
>>
>> just playing around with spot colors and run into this problem.
>> tested with 23.04.2012 and ??.11.2011, same result. the color definition
>> leads to an invalid pdf.
>>
>>
>> % multitone.tex----
>> \nopdfcompression
>> \setuppagenumber[state=stop]
>> \definemultitonecolor[combicolor] [blue=.12,yellow=.28]
>> [c=.1,m=.1,y=.3,k=.1]
>>
>> \starttext
>> \null
>> \stoptext
>> %------------------
>>
>> I also attached the original example (spot.tex).
> 
> You need to define the colorants as spot color first. It happens that
> yellow is an official built in colorant but blue isn't.
> 
> \nopdfcompression
> 
> \definecolor         [xcyan]   [c=1]
> \definecolor         [xmagenta][m=1]
> \definecolor         [xyellow] [y=1]
> 
> \definespotcolor     [scyan]   [xcyan]   [p=1]
> \definespotcolor     [smagenta][xmagenta][p=1]
> \definespotcolor     [syellow] [xyellow] [p=1]
> 
> \definemultitonecolor[scombi]
> [xcyan=.2,xmagenta=.4,xyellow=.6][c=.2,m=.4,y=.6]
> 
> \startTEXpage
>     \hbox \bgroup
>         \blackrule[color=scyan,   width=1cm,height=1cm,depth=0cm]%
>         \blackrule[color=smagenta,width=1cm,height=1cm,depth=0cm]%
>         \blackrule[color=syellow, width=1cm,height=1cm,depth=0cm]%
>         \blackrule[color=scombi,  width=1cm,height=1cm,depth=0cm]%
>     \egroup
> \stopTEXpage
> 
> 

OK. I simply used the multitone example (spot.tex) from the Wiki.

http://wiki.contextgarden.net/Colors#Multitones

I have updated the outdated example (12/2004), but I can't tell much
about spot or multitone colors (never used them).

@all: feel free to add some sentences


Peter
___________________________________________________________________________________
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] 4+ messages in thread

* Re: multitone color problem
  2012-05-07 10:39   ` Peter Rolf
@ 2012-05-07 10:58     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2012-05-07 10:58 UTC (permalink / raw)
  To: Peter Rolf; +Cc: mailing list for ConTeXt users

On 7-5-2012 12:39, Peter Rolf wrote:

> OK. I simply used the multitone example (spot.tex) from the Wiki.

I've added a catch and issue a warning when something is wrong.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2012-05-07 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-24 16:03 multitone color problem Peter Rolf
2012-05-07  8:05 ` Hans Hagen
2012-05-07 10:39   ` Peter Rolf
2012-05-07 10:58     ` Hans Hagen

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