Am Montag, den 26.03.2018, 22:04 +1100 schrieb Anthony: > I am unsure if anyone here is familiar with the exam class and its > associated layout file, but here goes. > > I have noticed that errors are happening because the command which > begins a question or question part or subpart or subsubpart is > getting concatenated to the question itself. > > \question > Show that .... > > becomes > > \questionShow that ... > > I can get around this problem if I place a protected space after the > command \question. > > Is this concatenation controlled by the layout file or is the problem > in the exam.cls definition of \question?
It's a problem of the layout file. A quick fix is to change
LeftDelim "\question"
to
LeftDelim "\question "
in line 140.
A better fix would be to rewrite the layout and using ItemCommand.
I.e., replace the question definition by
Style Question
CopyStyle Enumerate
LatexName "questions"
LabelCounter questionnumber
LabelString "\arabic{questionnumber}."
ItemCommand "question"
Category Questions
End
and remove --begin_questions-- and --end_questions-- style definitions.
(same for the other environments of this kind)
HTH
Jürgen
>
> I have attached the exam.layout file and exam.cls file.
>
> Kind Regards,
> Anthony
>
> Sent from Mail for Windows 10
>
signature.asc
Description: This is a digitally signed message part
