Difference between revisions of "Command/definepalet"
< Command
Jump to navigation
Jump to search
m |
m (Reverted edits by Garulfo (talk) to last revision by Usonianhorizon) Tag: Rollback |
||
Line 52: | Line 52: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category:Command/ | + | [[Category:Command/Colors|definepalet]] |
Latest revision as of 13:46, 8 June 2020
\definepalet
Syntax (autogenerated)
\definepalet[...][...=...,...] | |
[...] | name |
name | color |
\definepalet[...][...] | |
[...] | name |
[...] | name |
Syntax
\definepalet[...][...,...=...,...] | |
[...] | name |
name | name |
Description
Define a set of color name definitions that can then all be activated at once with \setuppalet. To inspect the palet, or to compare its colours against each other, use \showpalet and \comparepalet.
\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] [alert=green] \definepalet [bleak] [alert=darkgray] \starttext \setuppalet [colorful] \color[alert]{Ain't I a colorful entity?} \setuppalet [bleak] \color[alert]{Ain't I a colorful entity?} \stoptext
See also
|
Help from ConTeXt-Mailinglist/Forum
All issues with: