1

I'm a beginner with LaTeX but I couldn't find anything on this problem:

I have the following document:

\documentclass[a4paper,11pt]{article} % Default font size and paper size

\usepackage[german, french, english]{babel} % multi-language support
\selectlanguage{english}

\usepackage[utf8]{inputenc} % for unicode input characters
\usepackage[T1]{fontenc}

\begin{document}

\babeltags{de = german, fr = french}
\textbf{Hello \textde{Hallo}}

\end{document}

I installed all language packages necessary.
I then tried this using TexMaker along with TexLive and directly from the command-line and I'm always getting 'Undefined control sequence \babeltags'.

So I'm guessing that somehow babel is not loaded correctly, but it should be included with TexLive. So what could be wrong here ?

EDIT: to be more precise, selectlanguage{*} is working for me, but I would like to make my document multilingual as suggested here. So for that, I really need a shortcut for switching between languages.

  • That's a rather new command in babel, so is your system up-to-date? – Ulrike Fischer Mar 30 '15 at 15:03
  • that's a good suggestion, I didn't think this was a new feature. I just used the TexLive version coming with Ubuntu so that could be outdated. I'll update it and check again – Matt Ko Mar 30 '15 at 15:05
  • You don't need \selectlanguage{english}. The last language specified is selected by default. Better to specify the variant of English you want e.g. american or british or whatever. – cfr Mar 30 '15 at 15:08
  • The reason this is in there is because I would like to switch the default language from one place in the end. Just like described in the wikibooks article, I would like to have a single source document from which I can compile different language versions in order to have all formatting in a single place – Matt Ko Mar 30 '15 at 15:14
  • You seem to have an outdated version of babel. What TeX distribution and OS are you running? – egreg Mar 30 '15 at 15:26
3

\babeltagsis a rather new command in babel. Make sure that your system is up-to-date.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.