LaTeX error "Unknown option 'germann'. Either you misspelled it or the language definition file germann.ldf was not found": cause and fix
babel got a language name for which it finds no definition file (.ldf). Either the name is not one babel knows, or the files for that language are not installed.
Why it happens
- The language name has a typo, for example
germann. - The name is not a
babelname.deutsch,deandEnglishwith a capital E are all unknown; the names arengerman,germanandenglish. - The language is not installed. In TeX Live each language is a separate package, and a small installation contains only some of them.
How to fix it
- Use the name from the
babeldocumentation:ngermanfor German in the current spelling,germanfor the spelling before 1996,english,british,american. - Install the language, in TeX Live for example with
tlmgr install babel-french. - With several languages, the last one in the list is the main language of the document:
\usepackage[english,ngerman]{babel}.
A document that produces the message
\documentclass{article}
\usepackage[germann]{babel}
\begin{document}
Ein kurzer Text.
\end{document}The corrected document
\documentclass{article}
\usepackage[ngerman]{babel}
\begin{document}
Ein kurzer Text.
\end{document}Both documents were compiled with pdfLaTeX from TeX Live 2023. The first produces the message, the second compiles without an error.
Finding the line in the editor
The editor lists every error and warning of a compile run with file and line. Select an entry and the cursor jumps to that line. See Error list with jump to the line.
Related pages
- Package
babel - Error Unknown option `number' for package `natbib'
- Error File `boktabs.sty' not found
- How-to Hyphenation in LaTeX