Difference between revisions of "Command/definepalet"
< Command
Jump to navigation
Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}") |
m (→Example: example) |
||
Line 25: | Line 25: | ||
== Example == | == Example == | ||
− | < | + | <texcode> |
+ | \setupcolors [x11] | ||
+ | \definepalet [colorful] [primary=green] | ||
+ | \definepalet [bleak] [primary=darkgray] | ||
+ | \starttext | ||
+ | |||
+ | \setuppalet [colorful] | ||
+ | \color[primary]{Ain’t I a colorful entity?} | ||
+ | |||
+ | \setuppalet [bleak] | ||
+ | \color[primary]{Ain’t I a colorful entity?} | ||
+ | |||
+ | \stoptext | ||
+ | </texcode> | ||
== See also == | == See also == |
Revision as of 12:29, 16 June 2012
\definepalet
Syntax
\definepalet[...][...,...=...,...] | |
[...] | name |
name | name |
Description
Example
\setupcolors [x11] \definepalet [colorful] [primary=green] \definepalet [bleak] [primary=darkgray] \starttext \setuppalet [colorful] \color[primary]{Ain’t I a colorful entity?} \setuppalet [bleak] \color[primary]{Ain’t I a colorful entity?} \stoptext
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: