39

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}
  • 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 3 '12 at 2:48
33

You need to redefine \proofname:

\documentclass{amsbook}
\usepackage{amsthm}
\renewcommand*{\proofname}{Solution}
\begin{document}
\begin{proof}
This is a solution.
\end{proof}
\end{document}
  • 17
    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 3 '12 at 6:27
  • I was just going to ask that. lol – john Jul 3 '12 at 7:43
  • 1
    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 3 '12 at 13:05
  • 1
    For those writing French, the corresponding command is \addto\captionsfrench{\renewcommand\proofname{Preuve}}. – Gabriel Romon Sep 29 '17 at 8:13
  • 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 at 1:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.