From d24103e3611d42029a5c51b1fd578db4b3b4b35a Mon Sep 17 00:00:00 2001 From: Felipe Portales-Oliva Date: Sat, 30 Mar 2019 00:25:35 -0300 Subject: [PATCH] added environment to write the problem(s) addressed in this homework --- fphw.cls | 6 ++++++ template.tex | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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}