Difference between revisions of "Command/definepalet"

From Wiki
Jump to navigation Jump to search
Line 4: Line 4:
== [[Help:Reference|Syntax]] (autogenerated)] ==
== [[Help:Reference|Syntax]] (autogenerated) ==
== [[Help:Reference|Syntax]] ==
== [[Help:Reference|Syntax]] ==

Revision as of 13:35, 13 October 2019


Syntax (autogenerated)




[...] name
name name


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.


\setupcolors [x11]
\definepalet [colorful] [alert=green]
\definepalet [bleak]    [alert=darkgray]

\setuppalet  [colorful]
\color[alert]{Ain't I a colorful entity?}

\setuppalet  [bleak]
\color[alert]{Ain't I a colorful entity?}


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: