0

In my thesis I'm using the following math related packages:

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}

I would like to change the position of the little square at the end of the proofs. More precisely I would like to make it appear right after the last word of the proof.

Any help will be really appreciated!

Thanks!

egreg
  • 1,121,712
Onil90
  • 419
  • 1
    if there's not enough space after the last word for the square, where do you want the square to appear? at the left margin of the next line, or flush right on the next line? – barbara beeton Jul 13 '16 at 00:47
  • In that case I would like to make it appear on the right on the next line. But actually it is not an urgent question anymore, because apparently my supervisor is happy with the standard position of the square in my thesis. ;) – Onil90 Jul 13 '16 at 06:50
  • Note that amsthm should be loaded after mathtools (see this question). Also, if you're loading mathtools there's no need to load amsmath since the former loads the latter. – Sandy G Feb 14 '24 at 04:19

1 Answers1

0

You can use the \addtotheoremprefoothook from thmtools to typeset \qedsymbol then temporarily disable it.

\documentclass{article}

\usepackage{amsthm,thmtools}

\declaretheorem{theorem}

\addtotheoremprefoothook[proof]{% \qedsymbol% \renewcommand{\qedsymbol}{}% }

\begin{document}

\begin{theorem} Theorem text \end{theorem}

\begin{proof} Proof text. \end{proof}

\end{document}

proof

mbert
  • 4,171