* colorful listings
@ 2002-11-12 14:56 Johannes Hüsing
2002-11-14 0:03 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Hüsing @ 2002-11-12 14:56 UTC (permalink / raw)
Greetings,
unfortunately I cannot assign personal color palettes to my
program listings. The following document, after processing, shows a
colorful palet, then, unexpectedly, a B+W listing, then another
colorful palet, and a colorful listing. What is wrong in the
assignment of an own palet here?
Best
Johannes
-----8-<-----
\setupoutput[pdftex]
\setupcolors[state=start]
\definecolor [espresso] [r=.4, b=.1, g=.2]
\definecolor [cacao] [r=.6, b=.2, g=.4]
\definecolor [aulait] [r=.8, b=.4, g=.6]
\definecolor [muckefuck] [r=.95, b=.65, g=.8]
\definepalet
[mokka]
[ prettyone=espresso,
prettytwo=cacao,
prettythree=aulait,
prettyfour=muckefuck]
\starttext
\showpalet[mokka]
\setuptyping[PL][palet=mokka]
\startPL
#!/usr/bin/perl -w
print "Hello, World!\n";
\stopPL
\showpalet[colorpretty]
\setuptyping[PL][palet=colorpretty]
\startPL
#!/usr/bin/perl -w
print "Hello, Hasselt!\n";
\stopPL
\stoptext
----->-8-----
--
Johannes Hüsing There is something fascinating about science. One gets
hannes@ruhrau.de such wholesale returns of conjecture from such a
trifling investment of fact. Mark Twain
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: colorful listings
2002-11-12 14:56 colorful listings Johannes Hüsing
@ 2002-11-14 0:03 ` Hans Hagen
2002-11-14 5:38 ` Johannes Hüsing
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2002-11-14 0:03 UTC (permalink / raw)
At 03:56 PM 11/12/2002 +0100, you wrote:
>Greetings,
>
>unfortunately I cannot assign personal color palettes to my
>program listings. The following document, after processing, shows a
>colorful palet, then, unexpectedly, a B+W listing, then another
>colorful palet, and a colorful listing. What is wrong in the
>assignment of an own palet here?
you need to add:
\definepalet [PLcolorpretty] [mokka]
internally, the pretty printer prefixes the palet name with PL
(the latest version no longer by default freeze colors, this means that one
can dynamically change (reassign) colors; interestingly, while cleaning
this up (and adding support for spot colors and color separation) things
also became a bit faster)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: colorful listings
2002-11-14 0:03 ` Hans Hagen
@ 2002-11-14 5:38 ` Johannes Hüsing
2002-11-14 10:26 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Hüsing @ 2002-11-14 5:38 UTC (permalink / raw)
On Thu, Nov 14, 2002 at 01:03:38AM +0100, Hans Hagen wrote:
[...]
>
> you need to add:
>
> \definepalet [PLcolorpretty] [mokka]
>
and drop the 'palet=' option, I presume? What is this option good for then?
Thank you very much! It works.
Greetings
Johannes
--
Johannes Hüsing There is something fascinating about science. One gets
hannes@ruhrau.de such wholesale returns of conjecture from such a
trifling investment of fact. Mark Twain
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: colorful listings
2002-11-14 5:38 ` Johannes Hüsing
@ 2002-11-14 10:26 ` Hans Hagen
2002-11-15 4:53 ` Johannes Hüsing
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2002-11-14 10:26 UTC (permalink / raw)
At 06:38 AM 11/14/2002 +0100, you wrote:
>On Thu, Nov 14, 2002 at 01:03:38AM +0100, Hans Hagen wrote:
>[...]
> >
> > you need to add:
> >
> > \definepalet [PLcolorpretty] [mokka]
> >
>
>and drop the 'palet=' option, I presume? What is this option good for then?
Well, if you would have defined PLmokka ...
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: colorful listings
2002-11-14 10:26 ` Hans Hagen
@ 2002-11-15 4:53 ` Johannes Hüsing
0 siblings, 0 replies; 5+ messages in thread
From: Johannes Hüsing @ 2002-11-15 4:53 UTC (permalink / raw)
On Thu, Nov 14, 2002 at 11:26:05AM +0100, Hans Hagen wrote:
> At 06:38 AM 11/14/2002 +0100, you wrote:
> >On Thu, Nov 14, 2002 at 01:03:38AM +0100, Hans Hagen wrote:
> >[...]
> >>
> >> you need to add:
> >>
> >> \definepalet [PLcolorpretty] [mokka]
> >>
> >
> >and drop the 'palet=' option, I presume? What is this option good for then?
>
> Well, if you would have defined PLmokka ...
>
OK, now I begin to understand your answer. Sorry for being a bit slow.
Thanks again
Johannes
--
Johannes Hüsing There is something fascinating about science. One gets
hannes@ruhrau.de such wholesale returns of conjecture from such a
trifling investment of fact. Mark Twain
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-11-15 4:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-12 14:56 colorful listings Johannes Hüsing
2002-11-14 0:03 ` Hans Hagen
2002-11-14 5:38 ` Johannes Hüsing
2002-11-14 10:26 ` Hans Hagen
2002-11-15 4:53 ` Johannes Hüsing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).