Difference between revisions of "Command/color"

From ConTeXt wiki
 
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>color</syntax>
 
<syntax>color</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 13:35, 13 October 2019

\color

Syntax (autogenerated)

\color[...]{...}
[...]color
{...}CONTENT


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

This works in MkII:
This text is {\color[blue] blue}.

This works in MkII and MkIV:
This text is \color[blue]{blue}.

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

See also


Help from ConTeXt-Mailinglist/Forum

All issues with: