65

I want to change the word "Proof" into "Solution". Of course the following works.

\begin{proof}[Solution] \end{proof}

But it's quite cumbersome to add this additional [Solution] every time. Is there a way to make it automatic?

Edit: I'm using amsthm.

\documentclass{amsbook}
\usepackage{amsthm}
\begin{document}
\begin{proof}[Solution]
This is a solution.
\end{proof}
\end{document}
Werner
  • 603,163
john
  • 775
  • 1
    Hi John, Welcome to TeX.SE!. Could you provide a bit more detail, such as which package you're using to give the proof environment (presumably it's amsthm, but who knows?). Ideally, please provide a MWE :) – cmhughes Jul 03 '12 at 02:48

1 Answers1

52

You need to redefine \proofname:

\documentclass{amsbook}
\usepackage{amsthm}
\renewcommand*{\proofname}{Solution}
\begin{document}
\begin{proof}
This is a solution.
\end{proof}
\end{document}
  • 26
    One should note that \proofname is controlled by babel if the package is loaded, so something like \addto\languageXYZ{\renewcommand\proofname{ABC}} is needed in this case. – egreg Jul 03 '12 at 06:27
  • I was just going to ask that. lol – john Jul 03 '12 at 07:43
  • 2
    one should also note that amsbook incorporates (rather than loads -- there are subtle differences) amsthm, so it's not necessary to \usepackage{amsthm}. – barbara beeton Jul 03 '12 at 13:05
  • 4
    For those writing French, the corresponding command is \addto\captionsfrench{\renewcommand\proofname{Preuve}}. – Gabriel Romon Sep 29 '17 at 08:13
  • 4
    This answer is not suitable if we also want to use the original proof environment in the document. I thought this would work reasonably well \newenvironment{solution} {\begin{proof}[Solution]} {\end{proof}} but the "Solution" word sometimes doesn't appear in the beginning of the environment. – Máté Wierdl Mar 27 '19 at 01:04