I try to use XeLaTex with localisation to another language, in my case German.
But when I compile the following minimal code
\documentclass[a4paper]{scrartcl}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setdefaultlanguage{de}
\begin{document}
\begin{figure}
\centering
Test Test Test Test \TeX \XeTeX
\caption{Eine Abbildung}
\end{figure}
\end{document}
I get this error message:
Package polyglossia Warning: File gloss-de.ldf does not exist!
(polyglossia) I will nevertheless try to use hyphenation pattern
s for de. on input line 4.
Package polyglossia Warning: \setlocalhyphenmin useless for unknown language de
on input line 4.
Package polyglossia Warning: No hyphenation patterns were loaded for `De'
(polyglossia)
I will use \language=\l@nohyphenation instead on input line 4.
Nevertheless a pdf is produced though it has the wrong localisation.
The used command is xelatex -interaction=nonstopmode polyglossia_problem.tex
.
I use the MiKTeX distribution under Windows 7 64-bit.
What can I do to load the missing files? The latex
pendant with babel works on my machine.
Best Answer
polyglossia
is complaining becausede
is not the correct command, you need to issuegerman
instead. In this case, the code will compile with 0 errors.Some notes:
\
after\TeX
is there to preserve the space that comes afterwards.german
language has some options for thepolyglossia
package. For example,spelling
can beYou can check the Section 6.8 of the Manual for more options.
And here's the code