Command/color
< Command
Jump to navigation
Jump to search
Contents
\color
Summary
The command \color is used to typeset text with a color.
Settings
Description
Typesets the {content} in [color].
Some color names are preloaded (like the six primary and secondary colors, as well as black and white). For other colors, you can define your own color using \definecolor, or load one of the color definition files using \usecolors.
Examples
Example 1
This text is \color[green]{green}.
Notes
- By Taco on 2021-11-09T13:37:50+0100:
In MkII, if there was no 'text' argument given (the character following the ']' is not an '{'), then the command behaved like a plain TeX font switch: it applied from here to the end of the current grouping level. This is no longer the case.