Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pantone colors in Ps-Tricks

76 views
Skip to first unread message

MadYuv

unread,
Apr 20, 2011, 9:10:44 AM4/20/11
to
Hi All,

In my document, I need a Pantone color in some boxes. I used the below
commands to obtain my requirement. I got the exact output in all the
places except in the gradient. For gradient, automatically color
changed to CMYK equivalent, but I need that also in Pantone. I used
"dvips" to convert .dvi to PS and Adobe Distiller to convert PS to
PDF. Kindly suggest is there any way to meet my requirement?

My commands are below:
*********************************
% Using spot colors with xcolor and pstricks.
% process with:
% $ latex xcpst
% $ dvips -h tex.pro -h xcolor.pro -h spot.pro filename.dvi
\begin{filecontents*}{PANTONE2925C.pro}
% spot.pro
TeXDict begin
/SpotsCMYK [0.85 0.24 0 0] def
/Pantone2925CSpot (Pantone2925C) def
/Pantone2925CDef SpotsCMYK aload pop Pantone2925CSpot
findcmykcustomcolor def
/XC@Pantone2925C{ Pantone2925CDef 1.0 setcustomcolor}XCdef
/XC@Pantone2925C100{ Pantone2925CDef 1.0 setcustomcolor}XCdef
/XC@Pantone2925C80{ Pantone2925CDef 0.8 setcustomcolor}XCdef
/XC@Pantone2925C60{ Pantone2925CDef 0.6 setcustomcolor}XCdef
/XC@Pantone2925C40{ Pantone2925CDef 0.4 setcustomcolor}XCdef
/XC@Pantone2925C20{ Pantone2925CDef 0.2 setcustomcolor}XCdef
/XC@Pantone2925C0{ Pantone2925CDef 0 setcustomcolor}XCdef

/XC@Pantone2925C9{ Pantone2925CDef 0.09 setcustomcolor}XCdef
/XC@Pantone2925C10{ Pantone2925CDef 0.10 setcustomcolor}XCdef
/XC@Pantone2925C12{ Pantone2925CDef 0.12 setcustomcolor}XCdef
/XC@Pantone2925C15{ Pantone2925CDef 0.15 setcustomcolor}XCdef
/XC@Pantone2925C30{ Pantone2925CDef 0.30 setcustomcolor}XCdef
/XC@Pantone2925C18{ Pantone2925CDef 0.18 setcustomcolor}XCdef
/XC@Pantone2925C50{ Pantone2925CDef 0.50 setcustomcolor}XCdef
/XC@Pantone2925C8{ Pantone2925CDef 0.08 setcustomcolor}XCdef
end
\end{filecontents*}

\documentclass{book}
\usepackage[prologue]{xcolor}%
\RequirePackage[dvips]{pstcol}%
\RequirePackage{pst-plot}%
\RequirePackage{pstricks,pst-xkey}%
\input pst-grad%
\input colordvi%%

\definecolor{Pantone2925C}{cmyk}{1 0 0 0}
\colorlet{Pantone2925C100}{Pantone2925C}
\colorlet{Pantone2925C80}{Pantone2925C!10}
\colorlet{Pantone2925C60}{Pantone2925C!60}
\colorlet{Pantone2925C40}{Pantone2925C!40}
\colorlet{Pantone2925C20}{Pantone2925C!20}
\colorlet{Pantone2925C10}{Pantone2925C!10}%%10 percent

\begin{document}

\colorbox{Pantone2925C}{\vbox to 5pc{\hbox to 10pc{\hfill}\vfill}}

\vspace{2pc}

\colorbox{Pantone2925C80}{\vbox to 5pc{\hbox to 10pc{\hfill}\vfill}}

\vspace{2pc}

\psframebox[linewidth=0pt,linecolor=white,fillstyle=solid,fillcolor=Pantone2925C80]
{\vbox
to 5pc{\vfill\hbox to 5pc{\hfill}\vfill}}

\newpage

\psframebox[linewidth=0pt,linecolor=white,fillstyle=gradient,gradbegin=Pantone2925C,gradend=white,gradmidpoint=-.
90,framearc=0]{\hbox to 192mm{\vbox to 250mm{}}}

\end{document}

and my dvips command is:
dvips -h tex.pro -h xcolor.pro -h Pantone2925C.pro filename.dvi

Kindly advise.

Best Regards,
Saravanan,M.

Herbert Voss

unread,
Apr 20, 2011, 2:01:26 PM4/20/11
to
Am 20.04.2011 15:10, schrieb MadYuv:

> \psframebox[linewidth=0pt,linecolor=white,fillstyle=gradient,gradbegin=Pantone2925C,gradend=white,gradmidpoint=-.
> 90,framearc=0]{\hbox to 192mm{\vbox to 250mm{}}}

use

\psframebox[linewidth=0pt,linecolor=white,fillstyle=gradient,
cmyk,
gradbegin=Pantone2925C,gradend=white,
gradmidpoint=-.90,framearc=0]%


{\hbox to 192mm{\vbox to 250mm{}}}


you can use a simple dvips without options when writing the
PostScript preamble inside PSTricks:


% Using spot colors with xcolor and pstricks.
% process with:
% $ latex xcpst

% $ dvips filename.dvi

\usepackage{pstricks,pst-grad}
\definecolor{Pantone2925C}{cmyk}{1,0,0,0}


\colorlet{Pantone2925C100}{Pantone2925C}
\colorlet{Pantone2925C80}{Pantone2925C!10}
\colorlet{Pantone2925C60}{Pantone2925C!60}
\colorlet{Pantone2925C40}{Pantone2925C!40}
\colorlet{Pantone2925C20}{Pantone2925C!20}
\colorlet{Pantone2925C10}{Pantone2925C!10}%%10 percent

%\psset{cmyk,gradbegin=Pantone2925C,gradend=Pantone2925C10}
\psset{gradbegin=Pantone2925C,gradend=Pantone2925C10}% #26c2ff
\begin{document}

\pstheader{PANTONE2925C.pro}%%%%%%%%%%%%%%%
\colorbox{Pantone2925C}{\vbox to 5pc{\hbox to 6pc{\hfill}\vfill}}
%
\vspace{2pc}

\colorbox{Pantone2925C80}{\vbox to 5pc{\hbox to 6pc{\hfill}\vfill}}

\vspace{2pc}

\psframebox[linewidth=0pt,linecolor=white,fillstyle=solid,fillcolor=Pantone2925C80]
{\vbox
to 5pc{\vfill\hbox to 5pc{\hfill}\vfill}}

\newpage
\psframebox[linewidth=0pt,linecolor=white,
fillstyle=gradient,
gradbegin=Pantone2925C,gradend=Pantone2925C10,
cmyk,
gradmidpoint=.10,
framearc=0]{\hbox to 6pc{\vbox to 150mm{}}}

\end{document}


Herbert

MadYuv

unread,
Apr 21, 2011, 6:19:50 AM4/21/11
to
On Apr 20, 11:01 pm, Herbert Voss <Herbert.V...@fu-berlin.de.be>
wrote:

Dear Sir,

Many thanks for all your supports and help. Your valuable suggestion
is working fine. I am having a small concern in this. If we view the
file in Adobe PDF and the "OutPut Preview" still shows CMYK
combination only not the name "Pantone2925C". I can able to change the
name by using PitStop Professional, but just I want to know whether it
can be fixed or not, but the name was correctly shown normal color
boxes, in gradient only it shows like that.

Many thanks to you again.
Saravanan,M.

Herbert Voss

unread,
Apr 21, 2011, 7:05:06 AM4/21/11
to
Am 21.04.2011 12:19, schrieb MadYuv:

> is working fine. I am having a small concern in this. If we view the
> file in Adobe PDF and the "OutPut Preview" still shows CMYK
> combination only not the name "Pantone2925C". I can able to change the
> name by using PitStop Professional, but just I want to know whether it
> can be fixed or not, but the name was correctly shown normal color
> boxes, in gradient only it shows like that.

the current version of pst-grad supports only
rgb or cmyk. A newer one will have support vor Pantone.
But I don't know when this will be finished ...

Herbert

MadYuv

unread,
Apr 25, 2011, 9:35:38 AM4/25/11
to

Dear Sir,

Many thanks for your reply. I am eagerly waiting for the next version
of pst-grad with Pantone facility. Thanks a lot once again.

Best Regards,
Saravanan,M.

0 new messages