Changes

Jump to navigation Jump to search
81 bytes added ,  07:57, 28 February 2009
→‎Randomizing items: \nextrandom workaround
It is possible to make ConTeXt randomize the items in enumerations; this can come handy when, e.g., typesetting tests. You have to add a <tt>random</tt> option to <cmd>startitemize</cmd>. There are two caveats:
# You have to say <cmd>startitem</cmd> ... <cmd>stopitem</cmd> instead of <cmd>item</cmd> ... .
# Somehow the first item does not get randomized. (I learned from the mailing list - thanks, Aditya! - that adding a <cmd>nextrandom</cmd> somewhere earlier helps.)
Example:
<context source="yes">
\nextrandom
\startitemize[random]
\startitem A \stopitem
\startitem B \stopitem
\startitem C \stopitem
\startitem D \stopitem
\startitem E \stopitem
%\startitem F \stopitem
\stopitemize
</context>
27

edits

Navigation menu