[texhax] random order
Aditya Mahajan
adityam at umich.edu
Fri Oct 13 07:15:40 CEST 2006
On Thu, 12 Oct 2006, Tom Sgouros wrote:
>
> Hello all:
>
> Can someone help me think of a way to get 11 items in a random order? I
> have 11 entries in a list that appears 25 times in a document, and I
> want them to appear in a randomly chosen order each time they appear.
> Call them eleven macros: \One, \Two and so on.
>
> I see the random.tex file, but I can't quite see how to make this into
> an ordering using macros. Any suggestions?
I do not know which format you are using (Plain, LaTeX or ConTeXt). In
ConTeXt, choosing a random order for items is easy.
\starttext
\startitemize[a,random]
\startitem first item \stopitem
\startitem second item \stopitem
\startitem third item \stopitem
\startitem fourth item \stopitem
\stopitemize
\stoptext
You can look at the output on http://live.contextgarden.net
Aditya
More information about the texhax
mailing list