ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: How to customize the default verbatim colors
Date: Thu, 25 Aug 2005 13:23:08 +0200	[thread overview]
Message-ID: <430DAA1C.9050809@elvenkind.com> (raw)
In-Reply-To: <ecca0b27050824165559ccf114@mail.gmail.com>


Hi!


Eugene Toporov wrote:

> I expect there is a way to redefine whole palette or something.

Yes, sure (you need to define an XXXcolorpretty palet for each type
you want to change):

   \definecolor[MYcolorone]  [r=.8,g=.5,b=.5]
   \definecolor[MYcolortwo]  [r=.8,g=.5,b=.2]
   \definecolor[MYcolorthree][r=.8,g=.5,b=.8]
   \definecolor[MYcolorfour] [r=.8,g=.2,b=.5]

   \definepalet[MYcolors]
     [  prettyone=MYcolorone,
        prettytwo=MYcolortwo,
      prettythree=MYcolorthree,
       prettyfour=MYcolorfour]

   \definepalet[XMLcolorpretty] [MYcolors] % the name is magic !

   \setupcolors[state=start]
   \setuptyping[option=color]

   \starttext
   \startXML ... \stopXML
   \stoptext

Cheers, Taco

  parent reply	other threads:[~2005-08-25 11:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-24 23:55 Eugene Toporov
2005-08-25  8:40 ` Unable to make cont-en.fmt luigi.scarso
2005-08-25  9:07   ` Taco Hoekwater
2005-08-25  9:37     ` luigi.scarso
2005-08-25 10:43       ` Taco Hoekwater
2005-08-25  9:42   ` Vit Zyka
2005-08-25 11:23 ` Taco Hoekwater [this message]
2005-08-26 17:17   ` How to customize the default verbatim colors Eugene Toporov
2005-08-27  9:12     ` Taco Hoekwater
2005-08-29 11:06       ` Hans Hagen Outside

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=430DAA1C.9050809@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@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).