This should be easy, but I just cannot figure it out reading the documentation. Somehow I get confused by all this Exercise/ExePart/subQuestion, etc.
Basically I want to typeset an exercise which consists of an introduction followed by several enumerated questions. So in the end it should look something like:
Ex. 1 - Some longish introductory text to a very difficult Exercise
blablablabla tralala....
1. The first question
2. The second question
...
Since this is part of an ExerciseList environment I tried the following:
\documentclass{article}
\usepackage[lastexercise]{exercise}
\begin{document}
\begin{ExerciseList}
\Exercise Some longish introductory text to a very difficult Exercise blablablabla tralala....
\Question The first question
\Answer The first answer
\Question The second question
\Answer The second answer
\end{ExerciseList}
\end{document}
However this does not work. Only the first question appears in the output and all subsequent questions are not visible. How can I fix this?
\Answer
at the end, all\Question
s are shown.\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.1.
noanswer
to the package options to reproduce the described behaviour.