Re: [MiKTeX] Compatibility between package "pstricks" and package"color"
MiKTeX source code moved to GitHub
Brought to you by:
csc
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 > |