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