diff options
-rw-r--r-- | fphw.cls | 6 | ||||
-rw-r--r-- | template.tex | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -115,5 +115,11 @@ \end{center} } +% definition of the "problem" environment +\newsavebox{\problembox} +\newenvironment{problem} + {\begin{center} \begin{lrbox}{\problembox}\begin{minipage}{.9\textwidth}} + {\end{minipage}\end{lrbox}\fbox{\usebox{\problembox}} \end{center} } + %%% We finish the class with this command \endinput diff --git a/template.tex b/template.tex index a0f3593..2a17b12 100644 --- a/template.tex +++ b/template.tex @@ -25,6 +25,10 @@ \maketitle % Put all that nicely -\lipsum[1-15] % My homework +\begin{problem} + \lipsum[1] +\end{problem} + +\lipsum[2-15] % My homework \end{document} |