I was wondering if there was an easy set of code that allows the standard \begin{example} \end{example} environment in amsthm to have the extra feature that it right-aligns a \clubsuit at the end of the example? Similarly, I would like to perform the exact same modification to the remark environment but with a \diamond instead of a \clubsuit.
Asked
Active
Viewed 463 times
3
lockstep
- 250,273
Alex Youcis
- 391
1 Answers
7
You may want to check out the ntheorem package. A couple of examples lifted from page 17 of the documentation that can be customized:

\documentclass{article}
\usepackage[thmmarks]{ntheorem}
\theoremstyle{change}
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\clubsuit}}
\theoremseparator{}
\newtheorem{example}{Example}
\theoremstyle{change}
\theorembodyfont{\upshape}
\theoremsymbol{\ensuremath{\diamondsuit}}
\theoremseparator{}
\newtheorem{remark}{Remark}
\theoremheaderfont{\scshape}\theorembodyfont{\upshape}
\theoremstyle{nonumberplain}
\theoremseparator{:}
% \theoremsymbol{\rule{1ex}{1ex}}
% for tohecz
\theoremsymbol{\makebox[7.7778pt][c]{\rule{1ex}{1ex}}}
\newtheorem{Proof}{Proof}
\begin{document}
\begin{example}
Here's an example
\end{example}
\begin{remark}
Here's a remark
\end{remark}
\begin{Proof}
Here is a proof
\end{Proof}
\end{document}
Scott H.
- 11,047
ntheorempackage outside of what I posted. – Scott H. Feb 23 '13 at 08:10ntheoremcomes with a predefined proof environment, you may need to create one yourself. See the updated code. – Scott H. Feb 23 '13 at 08:15ntheorembut this works pretty good. Just one idea: the black squeare should be centered below the two suits, so that the result is more visually appealing ;) – yo' Feb 23 '13 at 09:21