I can’t remember if I’ve written this down at some point in the past, but I needed to produce a “framed” version of the minipage enviromment in $\LaTeX$ to put some figures on an exam in boxes. Here’s some good code to define such a thing. Maybe there’s an easier way (there always is), but this works well. The code defines a new environment called “fmpage” which takes one argument (the same argument that minipage takes).

 \newsavebox{\fmbox} \newenvironment{fmpage}[1] {\begin{lrbox}{\fmbox}\begin{minipage}{#1}} {\end{minipage}\end{lrbox}\fbox{\usebox{\fmbox}}} 

Example:

 \begin{fmpage}{0.5\linewidth} $$P(t) = 180 \cdot (1.1150)^t$$ Note: Population is measured here in millions and t=0 corresponds to Jan. 1, 2000. \caption{Population Model \#1} \label{fig:figure1} \end{fmpage} 

Produces: