Changes

Jump to navigation Jump to search
m
no edit summary
<texcode>
\processaction[\currentmoduleparameter{color}]
[ newman =>\def\BColor{red}, gottlieb =>\def\BColor{yellow}, rothko =>\def\BColor{blue},
\v!unknown=>\def\BColor{white},
\v!default=>\def\BColor{red}]
</texcode>
This is just meant as a first example; of course, there are many more possibilities to use this mechanism. If you want to use the parameters directly in your code, you can use the form {{cmd|currentmoduleparameter}}<tt>\currentmoduleparameter{color}</tt>, or alternatively, {{cmd|moduleparameter}}<tt>\getmoduleparameter{bgcolor}{color}</tt>.
-- [[User:Thomas|Thomas]] 18:28, 26 April 2006 (CEST) --
[[Category:Modules]]
[[Category:Inside ConTeXtTools]]

Navigation menu