2

I am writing a Tex document in German so I am trying to use

\usepackage[ngerman]{babel}

unfortunately, only \usepackage[english]{babel} seems to be working on my system. I wrote a file

\documentclass[11pt,a4paper]{article}
\usepackage[< language >]{babel}
\begin{document}
\end{document}

which only compiles if < language > = english. For any other I get a Package babel error:You haven't specified a language option .... I've tried spanish, swedish, german, and ngerman. Everytime I change < language > I delete the aux files before compiling.

What am I missing?

  • 2
    Are the corresponding packages installed? – Bernard Jun 18 '16 at 17:19
  • how do I check that? I use Kile on Debian... – scjorge Jun 18 '16 at 17:20
  • 1
    You should have a /texmf/tex/latex/babel-german directory in your distribution with some .ldf files (german.ldf, ngerman.ldf, &c.). – Bernard Jun 18 '16 at 17:27
  • 1
    sudo apt-get install texlive-lang-german and for some others sudo apt-get install texlive-lang-european – user2478 Jun 18 '16 at 18:09
  • 1
    In such a case you have to upgrade your texlive installation. Which is, of course, not a big deal. use sudo apt-get install texlive-full afetr deleteing your current version. – user2478 Jun 18 '16 at 18:59
2

Indeed, I happen to only have the English-babel-package installed on my system.

My solution was to install the package texlive-lang-german. Since I had some problem with my linux-dependencies, I did this with the command sudo aptitude install texlive-lang-german and chose one of the suggested solutions.

Another possibility would be sudo apt-get install texlive-full as @Herbert suggested on a comment.
I did this too, but after the aptitude-workaround, so I am unsure if this alone would have solved my problem.

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.