diff options
author | Felipe Portales-Oliva <f.portales.oliva@gmail.com> | 2019-03-30 00:25:35 -0300 |
---|---|---|
committer | Felipe Portales-Oliva <f.portales.oliva@gmail.com> | 2019-03-30 00:25:35 -0300 |
commit | d24103e3611d42029a5c51b1fd578db4b3b4b35a (patch) | |
tree | 760e263b940e2c7951e14cdc02639808f616bbde | |
parent | 6594f39c4d1567de8544d7bd1faf0c422af4a59d (diff) |
added environment to write the problem(s) addressed in this homework
-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} |