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

No compatibility between Pstricks/xcolor and changebar

105 views
Skip to first unread message

Spirou

unread,
Aug 25, 2004, 7:15:19 AM8/25/04
to
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}

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

David Kastrup

unread,
Aug 25, 2004, 7:17:23 AM8/25/04
to
"Spirou" <rgs.pasd...@free.fr> writes:

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

Spirou

unread,
Aug 25, 2004, 7:19:27 AM8/25/04
to
David Kastrup wrote:
>>
>> \usepackage{pst-all}
>> \usepackage[color, DVIps]{changebar}
>
> Just exchange the two lines.

I did ! But doesn't work either !


David Kastrup

unread,
Aug 25, 2004, 7:24:07 AM8/25/04
to
"Spirou" <rgs.pasd...@free.fr> writes:

Then put a
\usepackage[everything the other packages want combined]{color}
before loading the other package.

Hendri Adriaens

unread,
Aug 25, 2004, 7:23:26 AM8/25/04
to
> I did ! But doesn't work either !

Update pstricks and xcolor. They have been
made compatible recently (about 2 months ago).

-Hendri.


Herbert Voss

unread,
Aug 25, 2004, 7:37:21 AM8/25/04
to
Spirou wrote:

> 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

Spirou

unread,
Aug 25, 2004, 7:44:10 AM8/25/04
to

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 ?


Spirou

unread,
Aug 25, 2004, 7:54:39 AM8/25/04
to
David Kastrup wrote:
>
> Then put a
> \usepackage[everything the other packages want combined]{color}
> before loading the other package.

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 :

Hendri Adriaens

unread,
Aug 25, 2004, 7:50:49 AM8/25/04
to
> \usepackage[noxcolor]{pstricks}
> \usepackage[color, DVIps]{changebar}

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.


Herbert Voss

unread,
Aug 25, 2004, 8:09:37 AM8/25/04
to
Hendri Adriaens wrote:

>>\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
***********

Herbert Voss

unread,
Aug 25, 2004, 8:35:01 AM8/25/04
to
Herbert Voss wrote:
> Spirou wrote:
>
>> 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}

with the new pst-all.sty from
http://perce.de/LaTeX/pstricks/pst-all.sty

you can also use \usepackage[noxcolor]{pst-all}

Spirou

unread,
Aug 25, 2004, 8:33:59 AM8/25/04
to
Herbert Voss wrote:
>
> use
>
> \usepackage[noxcolor]{pstricks}
> \usepackage[color, DVIps]{changebar}
>
>

Ok thanks, it's working fine for me, but are there any drawbacks disabling
xcolor with pstricks ?

Hendri Adriaens

unread,
Aug 25, 2004, 8:31:24 AM8/25/04
to
MiKTeX total environment, installed yesterday...

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
***********

Herbert Voss

unread,
Aug 25, 2004, 8:50:10 AM8/25/04
to

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.

Herbert Voss

unread,
Aug 25, 2004, 9:05:55 AM8/25/04
to
Hendri Adriaens wrote:

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

Hendri Adriaens

unread,
Aug 25, 2004, 9:28:11 AM8/25/04
to
> or with the new pst-all from my webpage

Yep, that indeed works.

OK, I didn't really need it, but it might be
useful information for other MiKTeX users.

Thanks,
-Hendri.


Rolf Niepraschk

unread,
Aug 25, 2004, 9:39:50 AM8/25/04
to
Herbert Voss wrote:
>
>
> 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.
>

I think, it's more imported that `changbar' and `xcolor' works together...

...Rolf

Jon A. Solworth

unread,
Aug 25, 2004, 11:45:26 AM8/25/04
to
I don't have anything to say about pstricks/xcolor and changebar, but
if you are trying to track changes to documents
changebar is a lot of work. A much easier solution is to use
latexdiff which compares two documents and highlights in color
word additions/deletions.

Jon

Herbert Voss

unread,
Aug 25, 2004, 2:35:10 PM8/25/04
to
Rolf Niepraschk wrote:

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

Spirou

unread,
Aug 25, 2004, 5:18:20 PM8/25/04
to
Herbert Voss wrote:
>
> 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
>
> Herbert

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


0 new messages