ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* playing colors
@ 2011-03-01 13:37 Hans van der Meer
  2011-03-01 15:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Hans van der Meer @ 2011-03-01 13:37 UTC (permalink / raw)
  To: NTG ConTeXt

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

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.

Hans van der Meer

\setuppapersize[A5][A5]
\switchtobodyfont[20pt]
\starttext
\color[red]{hello} \quad
\color[green]{hello} \quad
\color[cyan]{hello} \quad
\showcolor[red]
\showcolor[green]
\showcolor[cyan]
\stoptext


[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 5217 bytes --]

[-- Attachment #3: Type: text/plain, Size: 2 bytes --]




[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: playing colors
  2011-03-01 13:37 playing colors Hans van der Meer
@ 2011-03-01 15:25 ` Wolfgang Schuster
  2011-03-01 16:28   ` Otared Kavian
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-03-01 15:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: playing colors
  2011-03-01 15:25 ` Wolfgang Schuster
@ 2011-03-01 16:28   ` Otared Kavian
  0 siblings, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2011-03-01 16:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-01 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01 13:37 playing colors Hans van der Meer
2011-03-01 15:25 ` Wolfgang Schuster
2011-03-01 16:28   ` Otared Kavian

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