[XeTeX] polyglossia bug?
Ulrike Fischer
news3 at nililand.de
Tue Dec 15 15:21:55 CET 2009
The following document gives with polyglossia.sty 2009/11/20
v1.1.0 this error:
! Extra }, or forgotten \endgroup.
\@begin at tempboxa ...begingroup #2\color at endgroup }
\def \width {\wd
\@tempbox...
l.28 \newpage
The error disappeasr if I remove one level of braces around
\protect\@@ensure at maindir{#3} from the \@markright definition.
\listfiles
\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\lhead{\leftmark,\rightmark}
\usepackage
{polyglossia}
\setmainlanguage[spelling=new, latesthyphen=true]{german}
\begin{document}
\makeatletter
%changed definition (one level of braces less)
% \def\@markright#1#2#3{\@temptokena{\protect\@@ensure at maindir{#1}}%
% \unrestored at protected@xdef\@themark{{\the\@temptokena}%
% {\protect\@@ensure at maindir{#3}}}}
\chapter{A}
\section{a}
Dies ist ein Test.
\newpage
\section{b}
Dies ist ein Test.
\newpage
\section{c}
\end{document}
--
Ulrike Fischer
More information about the XeTeX
mailing list