Today I discovered a problem with the polyglossia
package and the g-brief2
class. I hope someone can help me to fix it. :)
Here is my polyglossia
MWE (polyg.tex
):
\documentclass[a4paper,11pt]{g-brief2}
\usepackage
{%%
fontspec,
polyglossia,
lmodern,
relsize
}
\setmainlanguage[spelling=new,babelshorthands=true]{german}
\Name {My Name}
\Unterschrift {My Name}
\Betreff {Subject}
\Datum {\today}
\Anrede {Dear,}
\Gruss {Regards,}{0.5cm}
\begin{document}
\begin{g-brief}
bla bla bla
\end{g-brief}
\end{document}
The log for compiling (xelatex polyg.tex
) contains the following message:
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.18 ^^I\begin{document}
So, where is the problem? – Best regards and thanks for your assistance!
g-brief2
class forces the loading of theinputenc
package, and since this package cannot be used with either XeLaTeX or LuaLaTeX, you can't use the class with these engines. The class also forces loading ofbabel
which isn't a good idea if you are also loadingpolyglossia
.