如何编辑“begin{proof}”

如何编辑“begin{proof}”

如何编辑begin{proof}以显示“Demonstração”而不是“Proof.”?我不想使用,newtheorem{dem}{Demonstração}因为最后我想要黑色方块。

答案1

\proofname宏(当然,最好使用babel,正如下一个答案所建议的那样):

\renewcommand{\proofname}{Demonstração}

答案2

只要您使用babelwithamsthm及其proof环境,您就不需要做任何事情。

\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}

在此处输入图片描述

类似地(但更复杂)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}

相关内容