I am currently writing a question element for an exam template. I currently do not use enum or list because of the baseline shift issue, so I came up with my own environment. I want the syntax to be something like this:
#questions[
#question[some text] // no blank line = par.leading
#question[some text]
// blank line = par.spacing
#question[
Another text
#parts[
#part[This is first subquestion]
#part[This is the second subquestion]
]
]
Some Text Outside with space above and below equals to
par.spacing
#question[Last question]
]
with output like
1. some text
2. some text
3. Another text
3.1 This is first subquestion
3.2 This is the second subquestion
Some Text Outside with space above and below equals to
par.spacing
4. Last question
Do you have any suggestions?