views:

24

answers:

1

Hey guys,

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!

+3  A: 

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}
Pieter