66

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
  • 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, 2012 at 2:48

1 Answer 1

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}
5
  • 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 3, 2012 at 6:27
  • I was just going to ask that. lol
    – john
    Jul 3, 2012 at 7: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}. Jul 3, 2012 at 13:05
  • 4
    For those writing French, the corresponding command is \addto\captionsfrench{\renewcommand\proofname{Preuve}}. Sep 29, 2017 at 8: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. Mar 27, 2019 at 1:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .