[XeTeX] Bidi clash with KOMA-Script environment
Gareth Hughes
garzohugo at gmail.com
Sun Feb 8 09:33:28 CET 2009
I've just stumbled across what looks like a clash between bidi.sty and
the captionbeside environment in KOMA-Script. I use polyglossia.sty,
which causes no problems until I call a right-to-left script. When this
happens XeLaTeX stops with an error pointing to the first occurrence of
the captionbeside environment:
> Runaway argument?
> {\capfont \@hangfrom {\scr at smashdp {\strut \ignorespaces \@firstofone \ETC.
> ! Paragraph ended before \@ensure at dir was complete.
> <to be read again>
> \par
> l.10 \end{captionbeside}
XeLaTeX has absolutely no problem if all these environments are removed,
or if bidi.sty is not loaded. Any thoughts or comments?
Minimal example below.
Gareth.
\documentclass{scrartcl}
\usepackage{xltxtra, polyglossia}
\setmainlanguage{english}
\setotherlanguage{syriac}
\newfontfamily\syriacfont[Script=Syriac]{Serto Malankara}
\begin{document}
\begin{figure}
\begin{captionbeside}
{Caption beside}
\end{captionbeside}
\end{figure}
\begin{syriac}
ܫܠܡܐ
\end{syriac}
\end{document}
--
Gareth Hughes
Department of Eastern Christianity
Oriental Institute
Pusey Lane
Oxford
OX1 2LE
+44 (0)1865 610227
More information about the XeTeX
mailing list