it's a very annoying problem for me : i can't have pstricks and changebar
packages work together (latest version for both) with color option.
If i LaTeX :
----------------------------------------------------------------------------
---------------
\documentclass[11pt]{article}
\usepackage{pst-all}
\usepackage[color, DVIps]{changebar}
\begin{document}
\cbcolor{red}
\begin{changebar}
Word Word Word Word Word Word Word Word Word Word Word Word Word Word
Word Word Word Word Word Word Word Word Word Word Word Word Word
\end{changebar}
\end{document}
----------------------------------------------------------------------------
---------------
i get the following error :
! LaTeX Error: Option clash for package color.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.362 }
When pstricks was set to work with color.sty, i could hack changebar.sty,
changing lines 337 and 339 from :
L337 : \RequirePackage[dvipsnames]{color}%
L339 : \RequirePackage[pdftex,dvipsnames]{color}%
to
L337 : \RequirePackage[color}%
L339 : \RequirePackage[pdftex]{color}%
and i got no more clash error, but now pstricks is working with xcolor.sty,
the above hack leads to the following error :
! Argument of \c@lor@to@ps has an extra }.
<inserted text>
\par
l.35 \end{changebar}
The same occurs if i replace \usepackage{pst-all} with
\usepackage{xcolor}...
As i have no TeX skills to hack xcolor.sty, can somebody help me ?
Thanks.
> Hi,
>
> it's a very annoying problem for me : i can't have pstricks and changebar
> packages work together (latest version for both) with color option.
>
> If i LaTeX :
> ----------------------------------------------------------------------------
> ---------------
> \documentclass[11pt]{article}
>
> \usepackage{pst-all}
> \usepackage[color, DVIps]{changebar}
Just exchange the two lines.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
UKTUG FAQ: <URL:http://www.tex.ac.uk/cgi-bin/texfaq2html>
I did ! But doesn't work either !
Then put a
\usepackage[everything the other packages want combined]{color}
before loading the other package.
Update pstricks and xcolor. They have been
made compatible recently (about 2 months ago).
-Hendri.
> it's a very annoying problem for me : i can't have pstricks and changebar
> packages work together (latest version for both) with color option.
>
> If i LaTeX :
> ----------------------------------------------------------------------------
> ---------------
> \documentclass[11pt]{article}
>
> \usepackage{pst-all}
> \usepackage[color, DVIps]{changebar}
use
\usepackage[noxcolor]{pstricks}
\usepackage[color, DVIps]{changebar}
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
I have :
* changebar 2004/02/20 v3.4g Indicate changes with marginal bars
* pst-all 2004/05/06 the main pstricks tools
These are the latest versions, aren't they ?
Don't understand...
Anyway, the problems comes from xcolor.sty loaded by pstricks.
If i only put :
\usepackage{xcolor}
\usepackage[color, DVIps]{changebar}
i get the same error :
Just for fun, I tried this, but it doesn't work either.
I was mistaken previously and the subject of this
thread is misleading: the problem is not with xcolor
but with color which is loaded through changebar
and pstricks with different options leading to an
option clash.
-Hendri.
>>\usepackage[noxcolor]{pstricks}
>>\usepackage[color, DVIps]{changebar}
>
>
> Just for fun, I tried this, but it doesn't work either.
then you did something wrong. Did you used pstricks here
instead of pst-all??
\usepackage[noxcolor]{pstricks}
If someone wants to load pst-all, then he can do
\usepackage[noxcolor]{pstricks}
\usepackage{pst-all}
\usepackage[color]{changebar}
*File List*
article.cls 2001/04/21 v1.4e Standard LaTeX document class
size11.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
pstricks.sty 2004/05/06 v0.2k LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/29 v1.05 `PSTricks' (tvz)
color.sty 1999/02/16 v1.0i Standard LaTeX Color (DPC)
color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
changebar.sty 2001/09/04 v3.4d Indicate changes with marginal bars
***********
with the new pst-all.sty from
http://perce.de/LaTeX/pstricks/pst-all.sty
you can also use \usepackage[noxcolor]{pst-all}
Ok thanks, it's working fine for me, but are there any drawbacks disabling
xcolor with pstricks ?
The following:
\listfiles
\documentclass[11pt]{article}
\usepackage[noxcolor]{pstricks}
\usepackage[color,dvips]{changebar}
\begin{document}
\cbcolor{red}
\begin{changebar}
Word Word Word Word Word Word Word Word Word Word Word Word Word Word
Word Word Word Word Word Word Word Word Word Word Word Word Word
\end{changebar}
\end{document}
gives:
! LaTeX Error: Option clash for package color.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size11.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks.sty 2004/05/12 v0.2l LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2004/06/22 v1.04 `PSTricks' (tvz)
color.sty 1999/02/16 v1.0i Standard LaTeX Color (DPC)
color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
changebar.sty 2004/02/20 v3.4g Indicate changes with marginal bars
***********
not really when you use the syntax of the color.sty
package for defining colors. But I will have a closer look
what can be done to make it work with xcolor.
> MiKTeX total environment, installed yesterday...
okay I see,
> changebar.sty 2004/02/20 v3.4g Indicate changes with marginal bars
\usepackage[dvipsnames,noxcolor]{pstricks}
\usepackage{pst-all}
\usepackage[dvips,color]{changebar}
or with the new pst-all from my webpage
\usepackage[dvipsnames,noxcolor]{pst-all}
\usepackage[dvips,color]{changebar}
it should work.
Yep, that indeed works.
OK, I didn't really need it, but it might be
useful information for other MiKTeX users.
Thanks,
-Hendri.
I think, it's more imported that `changbar' and `xcolor' works together...
...Rolf
Jon
oh, sure ... :-)
here is a changebar.sty, which works also with xcolor
http://perce.de/LaTeX/misc/changebar.sty
now you can do:
\usepackage[dvipsnames,dvips]{pst-all}
\usepackage[xcolor,DVIps]{changebar}
please test
Is it supposed to work with the new pst-all
(http://perce.de/LaTeX/pstricks/pst-all.sty
) from your site ?
Because, using MikTeX and your new changebar, i get :
! LaTeX Error: Unknown option `dvipsnames' for package `pst-all'.