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
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
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
participants (3)
-
Hans van der Meer
-
Otared Kavian
-
Wolfgang Schuster