FurtiveFelon
FurtiveFelon

Reputation: 15176

typeset problem/solution pair (example) in latex

I'd like to know if there is a way in latex to show the following:

Example 1: problem statement here
Solution: solution here

and wrap that in a box so that it will be noticeable.

Seems like a common enough problem that there should be ready made solutions

If there are any suggestions it would be much appreciated!

Upvotes: 4

Views: 3160

Answers (1)

Pieter
Pieter

Reputation: 2912

This can be done using the exercise package. For more information, look at the manual or a previous topic on this subject. A (modified) example from the manual:

\begin{ExerciseList}
  \Exercise Discuss\ldots
  \Answer $\ldots$
\end{ExerciseList}

Upvotes: 5

Related Questions