Changes

Jump to navigation Jump to search
545 bytes added ,  12:37, 16 June 2012
→‎Description: inserted note concerning syntax oddities
== Description ==
Allows on-the-fly switching of whole sets of color name definitions.
 
'''NB'''
{{cmd|definepalet}} relies on a non-standard argument parser that does
not tolerate trailing commas [http://www.ntg.nl/pipermail/ntg-context/2012/067602.html].
Therefore the following syntax is illegal:
<texcode>
\definepalet [foo] [
first=red,
second=green, %% <= will fail
]
</texcode>
Use common ConTeXt coding style instead:
<texcode>
\definepalet [foo]
[first=green,
second=red]
</texcode>
 
Alternatively, replace the comma with a comment character:
<texcode>
\definepalet [foo] [
first=green,
second=red%
]
</texcode>
== Example ==
188

edits

Navigation menu