Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Nice solution (upvoted). However, it may lack some flexibility in setting a specific order for a question, if you predefine all 24 possible orders and have to look up which one corresponds to the order you want for a question then you probably easily lose track of what is going on. For this setting the order as an argument to the \item command as the OP shows in their question would be easier. Commented Jul 4 at 11:57
  • If we want different ordering for different question, then categorizing the exam type into A, B, or C is not the right path. Technically we can put type directly to the question itself. The way the item is printed is by using \csname order\doctype\endcsname; we can change it to order#6. Then instead of defining orderA, orderB etc, we create order12345, order12354, and the other 22 possible ordering. The sixth parameter is for the type of the ordering, e.g {12345}. This is the safest method (than parsing). The down side is, for 5 or 6 ordering, the permutation become too much. Commented Jul 4 at 13:02