aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fphw.cls6
-rw-r--r--template.tex6
2 files changed, 11 insertions, 1 deletions
diff --git a/fphw.cls b/fphw.cls
index 21a9d43..92ccc48 100644
--- a/fphw.cls
+++ b/fphw.cls
@@ -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}