0

With a simple proof environment as follows,

\documentclass{article}
\usepackage{amsmath, amsthm}
\vspace{-5pt}
\begin{document}
    \begin{proof}~\\
            \item First line
            \item Lastline ................\end{proof}
\end{document}

the symbol for the end of the proof is on the same line as the last line of the proof.

If we have an enumeration environment inside the proof environment, the symbol for the end of the proof only shows up at the next line:

\documentclass{article}
\usepackage{amsmath, amsthm}
\vspace{-5pt}
\begin{document}
\begin{proof}~\\
    \begin{enumerate}
        \item First line
        \item Last line ......................
    \end{enumerate}
\end{proof}
\end{document}

May the proof environment with an enumeration environment be amended, so that the symbol for the end of the proof is on the same line as the last line of the proof?

Mico
  • 506,678

1 Answers1

1

As mentioned @Mico in his comment, use \qedhere. It will align it with last line in a list, if this line end before right border of text block. If not, than symbol for \qed will appear below item text.

\documentclass{article}
\usepackage{amsmath, amsthm}
\usepackage{lipsum}

\begin{document} \begin{proof}~ \item First line \item \lipsum[1][1-3] And here is the last line \qedhere \end{proof}

\begin{proof}~

\item First line \item \lipsum[66] \qedhere \end{proof} \end{document}

enter image description here

Zarko
  • 296,517