0

How to edit the begin{proof} to show "Demonstração" instead of "Proof."? I don't want use newtheorem{dem}{Demonstração} because I want the blacksquare in the end.

2
  • 1
    did you try \renewcommand*{\proofname}{Demonstração}
    – touhami
    Commented Jun 16, 2016 at 16:13
  • are you really using the package proof?
    – touhami
    Commented Jun 16, 2016 at 16:16

2 Answers 2

2

There is \proofname macro (of course, it is better to use babel, as the next answer suggests):

\renewcommand{\proofname}{Demonstração}
1
  • You are right, of course
    – Boris
    Commented Jun 16, 2016 at 16:36
4

You have to do nothing so long as you use babel with amsthm and its proof environment.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % recommended
\usepackage[portuges]{babel} % or brazil

\usepackage{amsthm}

\begin{document}

\begin{proof}
Exercício para o leitor.
\end{proof}

\end{document}

enter image description here

Similarly (but more complicated) with ntheorem:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % recommended
\usepackage[portuges]{babel} % or brazil

\usepackage[thmmarks]{ntheorem}
\usepackage{amssymb}

\theoremheaderfont{\itshape}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\blacksquare}}
\newtheorem*{proof}{\protect\proofname.}

\begin{document}

\begin{proof}
Exercício para o leitor.
\end{proof}

\end{document}

You must log in to answer this question.

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