Changes

Jump to navigation Jump to search
m
no edit summary
== Defining lists ==
Defining {{cmd|itemizestartitemize}} -like *''itemgroups* '' is accomplished through {{cmd|defineitemgroup}} and the correspoding corresponding setup. For historical reasons these have a non-standard, duplicate interfacerequiring some options to be specified as key-value setups, others as an argument list.For example:
<codetexcode>
\defineitemgroup[myitems]
\setupitemgroup [myitems] [each] [joinedup]
\setupitemgroup [myitems] [each] [itemalign=flushright]
</codetexcode>
The second argument determines arguments include the itemization level the settings apply to.:
The third argument comes in two varieties* item group name;* itemization level; and* list of horizontal and vertical whitespace controls.
Parameters that concern whitespace (both vertical and horizontal) belong in the argument list: {{code|joinedup}}, {{code|packed}}, {{code|nowhite}}, and others.
Further options are part of the setup. Both kinds , and can be given in a combined version:
<codetexcode>
\setupitemgroup [myitems] [each] [joinedup] [itemalign=flushright]
</codetexcode>
== Custom bullets ==
number as the contents of the box like so:
<codetexcode>
\definesymbol [instruction_symbol_numbered]
[{\framed{\currentitemnumber}}]
</codetexcode>
The {{cmd|framed}} must be adapted to the specific requirements.
Below listing combines all the above into one working example.
<codetexcode>
\unprotect
\stopInstructions
\stoptext
</codetexcode>
37

edits

Navigation menu