Thread: [MiKTeX] Compatibility between package "pstricks" and package "color"
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: John C. <jbc...@ya...> - 2008-07-25 05:15:49
|
Dear All, Recently I upgraded to MikTek 2.7 version, but have found that I now cannot use package "pstricks" and package "color" simultaneously. My LaTeX file is as follows: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[12pt]{article} \usepackage{epsfig} \usepackage{pstricks} \usepackage{color} \begin{document} \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE \bf Compatibility Issue}} \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE \bf pstricks \& color}} \begin{pspicture}[linewidth=1cm](4,4) \psline[linecolor=red](0,0)(4,4) \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) \end{pspicture} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Each time I get an error message when compiling. But I had no problems before I upgraded to MikTek 2.7. Your help is appreciated. John |
From: Alain D. <esp...@sw...> - 2008-07-25 07:17:19
|
Hi! try this: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[12pt]{article} \usepackage{epsfig} \usepackage[dvipsnames]{pstricks} \begin{document} \colorbox{GreenYellow}{\textcolor{BrickRed}{\LARGE \bf Compatibility Issue}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the extended names are defined by dvipsnames and (I think!) xcolor is loaded by pstricks. Regards Alain John Chan a écrit : > Dear All, > > Recently I upgraded to MikTek 2.7 version, but have found that I now cannot use package "pstricks" and package "color" simultaneously. My LaTeX file is as follows: > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > \documentclass[12pt]{article} > \usepackage{epsfig} > \usepackage{pstricks} > \usepackage{color} > > \begin{document} > > \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE \bf Compatibility Issue}} > > \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE \bf pstricks \& color}} > > \begin{pspicture}[linewidth=1cm](4,4) > \psline[linecolor=red](0,0)(4,4) > \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) > \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) > \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) > \end{pspicture} > > \end{document} > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > Each time I get an error message when compiling. But I had no problems before I upgraded to MikTek 2.7. > > Your help is appreciated. > > John > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > MiKTeX-Users mailing list > MiK...@li... > https://lists.sourceforge.net/lists/listinfo/miktex-users > > > |
From: John C. <jbc...@ya...> - 2008-07-28 02:15:03
|
Hi Alain, Thanks for your reply. When I use \usepackage[dvipsnames]{pstricks}, the color issue is resolved but some pstricks commands don't work. Now I use \usepackage{pstcol} \usepackage{pstricks-add} to replace \usepackage{pstricks} \usepackage{color} and it seems that the compatibility issue is resolved. But if I use \usepackage{pstricks-add} only (not together with \usepackage{pstcol}), then the problem remains. I don't why. Also, could you please explain more what function of dvipsnames it is. Thanks. Regards, John --- On Fri, 7/25/08, Alain Delmotte <esp...@sw...> wrote: > From: Alain Delmotte <esp...@sw...> > Subject: Re: [MiKTeX] Compatibility between package "pstricks" and package "color" > To: jbc...@ya..., "A place for MiKTeX users to discuss MiKTeX related questions." <mik...@li...> > Date: Friday, July 25, 2008, 1:17 AM > Hi! > > try this: > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > \documentclass[12pt]{article} > > \usepackage{epsfig} > \usepackage[dvipsnames]{pstricks} > > \begin{document} > > \colorbox{GreenYellow}{\textcolor{BrickRed}{\LARGE > \bf Compatibility Issue}} > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > the extended names are defined by dvipsnames and (I think!) > xcolor is > loaded by pstricks. > > Regards > > Alain > > John Chan a écrit : > > Dear All, > > > > Recently I upgraded to MikTek 2.7 version, but have > found that I now cannot use package "pstricks" > and package "color" simultaneously. My LaTeX file > is as follows: > > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > \documentclass[12pt]{article} > > \usepackage{epsfig} > > \usepackage{pstricks} > > \usepackage{color} > > > > \begin{document} > > > > > \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE > \bf Compatibility Issue}} > > > > > \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE > \bf pstricks \& color}} > > > > \begin{pspicture}[linewidth=1cm](4,4) > > \psline[linecolor=red](0,0)(4,4) > > > \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) > > > \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) > > > \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) > > \end{pspicture} > > > > \end{document} > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > > Each time I get an error message when compiling. But I > had no problems before I upgraded to MikTek 2.7. > > > > Your help is appreciated. > > > > John > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > > Build the coolest Linux based applications with Moblin > SDK & win great prizes > > Grand prize is a trip for two to an Open Source event > anywhere in the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > MiKTeX-Users mailing list > > MiK...@li... > > > https://lists.sourceforge.net/lists/listinfo/miktex-users > > > > > > |
From: Ulrike F. <li...@ni...> - 2008-07-28 07:50:51
|
am Montag, 28. Juli 2008 um 04:14 schrieb John Chan: > Hi Alain, > Thanks for your reply. When I use > \usepackage[dvipsnames]{pstricks}, the color issue is resolved but > some pstricks commands don't work. Now I use > \usepackage{pstcol} "Do not choose package pstcol.sty, it is rather out of date. pstricks.sty ( >= v. 1.04 ) does a better job, it also loads by default the extended color package xcolor.sty" see the main error list on http://tug.org/PSTricks/main.cgi/ -- Mit freundlichen Grüßen Ulrike Fischer mailto:li...@ni... |
From: Alain D. <esp...@sw...> - 2008-07-28 08:43:07
|
Hi John, John Chan a écrit : > Hi Alain, > > Thanks for your reply. When I use \usepackage[dvipsnames]{pstricks}, the color issue is resolved but some pstricks commands don't work. Now I use > > \usepackage{pstcol} > \usepackage{pstricks-add} > > to replace > > \usepackage{pstricks} > \usepackage{color} > > and it seems that the compatibility issue is resolved. But if I use \usepackage{pstricks-add} only (not together with \usepackage{pstcol}), then the problem remains. I don't why. > > Also, could you please explain more what function of dvipsnames it is. Thanks. > You are using more or less "non-standard" or extended colours' names which are not defined in color. At least, that's the way I understand it!! (I am not a PSTricks regular user.) Now about your new way, there is a remark about troubleshooting in pstricks-doc.pdf ================================= Compatibility problem between PSTricks and the ‘color’ and ‘graphicx’ LaTeX packages The ‘color’ LaTeX package (also usable in PLAIN TeX) is the way to use to define and manage colors in LaTeX and PLAIN TeX since the arrival of LaTeX2e in 1993. Nevertheless, it is not stricly compatible with the color macros defined in PSTricks, so, to be able to use the ‘color’ package, the ‘pstcol’ one, also written by David Carlisle, must be used in place of both ‘color’ and PSTricks (the core pstricks.sty / pstricks.tex file). Another pitfall is in the usage of the ‘graphicx’ LaTeX package (or the ‘graphics’ one), which, even if the ‘color’ package is not used, require that the ‘pstcol’ one has been loaded before. In one word: with LaTeX always use the ‘pstcol’ package. <======== =============================== Regards, Alain > Regards, > > John > > > > > --- On Fri, 7/25/08, Alain Delmotte <esp...@sw...> wrote: > > >> From: Alain Delmotte <esp...@sw...> >> Subject: Re: [MiKTeX] Compatibility between package "pstricks" and package "color" >> To: jbc...@ya..., "A place for MiKTeX users to discuss MiKTeX related questions." <mik...@li...> >> Date: Friday, July 25, 2008, 1:17 AM >> Hi! >> >> try this: >> >> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> >> \documentclass[12pt]{article} >> >> \usepackage{epsfig} >> \usepackage[dvipsnames]{pstricks} >> >> \begin{document} >> >> \colorbox{GreenYellow}{\textcolor{BrickRed}{\LARGE >> \bf Compatibility Issue}} >> >> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> >> the extended names are defined by dvipsnames and (I think!) >> xcolor is >> loaded by pstricks. >> >> Regards >> >> Alain >> >> John Chan a écrit : >> >>> Dear All, >>> >>> Recently I upgraded to MikTek 2.7 version, but have >>> >> found that I now cannot use package "pstricks" >> and package "color" simultaneously. My LaTeX file >> is as follows: >> >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >>> \documentclass[12pt]{article} >>> \usepackage{epsfig} >>> \usepackage{pstricks} >>> \usepackage{color} >>> >>> \begin{document} >>> >>> >>> >> \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE >> \bf Compatibility Issue}} >> >>> >> \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE >> \bf pstricks \& color}} >> >>> \begin{pspicture}[linewidth=1cm](4,4) >>> \psline[linecolor=red](0,0)(4,4) >>> >>> >> \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) >> >> \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) >> >> \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) >> >>> \end{pspicture} >>> >>> \end{document} >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >>> >>> Each time I get an error message when compiling. But I >>> >> had no problems before I upgraded to MikTek 2.7. >> >>> Your help is appreciated. >>> >>> John >>> >>> >>> >>> >>> >>> >> ------------------------------------------------------------------------- >> >>> This SF.Net email is sponsored by the Moblin Your Move >>> >> Developer's challenge >> >>> Build the coolest Linux based applications with Moblin >>> >> SDK & win great prizes >> >>> Grand prize is a trip for two to an Open Source event >>> >> anywhere in the world >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >>> _______________________________________________ >>> MiKTeX-Users mailing list >>> MiK...@li... >>> >>> >> https://lists.sourceforge.net/lists/listinfo/miktex-users >> >>> >>> > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > MiKTeX-Users mailing list > MiK...@li... > https://lists.sourceforge.net/lists/listinfo/miktex-users > > > |
From: Alan R. <al...@ri...> - 2008-07-28 10:25:45
|
> Hi Alain, > > Thanks for your reply. When I use > \usepackage[dvipsnames]{pstricks}, the color issue is > resolved but some pstricks commands don't work. Make sure both pstricks and xcolor are up to date. You should be able to ensure that by running the MiKTeX updater. Unfortunately I don't have LaTeX installed on the machine I am writing from, so I can't try your code and see your specific errors. I'll try to remember to have a look at it this evening. > Now I use > > \usepackage{pstcol} > \usepackage{pstricks-add} > > to replace > > \usepackage{pstricks} > \usepackage{color} If you want to use the color package with pstricks instead of xcolor (which pstricks loads automatically), try: \usepackage[noxcolor]{pstricks} \usepackage{color} The noxcolor option might actually cause pstricks to automatically load color instead -- I can't recall off the top of my head. Don't use pstcol, as it is woefully out of date (since pstricks 1.04 as I recall) and generally creates more problems than it solves with modern pstricks versions. > Also, could you please explain more what function of > dvipsnames it is. Thanks. dvipsnames simply activates a set of names that can be used as aliases for various colors (e.g., allowing you to type "red" or "GreenYellow" instead of an explicit RGB specification). Both color and xcolor define several such sets of named colors -- see the corresponding documentation for details on which colors are defined by which switches. Alan (not the same person as Alain ;-) > > > > --- On Fri, 7/25/08, Alain Delmotte <esp...@sw...> wrote: > > > From: Alain Delmotte <esp...@sw...> > > Subject: Re: [MiKTeX] Compatibility between package > "pstricks" and package "color" > > To: jbc...@ya..., "A place for MiKTeX users to > discuss MiKTeX related questions." > <mik...@li...> > > Date: Friday, July 25, 2008, 1:17 AM > > Hi! > > > > try this: > > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > > \documentclass[12pt]{article} > > > > \usepackage{epsfig} > > \usepackage[dvipsnames]{pstricks} > > > > \begin{document} > > > > \colorbox{GreenYellow}{\textcolor{BrickRed}{\LARGE > > \bf Compatibility Issue}} > > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > > the extended names are defined by dvipsnames and (I think!) > > xcolor is > > loaded by pstricks. > > > > Regards > > > > Alain > > > > John Chan a écrit : > > > Dear All, > > > > > > Recently I upgraded to MikTek 2.7 version, but have > > found that I now cannot use package "pstricks" > > and package "color" simultaneously. My LaTeX file > > is as follows: > > > > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > \documentclass[12pt]{article} > > > \usepackage{epsfig} > > > \usepackage{pstricks} > > > \usepackage{color} > > > > > > \begin{document} > > > > > > > > \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE > > \bf Compatibility Issue}} > > > > > > > > \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE > > \bf pstricks \& color}} > > > > > > \begin{pspicture}[linewidth=1cm](4,4) > > > \psline[linecolor=red](0,0)(4,4) > > > > > \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) > > > > > \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) > > > > > \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) > > > \end{pspicture} > > > > > > \end{document} > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > > > > Each time I get an error message when compiling. But I > > had no problems before I upgraded to MikTek 2.7. > > > > > > Your help is appreciated. > > > > > > John > > > > > > > > > > > > > > > > > > -------------------------------------------------------------- > ----------- > > > This SF.Net email is sponsored by the Moblin Your Move > > Developer's challenge > > > Build the coolest Linux based applications with Moblin > > SDK & win great prizes > > > Grand prize is a trip for two to an Open Source event > > anywhere in the world > > > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > MiKTeX-Users mailing list > > > MiK...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/miktex-users > > > > > > > > > > > > > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK & > win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > MiKTeX-Users mailing list > MiK...@li... > https://lists.sourceforge.net/lists/listinfo/miktex-users > |
From: Alan R. <al...@ri...> - 2008-07-28 19:24:19
|
Sure enough, when I run your example with the changes I suggested it is error-free (and \usepackage{color} is unnecessary). What I did is below, followed by the file list. Alan %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[12pt]{article} \usepackage{epsfig} \usepackage[noxcolor]{pstricks} \listfiles \begin{document} \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE \bf Compatibility Issue}} \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE \bf pstricks \& color}} \begin{pspicture}[linewidth=1cm](4,4) \psline[linecolor=red](0,0)(4,4) \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) \end{pspicture} \end{document} %%%%%%%%%%%%%%%%%%%%%% *File List* article.cls 2005/09/16 v1.4f Standard LaTeX document class size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option) epsfig.sty 1999/02/16 v1.7a (e)psfig emulation (SPQR) graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) keyval.sty 1999/03/16 v1.13 key=value parser (DPC) graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR) trig.sty 1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR) pstricks.sty 2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV) pstricks.tex 2008/06/26 v1.25 `PSTricks' (tvz) color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC) color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR) *********** On Mon, July 28, 2008 12:29 pm, Alan Ristow wrote: >> Hi Alain, >> >> Thanks for your reply. When I use >> \usepackage[dvipsnames]{pstricks}, the color issue is >> resolved but some pstricks commands don't work. > > Make sure both pstricks and xcolor are up to date. You should be able to > ensure that by running the MiKTeX updater. Unfortunately I don't have > LaTeX > installed on the machine I am writing from, so I can't try your code and > see > your specific errors. I'll try to remember to have a look at it this > evening. > >> Now I use >> >> \usepackage{pstcol} >> \usepackage{pstricks-add} >> >> to replace >> >> \usepackage{pstricks} >> \usepackage{color} > > If you want to use the color package with pstricks instead of xcolor > (which > pstricks loads automatically), try: > > \usepackage[noxcolor]{pstricks} > \usepackage{color} > > The noxcolor option might actually cause pstricks to automatically load > color instead -- I can't recall off the top of my head. Don't use pstcol, > as > it is woefully out of date (since pstricks 1.04 as I recall) and generally > creates more problems than it solves with modern pstricks versions. > >> Also, could you please explain more what function of >> dvipsnames it is. Thanks. > > dvipsnames simply activates a set of names that can be used as aliases for > various colors (e.g., allowing you to type "red" or "GreenYellow" instead > of > an explicit RGB specification). Both color and xcolor define several such > sets of named colors -- see the corresponding documentation for details on > which colors are defined by which switches. > > Alan > (not the same person as Alain ;-) > > >> >> >> >> --- On Fri, 7/25/08, Alain Delmotte <esp...@sw...> wrote: >> >> > From: Alain Delmotte <esp...@sw...> >> > Subject: Re: [MiKTeX] Compatibility between package >> "pstricks" and package "color" >> > To: jbc...@ya..., "A place for MiKTeX users to >> discuss MiKTeX related questions." >> <mik...@li...> >> > Date: Friday, July 25, 2008, 1:17 AM >> > Hi! >> > >> > try this: >> > >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> > >> > \documentclass[12pt]{article} >> > >> > \usepackage{epsfig} >> > \usepackage[dvipsnames]{pstricks} >> > >> > \begin{document} >> > >> > \colorbox{GreenYellow}{\textcolor{BrickRed}{\LARGE >> > \bf Compatibility Issue}} >> > >> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> > >> > the extended names are defined by dvipsnames and (I think!) >> > xcolor is >> > loaded by pstricks. >> > >> > Regards >> > >> > Alain >> > >> > John Chan a écrit : >> > > Dear All, >> > > >> > > Recently I upgraded to MikTek 2.7 version, but have >> > found that I now cannot use package "pstricks" >> > and package "color" simultaneously. My LaTeX file >> > is as follows: >> > > >> > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> > > \documentclass[12pt]{article} >> > > \usepackage{epsfig} >> > > \usepackage{pstricks} >> > > \usepackage{color} >> > > >> > > \begin{document} >> > > >> > > >> > \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE >> > \bf Compatibility Issue}} >> > > >> > > >> > \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE >> > \bf pstricks \& color}} >> > > >> > > \begin{pspicture}[linewidth=1cm](4,4) >> > > \psline[linecolor=red](0,0)(4,4) >> > > >> > \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) >> > > >> > \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) >> > > >> > \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) >> > > \end{pspicture} >> > > >> > > \end{document} >> > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >> > > >> > > Each time I get an error message when compiling. But I >> > had no problems before I upgraded to MikTek 2.7. >> > > >> > > Your help is appreciated. >> > > >> > > John >> > > >> > > >> > > >> > > >> > > >> > >> -------------------------------------------------------------- >> ----------- >> > > This SF.Net email is sponsored by the Moblin Your Move >> > Developer's challenge >> > > Build the coolest Linux based applications with Moblin >> > SDK & win great prizes >> > > Grand prize is a trip for two to an Open Source event >> > anywhere in the world >> > > >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > > _______________________________________________ >> > > MiKTeX-Users mailing list >> > > MiK...@li... >> > > >> > https://lists.sourceforge.net/lists/listinfo/miktex-users >> > > >> > > >> > > >> >> >> >> >> -------------------------------------------------------------- >> ----------- >> This SF.Net email is sponsored by the Moblin Your Move >> Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & >> win great prizes >> Grand prize is a trip for two to an Open Source event >> anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> MiKTeX-Users mailing list >> MiK...@li... >> https://lists.sourceforge.net/lists/listinfo/miktex-users >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > MiKTeX-Users mailing list > MiK...@li... > https://lists.sourceforge.net/lists/listinfo/miktex-users > |
From: John C. <jbc...@ya...> - 2008-07-29 10:52:44
|
Thank you so much, Alan! --- On Mon, 7/28/08, Alan Ristow <al...@ri...> wrote: > From: Alan Ristow <al...@ri...> > Subject: Re: [MiKTeX] Compatibility between package "pstricks" and package"color" > To: "A place for MiKTeX users to discuss MiKTeX related questions." <mik...@li...> > Date: Monday, July 28, 2008, 1:24 PM > Sure enough, when I run your example with the changes I > suggested it is > error-free (and \usepackage{color} is unnecessary). > What I did is below, > followed by the file list. > > Alan > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > \documentclass[12pt]{article} > \usepackage{epsfig} > \usepackage[noxcolor]{pstricks} > > \listfiles > > \begin{document} > > \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE > \bf Compatibility Issue}} > \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE > \bf pstricks \& color}} > > \begin{pspicture}[linewidth=1cm](4,4) > \psline[linecolor=red](0,0)(4,4) > \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) > > \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) > > \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) > \end{pspicture} > \end{document} > %%%%%%%%%%%%%%%%%%%%%% > > > *File List* > article.cls 2005/09/16 v1.4f Standard LaTeX document > class > size12.clo 2005/09/16 v1.4f Standard LaTeX file (size > option) > epsfig.sty 1999/02/16 v1.7a (e)psfig emulation (SPQR) > graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics > (DPC,SPQR) > keyval.sty 1999/03/16 v1.13 key=value parser (DPC) > graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics > (DPC,SPQR) > trig.sty 1999/03/16 v1.09 sin cos tan (DPC) > graphics.cfg 2007/01/18 v1.5 graphics configuration of > teTeX/TeXLive > dvips.def 1999/02/16 v3.0i Driver-dependant file > (DPC,SPQR) > pstricks.sty 2008/01/24 v0.37 LaTeX wrapper for > `PSTricks' (RN,HV) > pstricks.tex 2008/06/26 v1.25 `PSTricks' (tvz) > color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC) > color.cfg 2007/01/18 v1.5 color configuration of > teTeX/TeXLive > dvipsnam.def 1999/02/16 v3.0i Driver-dependant file > (DPC,SPQR) > *********** > > > > > > On Mon, July 28, 2008 12:29 pm, Alan Ristow wrote: > >> Hi Alain, > >> > >> Thanks for your reply. When I use > >> \usepackage[dvipsnames]{pstricks}, the color > issue is > >> resolved but some pstricks commands don't > work. > > > > Make sure both pstricks and xcolor are up to date. You > should be able to > > ensure that by running the MiKTeX updater. > Unfortunately I don't have > > LaTeX > > installed on the machine I am writing from, so I > can't try your code and > > see > > your specific errors. I'll try to remember to have > a look at it this > > evening. > > > >> Now I use > >> > >> \usepackage{pstcol} > >> \usepackage{pstricks-add} > >> > >> to replace > >> > >> \usepackage{pstricks} > >> \usepackage{color} > > > > If you want to use the color package with pstricks > instead of xcolor > > (which > > pstricks loads automatically), try: > > > > \usepackage[noxcolor]{pstricks} > > \usepackage{color} > > > > The noxcolor option might actually cause pstricks to > automatically load > > color instead -- I can't recall off the top of my > head. Don't use pstcol, > > as > > it is woefully out of date (since pstricks 1.04 as I > recall) and generally > > creates more problems than it solves with modern > pstricks versions. > > > >> Also, could you please explain more what function > of > >> dvipsnames it is. Thanks. > > > > dvipsnames simply activates a set of names that can be > used as aliases for > > various colors (e.g., allowing you to type > "red" or "GreenYellow" instead > > of > > an explicit RGB specification). Both color and xcolor > define several such > > sets of named colors -- see the corresponding > documentation for details on > > which colors are defined by which switches. > > > > Alan > > (not the same person as Alain ;-) > > > > > >> > >> > >> > >> --- On Fri, 7/25/08, Alain Delmotte > <esp...@sw...> wrote: > >> > >> > From: Alain Delmotte > <esp...@sw...> > >> > Subject: Re: [MiKTeX] Compatibility between > package > >> "pstricks" and package "color" > >> > To: jbc...@ya..., "A place for > MiKTeX users to > >> discuss MiKTeX related questions." > >> <mik...@li...> > >> > Date: Friday, July 25, 2008, 1:17 AM > >> > Hi! > >> > > >> > try this: > >> > > >> > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > >> > > >> > \documentclass[12pt]{article} > >> > > >> > \usepackage{epsfig} > >> > \usepackage[dvipsnames]{pstricks} > >> > > >> > \begin{document} > >> > > >> > > \colorbox{GreenYellow}{\textcolor{BrickRed}{\LARGE > >> > \bf Compatibility Issue}} > >> > > >> > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > >> > > >> > the extended names are defined by dvipsnames > and (I think!) > >> > xcolor is > >> > loaded by pstricks. > >> > > >> > Regards > >> > > >> > Alain > >> > > >> > John Chan a écrit : > >> > > Dear All, > >> > > > >> > > Recently I upgraded to MikTek 2.7 > version, but have > >> > found that I now cannot use package > "pstricks" > >> > and package "color" simultaneously. > My LaTeX file > >> > is as follows: > >> > > > >> > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > >> > > \documentclass[12pt]{article} > >> > > \usepackage{epsfig} > >> > > \usepackage{pstricks} > >> > > \usepackage{color} > >> > > > >> > > \begin{document} > >> > > > >> > > > >> > > \colorbox[named]{GreenYellow}{\textcolor[named]{BrickRed}{\LARGE > >> > \bf Compatibility Issue}} > >> > > > >> > > > >> > > \colorbox[named]{GreenYellow}{\textcolor[named]{MidnightBlue}{\LARGE > >> > \bf pstricks \& color}} > >> > > > >> > > > \begin{pspicture}[linewidth=1cm](4,4) > >> > > \psline[linecolor=red](0,0)(4,4) > >> > > > >> > > \psline[linecolor=blue,strokeopacity=0.5](0,4)(4,0) > >> > > > >> > > \psline[linecolor=green,strokeopacity=0.5](0,3.5)(4,3.5) > >> > > > >> > > \psline[linecolor=yellow,strokeopacity=0.5](0,0.5)(4,0.5) > >> > > \end{pspicture} > >> > > > >> > > \end{document} > >> > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > >> > > > >> > > Each time I get an error message when > compiling. But I > >> > had no problems before I upgraded to MikTek > 2.7. > >> > > > >> > > Your help is appreciated. > >> > > > >> > > John > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > >> > -------------------------------------------------------------- > >> ----------- > >> > > This SF.Net email is sponsored by the > Moblin Your Move > >> > Developer's challenge > >> > > Build the coolest Linux based > applications with Moblin > >> > SDK & win great prizes > >> > > Grand prize is a trip for two to an Open > Source event > >> > anywhere in the world > >> > > > >> > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> > > > _______________________________________________ > >> > > MiKTeX-Users mailing list > >> > > MiK...@li... > >> > > > >> > > https://lists.sourceforge.net/lists/listinfo/miktex-users > >> > > > >> > > > >> > > > >> > >> > >> > >> > >> > -------------------------------------------------------------- > >> ----------- > >> This SF.Net email is sponsored by the Moblin Your > Move > >> Developer's challenge > >> Build the coolest Linux based applications with > Moblin SDK & > >> win great prizes > >> Grand prize is a trip for two to an Open Source > event > >> anywhere in the world > >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> _______________________________________________ > >> MiKTeX-Users mailing list > >> MiK...@li... > >> > https://lists.sourceforge.net/lists/listinfo/miktex-users > >> > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move > Developer's > > challenge > > Build the coolest Linux based applications with Moblin > SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event > anywhere in the > > world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > MiKTeX-Users mailing list > > MiK...@li... > > > https://lists.sourceforge.net/lists/listinfo/miktex-users > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK > & win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > MiKTeX-Users mailing list > MiK...@li... > https://lists.sourceforge.net/lists/listinfo/miktex-users |