Command/color

From ConTeXt wiki
Jump to: navigation, search

\color

Syntax

\color[...]{...}
[...] text
{...} text


Description

Sets the {text} in [color]

In mkii, If there is no 'text' argument given (the character following the ']' is not an '{'), then the command behaves like a plain TeX font switch: it will apply from here to the end of the current grouping level.

Example

{\color[blue] This is blue text.}
\color[blue]{This is blue text.}

In mkiv, only the second example would work as expected (that is the command is not any more a switch).

See also

Colors


See also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox