Difference between revisions of "Command/definepalet"
< Command
Jump to navigation
Jump to search
m (Visualize example) |
(Remove old remark about argument parser) |
||
Line 23: | Line 23: | ||
Allows on-the-fly switching of whole sets of color name definitions. | Allows on-the-fly switching of whole sets of color name definitions. | ||
− | + | {{cmd|definepalet}} used to rely on a non-standard argument parser that would | |
− | {{cmd|definepalet}} | + | not tolerate trailing commas [http://www.ntg.nl/pipermail/ntg-context/2012/067602.html]. This is no longer the case, but sufficiently old installation might still exhibit the problem. |
− | not tolerate trailing commas [http://www.ntg.nl/pipermail/ntg-context/2012/067602.html]. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Example == | == Example == |
Revision as of 11:37, 13 May 2013
\definepalet
Syntax
\definepalet[...][...,...=...,...] | |
[...] | name |
name | name |
Description
Allows on-the-fly switching of whole sets of color name definitions.
\definepalet used to rely on a non-standard argument parser that would not tolerate trailing commas [1]. This is no longer the case, but sufficiently old installation might still exhibit the problem.
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: