From: "Johannes Hüsing" <hannes@ruhrau.de>
Subject: colorful listings
Date: Tue, 12 Nov 2002 15:56:23 +0100 [thread overview]
Message-ID: <20021112145623.GA1833@ruhrau.de> (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
next reply other threads:[~2002-11-12 14:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-12 14:56 Johannes Hüsing [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021112145623.GA1833@ruhrau.de \
--to=hannes@ruhrau.de \
--cc=ntg-context@ref.ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).