I'm working on a simple layout in LyX 2.2 for the exam class. Many things work very well, especially with the
LatexType Item_Environment style in LyX layouts. However, I'm stuck at how to deal with the multiple-choice environment, because
are essentially two different
\item possibilities within a
LatexType Item_Environment (for LyX layouts). It doesn't look possible to have two different
ItemCommand definitions in LyX. Arguably,
\CorrectChoice is just a special case of
\choice, but it's a lot to change the Exam class...
I realized it would be much easier if
\CorrectChoice were just a
\choice with an optional argument set to true (or 1), e.g.,
\choice. Perhaps there's a way to hack it back to
\CorrectChoice after LyX generates the LaTeX and before the LaTeX is compiled?
I have seen some hacking things done like this with the
etoolbox package, but I couldn't find anything obvious. I admit I'm not much of a TeX hacker. It would be great to know if this is possible.