TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the beamer class, with the following preamble:

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{ae,aecompl,aeguill}
\usepackage{amsthm, amsmath, amsfonts}

\usetheme{Luebeck}
\usefonttheme{professionalfonts}

When I use the proof environment, the word Preuve appears in the document. This is the desired behaviour.

\begin{proof}
    ...
\end{proof}

Conversely, the theorem environment produces the header Theorem, which is not wanted.

\begin{theorem}
    ...
\end{theorem}

What did I do wrong?

share|improve this question
    
The beamer class alreads loads the packages amsthm, amsmath and amsfonts. Further, afaik babel defines \proofname to be D\'emonstration, though it can easily be changed. – Stefan Kottwitz Feb 26 '11 at 13:21
    
Easiest solution: \documentclass[french]{beamer}. The beamer class uses the translator package for translating and it will pick up the global option and translate to French as expected. – clemens Sep 21 '15 at 10:37
up vote 10 down vote accepted

The beamer class uses the translator package for translation. Just specify the language to be used:

\uselanguage{French}
\languagepath{French}

Here's a complete minimal working example:

\documentclass{beamer}
\usepackage[french]{babel}
\uselanguage{French}
\languagepath{French}
\usetheme{Copenhagen}
\begin{document}
\begin{frame}
\begin{proof}
    Some text
\end{proof}
\begin{theorem}
    Some text
\end{theorem}
\end{frame}
\end{document}

enter image description here

share|improve this answer
    
Thanks, it's perfect! – CFP Feb 26 '11 at 14:10
    
It's even easier just to give the language as global option \documentclass[french]{beamer}. translator will pick it up and translate to French as expected. – clemens Sep 21 '15 at 10:35

as far as I know, the amsthm package does not attempt to translate its theorem names. It's probably easiest to simply declare a new theorem environment with the \newtheorem command. On this note, it might also be worthwhile to check out the ntheorem package. It's quite similar to amsthm but newer and offers a few more formating options.

Hope that helps.

share|improve this answer
    
The solution I came up with for this involves a command called \@if@EN@else@DA using babel's \iflanguage in my \newtheorem commands. It's not in any way robust - in fact it's an ugly hack - but it does work – kahen Sep 15 '11 at 10:52

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.