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 tried to use \uselanguage{Czech}\languagepath{Czech} as suggested in Babel (French) does not translate the theorem environment in Beamer class, but I still get "Theorem" instead of "Věta" for my theorem. How can I teach beamer the Czech words? And can I submit the language mutations to CTAN somehow to make the widely available?

MWE:

\documentclass{beamer}
\usepackage[czech]{babel}
\uselanguage{Czech}
\languagepath{Czech}
\usepackage[utf8]{inputenc}
\usetheme{Copenhagen}
\begin{document}
\begin{frame}
\begin{proof}
    Some text
\end{proof}
\begin{theorem}
    Some text
\end{theorem}
\end{frame}
\end{document}
share|improve this question

1 Answer 1

up vote 10 down vote accepted

There is no Czech dictionary provided along with the translator subpackage of Beamer, so you need to help it; the proof name is changed, because babel knows about \proofname.

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[czech]{babel}

\uselanguage{Czech}
\languagepath{Czech}

\usetheme{Copenhagen}

\deftranslation[to=Czech]{Theorem}{Věta}

\begin{document}
\begin{frame}
\begin{proof}
    Some text
\end{proof}
\begin{theorem}
    Some text
\end{theorem}
\end{frame}
\end{document}

enter image description here

I then copied translator-theorem-dictionary-English.dict to translator-theorem-dictionary-Czech.dict in the current directory and changed the relevant line, obtaining the desired result even after removing the \deftranslation line, because the file was read, as shown by

(./translator-theorem-dictionary-Czech.dict)

in the log file.

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.