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

Using Colors in Plain TeX

360 views
Skip to first unread message

dave

unread,
May 29, 2002, 2:55:11 PM5/29/02
to
(a) How do I use colors in Plain TeX? I read somewhere that Plain TeX
does not support colors. The 'colorref' style/package seems to work
only for LaTeX. Do I need a special package to use color?

(b) I noticed that MikTeX supports the \special{html...} syntax
without using any special package; however, the hyperlink has no
color, just an ordinary underline. In contrast, the 'hyperref' package
available for LaTeX does show hyperlinks in color. Again, do I need a
special package to use colored links in Plain TeX? Or should 'color
command(s)' (however it is implemented) be embedded between the
\special{html...} commands?

Pls. help.

Thanx

Melchior FRANZ

unread,
May 29, 2002, 3:01:05 PM5/29/02
to
* dave -- Wednesday 29 May 2002 20:55:

> (a) How do I use colors in Plain TeX? I read somewhere that Plain TeX
> does not support colors. The 'colorref' style/package seems to work
> only for LaTeX. Do I need a special package to use color?

There's a wrapper around the LaTeX's color style available:
CTAN:/macros/plain/graphics/{miniltx.tex,color.tex}

Write "\input color" and you can then use all the color commands
of color.sty.

m.

Christopher League

unread,
May 29, 2002, 3:14:40 PM5/29/02
to
* cotto...@yahoo.com (dave) writes:
| (a) How do I use colors in Plain TeX? I read somewhere that Plain TeX
| does not support colors. The 'colorref' style/package seems to work
| only for LaTeX. Do I need a special package to use color?

CTAN:macros/plain/graphics

It uses miniltx.tex to define (and mostly ignore) essential LaTeX
commands, sets up for the dvips driver, and then loads the
graphics.sty for LaTeX!

Last time I tried it, I had to hack a few bits because the
miniltx.tex did not define everything required by graphics.sty.
Maybe it is better now.

--Chris

Patrick TJ McPhee

unread,
Jun 1, 2002, 2:14:08 PM6/1/02
to
In article <6421f3ed.02052...@posting.google.com>,
dave <cotto...@yahoo.com> wrote:

% (a) How do I use colors in Plain TeX? I read somewhere that Plain TeX
% does not support colors. The 'colorref' style/package seems to work
% only for LaTeX. Do I need a special package to use color?

Colours are device-driver specific, although there are a few specials which
are supported by several drivers. For instance \special{color: rgb 0 0 1}
will set the colour to blue for dvips and some other drivers.

Plain TeX is a bit like the Dave Coverly cartoon `At the Reality Theme
Park'. At the Tunnel of Love, the staff member hands you a shovel and
says `Here, you gotta dig your own'.

You may find some packages that do what you want, but for the most
part, you have to find out what you want to do at a low level and
do it.
--

Patrick TJ McPhee
East York Canada
pt...@interlog.com

José Carlos Santos

unread,
Jun 3, 2002, 9:18:42 AM6/3/02
to
cotto...@yahoo.com (dave) wrote in message news:<6421f3ed.02052...@posting.google.com>...

> (a) How do I use colors in Plain TeX? I read somewhere that Plain TeX
> does not support colors. The 'colorref' style/package seems to work
> only for LaTeX. Do I need a special package to use color?

Yes: the colordvi package.

Best regards

Jose Carlos Santos

0 new messages