Changes

Jump to navigation Jump to search
m
no edit summary
== Optional delimited arguments ==
When working with delimited arguments, spaces and lineendings can interfere. The next set of macros uses TeX' s internal scanner for grabbing everything between arguments. Forgive me the funny names.
<texcode>
</texcode>
The macros above insure that the resulting call always has the correct number of bracket pairs, even if the user did not supply all of the options. In this case, a number of trailing bracket pairs are empty. A set of related <code>\if</code> booleans is initialized to give you access to the number of user -supplied parameters. 
== Optional delimited arguments with key-value sets ==
</texcode>
The first macro calls <code>\command[##1]</code> for each string in the set <code>#1</code>. The second one calls for <code>\commandocommand[##1][#2]</code> and the third, well one may guess. These commands support constructions like:
<texcode>
< '''Prev:''' [[System Macros/Expansion Control|Expansion Control]] | '''Top:''' [[System Macros]] | '''Next:''' [[System Macros/Definitions and Assignments|Definitions & Assignments]] >
[[Category:System MacrosProgramming and Databases]][[Category:ConTeXt programmingTools]]

Navigation menu