I'm trying to make a template for my homework. I've been using a modification of the Harvey Mudd homework class, but there are some things I don't really like about it (functional and aesthetic).
What I do want are the boxed problem environment and something like their solution environment (which is a lot like amsthm's proof environment).
For the problem environment, I would like to call it, as in the HMC class, by typing
\begin{problem}[%problem number%]
%problem statement%
\end{problem}
I also wanted the frame to be "3-D," similar to \shadowbox
, but I can't figure out how to get a more subtle effect.
And is there a way that I can make a solution environment that is essentially identical to the asmthm proof environment? I want to redefine the qed symbol to be \blacksquare
and be able to use \qedhere
.
I'm also trying to get spacing similar to that of amsthm's theorem and proof environments (that is, before and after the environments).
If it matters, I am using AMS article. And here are some things I've referred to (and tried) in my attempts at this:
http://www.slideshare.net/linjaaho/how-to-make-boxed-text-with-latex
(On a similar note, how do you look at the "source" [I'm not sure this is the correct term] for a class? I would like to look at how stuff was defined/created in the HMC class, for instance.)
Oh, and a link to the HMC class. Which has a pdf preview.
EDIT: I think I figured out a solution environment:
\newenvironment{solution}{\begin{proof}[Solution]}{\end{proof}}
mdframed
package. – Peter Grill Sep 22 '13 at 23:19solution
looks reasonable. to change the qed symbol, in that definition (within theproof
environment) add\let\qedsymbol\blacksquare
. it will revert to the original as soon as it leaves the environment. – barbara beeton Aug 14 '15 at 17:33