I want to define a simple environment to enclose my proofs, actually I just wanted to put a little square right at the end. So, I made this new environment definition:
\newenvironment{Proof}{ \flushleft \textbf{PROOF}}{\rule{1ex}{1ex}}
When I use this environment to enclose simple text, then I get the little square right at the end, after the last character. The problem is when I enclose an enumerate environment because it adds a new line and put the little square at the beginning. In this case my problem is both I don't want the new line and also I need the square at the right ending of the margin. If I consider it this way
\newenvironment{Proof}{ \flushleft \textbf{PROOF}}{\begin{flushright} \rule{1ex}{1ex} \end{flushright}}
then a new line is always added.
proofenvironment. You suggest using a black box (\rule{1ex}{1ex}), this can be achieved too, by redefining\qedsymbol. – tohecz Feb 7 at 20:23