Closed nstanger closed 11 years ago
The simplest solution is probably a depth counter that gets incremented when every question
, subquestion
or subsubquestion
environment opens, and decrements when it closes. Output a warning if the depth isn’t what we expect for the question type (question
= 0, subquestion
= 1, subsubquestion
= 2).
There is no check that a
subquestion
environment should be inside aquestion
(nor similarly that asubsubquestion
should be inside asubquestion
).As reported by Stephen Cranefield: