Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm Malay user. I want to rename the theorem tag in Beamer. Does anyone know how to do it? When the document class is article or book, I can simply modify the preamble as follows:

\newtheorem{theorem}{Teorem}
\newtheorem{lemma}[theorem]{Lema}
\newtheorem{corollary}[theorem]{Korolari}
\newenvironment{proof}[1][Bukti]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}

However, the above things does not work in Beamer. So, does anyone know how to do it?

share|improve this question
1  
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). –  Alan Munn Dec 15 '11 at 15:26

2 Answers 2

beamer uses translator to translate environment names and some other words. It uses some .dict files which you can translate to your language and start to use. Look at manual's section Translating strings. Here you have a little example.

\documentclass{beamer}

\uselanguage{spanish}
\languagepath{spanish}
\deftranslation[to=spanish]{Theorem}{Teorema}
\deftranslation[to=spanish]{theorem}{teorema}

\begin{document}
\begin{frame}
\begin{theorem}
I will translate \structure{\translate[to=spanish]{theorem}} but not theorem
\end{theorem}
\end{frame}
\end{document}

enter image description here

Another option would be to use \begin{block}{Korolari} ... \end{block}.

share|improve this answer
    
Great answer, thank you! –  Hendrik Vogt Feb 8 '13 at 17:19

beamer already provides theorem environments: theorem, corollary, definition, definitions, fact, example, examples, and lemma. You can disable them by a class option, then you can define your own environments without those name conflicts. For proof use \renewenvironment, as it's also predefined.

So you could use beamer environments if you would like to benefit from beamer features, using beamer's syntax, or define your own with numbering and formatting as you like.

\documentclass[notheorems]{beamer}
\newtheorem{theorem}{Teorem}
\newtheorem{lemma}[theorem]{Lema}
\newtheorem{corollary}[theorem]{Korolari}
\renewenvironment{proof}[1][Bukti]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
share|improve this answer

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.