\documentclass[CEJB,PDF]{cej} \usepackage{layout} \usepackage{lipsum} \usepackage{enumerate} \usepackage{amssymb} \begin{document} \begin{proof} In \begin{proof} \end{proof} the end of proof small appearing in same while the proof was ending with text. But the proof is ending with enumerate or align or math mode the small box appearing in next line. \end{proof} \begin{proof} \[{f}(x)=\left\{ \begin{array}{ll} \frac{{f(x)+f(y)}}{2}, & \hbox{if $f(x)+f(y)$ is odd} \\ \frac{{f(x)+f(y)+ 1}}{2}, & \hbox{if $f(x)+f(y)$ is even} \end{array} \right. \] \end{proof} \begin{proof} \begin{enumerate} \item item a \item item b \item item c \end{enumerate} \end{} In \begin{proof} \end{proof} the end of proof small appearing in same while the proof was ending with text. But the proof is ending with enumerate or align or math mode the small box appearing in next line. Is it possible to same line ending theorem proof while using enumerate or align or math mode?
`, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it).cejclass is not on CTAN. Can you provide a link to it?