ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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