Re: Colors support in PGF
- From: Jim Diamond <Jim.Diamond@xxxxxxxxxxxxxxxxx>
- Date: Thu, 18 Sep 2008 13:39:50 -0300
On 2008-09-13 at 12:36 ADT, Jack <jack@laposte> wrote:
Joseph Wright a écrit :
Jack wrote:
In fact support by pgf for colour using context is as weak as support
for colour in latex (or plain) : if you want colors in pgfpictures with
latex, you will use latex color command syntax. if you want colors in
pgfpictures with context, you will use context color command syntax.
In LaTeX, at least, I'm not sure "weak" is fair. The colour support
provided by xxcolor is pretty good (although it can't match PStricks).
It is just that it is LaTeX-specific.
I just wondered if there was pgf commands (independant commands from
format) to define colors, which can be used the same way with latex,
context and plain in pgf or tikz pictures.
If you look at the pgf code, you'll see that Till has done a very
careful job to keep everything working in plain, LaTeX and ConTeXt.
Basically, everything in the core is done in plain TeX and higher-level
stuff is all built into the package. To get format-specific colour
support, someone would have to do essentially the same with color,
xcolor and xxcolor. That looks like a long job, and I guess the
question is how worthwhile it is seen as being. There are not so many
people using all of plain, LaTeX and ConTeXt regularly, and even less
doing coloured stuff using pgf in all three.
Yes you're right but don't you think it would be possible just to create
a package (in fact three, one for each format) defining commands like
\pgfdefinecolor[rgb]{.,.,.} and this command would be interpreted as
\definecolor{colorname}{rgb}{.,.,.} in latex and plain and
\definecolor[colorname][r=.,g=.,b=.]
Regrettably, it isn't even that good for plain TeX users... the
implementation of colour in pgf for plain TeX users is minimal. I'm
not sure how difficult it would be to port xcolor to plain TeX, though.
Has anyone here contemplated doing that?
Jim
.
- References:
- Colors support in PGF
- From: Jack
- Re: Colors support in PGF
- From: Joseph Wright
- Re: Colors support in PGF
- From: Jack
- Re: Colors support in PGF
- From: Joseph Wright
- Re: Colors support in PGF
- From: Jack
- Colors support in PGF
- Prev by Date: Re: Expandable commands
- Next by Date: Re: comparing \uppercase'd filename extensions
- Previous by thread: Re: Colors support in PGF
- Next by thread: Beginner in ConTeXt
- Index(es):
Relevant Pages
|