在以下 MWE 中,证明环境的注释 [to be known] 使得“证明”一词消失,但定义、定理没有问题……
\documentclass{beamer}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usetheme{Madrid}
\begin{document}
\begin{frame}
\begin{definition}[don't forget it !]
this is a definition
\end{definition}
\begin{theorem}[very important !]
this is a theorem
\end{theorem}
\begin{proof}[to be known]
and this is the proof!
\end{proof}
\end{frame}
\end{document}
答案1
您可以重新定义证明环境:
\documentclass{beamer}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usetheme{Madrid}
\renewenvironment<>{proof}[1][\proofname]{%
\par
\def\insertproofname{Proof (#1)}%
\pushQED{\qed}
\usebeamertemplate{proof begin}#2}
{\popQED\usebeamertemplate{proof end}}
\newenvironment<>{emptyproof}[1][\proofname]{%
\par
\def\insertproofname{Proof}%
\pushQED{\qed}
\usebeamertemplate{proof begin}#2}
{\popQED\usebeamertemplate{proof end}}
\begin{document}
\begin{frame}
\begin{definition}[don't forget it !]
this is a definition
\end{definition}
\begin{theorem}[very important !]
this is a theorem
\end{theorem}
\begin{proof}[to be known]
and this is the proof!
\end{proof}
\begin{emptyproof}
and this is the proof!
\end{emptyproof}
\end{frame}
\end{document}