Difference between revisions of "Style and Color Parameters"
Jump to navigation
Jump to search
(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...") |
m |
||
Line 3: | Line 3: | ||
Many ConTeXt commands accept a <code>style</code> and a <code>color</code> parameter. These in turn accept a name as defined by <code>\definehighlight</code>, <code>\definealternativestyle</code>, <code>\definefont</code> for fonts, etc., respectively <code>\definecolor</code> or <code>\startstandardmakeup</code> for colors: | Many ConTeXt commands accept a <code>style</code> and a <code>color</code> parameter. These in turn accept a name as defined by <code>\definehighlight</code>, <code>\definealternativestyle</code>, <code>\definefont</code> for fonts, etc., respectively <code>\definecolor</code> or <code>\startstandardmakeup</code> for colors: | ||
− | < | + | <texcode> |
\definefont[MyFont][Arial at 28pt] | \definefont[MyFont][Arial at 28pt] | ||
\startmakeup[standard][style=MyFont] | \startmakeup[standard][style=MyFont] | ||
Lorem ipsum dolor sit amet consectetur. | Lorem ipsum dolor sit amet consectetur. | ||
\stopmakeup | \stopmakeup | ||
− | </ | + | </texcode> |
Alternatively, instead of pre-defining a font or color name, one can hand the definition over directly: | Alternatively, instead of pre-defining a font or color name, one can hand the definition over directly: | ||
− | < | + | <texcode> |
\startmakeup[standard][style={\setupinterlinespace[line=5em]}] | \startmakeup[standard][style={\setupinterlinespace[line=5em]}] | ||
Lorem ipsum dolor sit amet consectetur. | Lorem ipsum dolor sit amet consectetur. | ||
\stopmakeup | \stopmakeup | ||
− | </ | + | </texcode> |
Revision as of 21:05, 26 August 2013
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