ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: playing colors
Date: Tue, 1 Mar 2011 17:28:01 +0100	[thread overview]
Message-ID: <8DE0716B-11BF-477E-8308-139EC7219586@gmail.com> (raw)
In-Reply-To: <BDF309BE-00E1-4D76-8F9C-DDBBC884B1DA@gmail.com>


On 1 mars 2011, at 16:25, Wolfgang Schuster wrote:

> 
> Am 01.03.2011 um 14:37 schrieb Hans van der Meer:
> 
>> Started for myself some learning on colors in ConTeXt. In the manual there is a nice colorpalette shown (section 6, page 141). However, I cannot reproduce this. The following minimal example shows colored texts, but \showcolor[color-name] just produces black boxes with ominous zeroes behind it.
>> What am I missing here? The wiki didn't procure more information then the manual.
> 
> The command is used to show all the defined colors in a colo-xxx.(mkii|mkiv) file, e.g.
> 
> \starttext
> \showcolor[rgb]
> \stoptext
> 
> Wolfgang

Hi Hans,

Indeed as Wolfgang points out, in the file 
	colo-ini.mkii
it is said that:

%D But let's not forget that we also have the more traditional
%D non||related colors. These show up after:
%D
%D \starttyping
%D \showcolor [name]
%D \stoptyping
%D
%D Where \type{name} for instance can be \type{rgb}.

Actually « name » can be also xwi or pra. There another command is also given, \showcolorgroup,  for showing colors such as in:
	\showcolorgroup [red]    [vertical,name,number]
or
	\showcolorgroup [red]  

And the following can be used to see the setups:

	\showsetups{showcolor}

(Actually in the source there is a mistyping « \showsetup » instead of « \showsetups »).

Best regards: OK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2011-03-01 16:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 13:37 Hans van der Meer
2011-03-01 15:25 ` Wolfgang Schuster
2011-03-01 16:28   ` Otared Kavian [this message]

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=8DE0716B-11BF-477E-8308-139EC7219586@gmail.com \
    --to=otared@gmail.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).