added environment to write the problem(s) addressed in this homework

This commit is contained in:
Felipe Portales-Oliva 2019-03-30 00:25:35 -03:00
parent 6594f39c4d
commit d24103e361
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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}