reutenauer / polyglossia

An alternative to Babel for XeLaTeX and LuaLaTeX
http://www.ctan.org/pkg/polyglossia
MIT License
189 stars 51 forks source link

\textgerman{} gives errors. #10

Closed LegolasV closed 12 years ago

LegolasV commented 12 years ago

This example: \documentclass{scrartcl}

\usepackage{polyglossia}

\setdefaultlanguage{english}
\setotherlanguage{german}

\begin{document}
    \textgerman{Hallo.}
\end{document}

Results in the following error: ! Missing number, treated as zero.

\l@german l.11 \textgerman{Hallo.} ``` ? ```
eg9 commented 12 years ago

I believe that you have a bad installation. What does the log file say initially, where all the loaded languages are displayed? Mine says

LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.
LegolasV commented 12 years ago

I've done a complete check of my installation, which indeed seems to fix it. Apparently something went wrong in my hyphenation patterns.

Thanks for the help.

reutenauer commented 12 years ago

Hi Legolas, I tried to reproduce the problem, and was unable to, so I didn't know what to say :-) Glad it's fixed for you!