aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Portales-Oliva <f.portales.oliva@gmail.com>2019-03-30 00:25:35 -0300
committerFelipe Portales-Oliva <f.portales.oliva@gmail.com>2019-03-30 00:25:35 -0300
commitd24103e3611d42029a5c51b1fd578db4b3b4b35a (patch)
tree760e263b940e2c7951e14cdc02639808f616bbde
parent6594f39c4d1567de8544d7bd1faf0c422af4a59d (diff)
added environment to write the problem(s) addressed in this homework
-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}