Style and Color Parameters

From Wiki
Revision as of 21:04, 26 August 2013 by Sixtyfive (talk | contribs) (Created page with "== The style= and color= Parameters == Many ConTeXt commands accept a <code>style</code> and a <code>color</code> parameter. These in turn accept a name as defined by <code>\def...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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:

<textcode> \definefont[MyFont][Arial at 28pt] \startmakeup[standard][style=MyFont]

 Lorem ipsum dolor sit amet consectetur.

\stopmakeup </textcode>

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

<textcode> \startmakeup[standard][style={\setupinterlinespace[line=5em]}]

 Lorem ipsum dolor sit amet consectetur.

\stopmakeup </textcode>