amsthm 与 \usepackage[french]{babel}

amsthm 与 \usepackage[french]{babel}

当我使用 时amsthm\usepackage[french]{babel}我得到ProofDémonstration。总的来说,这很好,但在我的特殊情况下,我需要它是Proof。你能帮我得到这个吗?

在此处输入图片描述

\documentclass[a4paper]{article}

\usepackage{amsthm}

\usepackage[utf8]{inputenc}     %% format d'encodage
\usepackage[french]{babel}      %% typographie française

\newtheorem{thm}{Theorem}

\begin{document}

\begin{thm}
This is a great theorem.
\end{thm}

\begin{proof}
This is a simple proof.
\end{proof}

\end{document}

答案1

您可以使用可选参数来proof提供所需的名称:

\documentclass[a4paper]{article}

\usepackage{amsthm}

\usepackage[utf8]{inputenc}     %% format d'encodage
\usepackage[french]{babel}      %% typographie française

\newtheorem{thm}{Theorem}

\begin{document}

\begin{thm}
This is a great theorem.
\end{thm}

\begin{proof}[Proof]
This is a simple proof.
\end{proof}

\end{document}

在此处输入图片描述

如果你需要更改名称全部proof您可以使用的环境

\addto\captionsfrench{\renewcommand\proofname{Proof}}

完整示例:

\documentclass[a4paper]{article}
\usepackage{amsthm}

\usepackage[utf8]{inputenc}     %% format d'encodage
\usepackage[french]{babel}      %% typographie française

\newtheorem{thm}{Theorem}
\addto\captionsfrench{\renewcommand\proofname{Proof}}

\begin{document}

\begin{thm}
This is a great theorem.
\end{thm}

\begin{proof}
This is a simple proof.
\end{proof}

\end{document}

相关内容