20 Apr
2006
20 Apr
'06
8:42 p.m.
Thanks for the useful explanations.
A newline is treated in general as a space, so you have unwanted space in case 1.
Right, but what confused me was that I expected the closing brace in numbercommand={\gobbleoneargument} to bound what numbercommand was set to.
If you really want a newline as in case 1, then consider case 4:
I'm happy to put the ] on the same line. I had ended up with case 1 by mistake after a bunch of experiments with exercise numbering, and then it took me a while to figure out the change that was causing the error. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.