Changes

Jump to navigation Jump to search
82 bytes removed ,  13:46, 8 June 2020
m
Reverted edits by Garulfo (talk) to last revision by Usonianhorizon
}}
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definepalet</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
</tr>
</table>
 
== Description ==
Allows on-the-fly switching of whole sets of color name definitions.
'''NB'''Define a set of color name definitions that can then all be activated at once with {{cmd|definepaletsetuppalet}} relies on a non-standard argument parser that doesnot tolerate trailing commas [http://www.ntg.nl/pipermail/ntg-context/2012/067602.html].Therefore To inspect the following syntax is illegal:<texcode>\definepalet [foo] [ first=redpalet, second=greenor to compare its colours against each other, %% <= will fail]</texcode>Use common ConTeXt coding style instead:<texcode>\definepalet [foo] [first=green, second=red]</texcode>use {{cmd|showpalet}} and {{cmd|comparepalet}}.
Alternatively, replace the comma with {{cmd|definepalet}} used to rely on a comment character:non-standard argument parser that would<texcode>\definepalet not tolerate trailing commas [foohttp://www.ntg.nl/pipermail/ntg-context/2012/067602.html] [ first=green. This is no longer the case, second=red%]</texcode>but sufficiently old installation might still exhibit the problem.
== Example ==
<context source=yes>
\setupcolors [x11]
\definepalet [colorful] [primaryalert=green]\definepalet [bleak] [primaryalert=darkgray]
\starttext
\setuppalet [colorful]
\color[primaryalert]{Ain't I a colorful entity?}
\setuppalet [bleak]
\color[primaryalert]{Ain't I a colorful entity?}
\stoptext
== See also ==
<!-- something like {{cmd|gotoColor navbox}} -->
== Help from ConTeXt-Mailinglist/Forum ==

Navigation menu