Style and Color Parameters

From ConTeXt wiki
Jump to: navigation, search

The style= and color= Parameters

Many ConTeXt commands accept a style and a color parameter. These in turn accept a name as defined by \definehighlight, \definealternativestyle, \definefont for fonts, etc., respectively \definecolor or \startstandardmakeup for colors:

\definefont[MyFont][Arial at 28pt]
\startmakeup[standard][style=MyFont]
  Lorem ipsum dolor sit amet consectetur.
\stopmakeup

Alternatively, instead of pre-defining a font or color name, one can hand the definition over directly:

\startmakeup[standard][style={\setupinterlinespace[line=5em]}]
  Lorem ipsum dolor sit amet consectetur.
\stopmakeup

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

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox