Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
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
add comment

1 Answer

up vote 11 down vote accepted

You need to redefine \proofname:

\documentclass{amsbook}
\usepackage{amsthm}
\renewcommand*{\proofname}{Solution}
\begin{document}
\begin{proof}
This is a solution.
\end{proof}
\end{document}
share|improve this answer
    
Thanks! That's exactly what I need. –  john Jul 3 '12 at 2:55
3  
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
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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