Changes

Jump to navigation Jump to search
776 bytes added ,  13:35, 13 October 2019
no edit summary
}}
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definepalet</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
</table>
== Description ==
== Description == Define a set of color name definitions that can then all be activated at once with {{cmd|setuppalet}}. To inspect the palet, or to compare its colours against each other, use {{cmd|showpalet}} and {{cmd|comparepalet}}.
{{cmd|definepalet}} used to rely on a non-standard argument parser that would
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.
== Example ==
<context source=yes>
\setupcolors [x11]
\definepalet [colorful] [alert=green]
\definepalet [bleak] [alert=darkgray]
\starttext
== Example ==\setuppalet [colorful]\color[alert]{Ain't I a colorful entity?} \setuppalet [bleak]\color[alert]{Ain't I a colorful entity?} \stoptext<!-- Please fill in an example if you can --/context>
== See also ==
<!-- something like [[cmd:goto|\goto]] -->{{Color navbox}}
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:Command/Colors|definepalet]]

Navigation menu