[XeTeX] New environment fails in float
Will Robertson
wspr81 at gmail.com
Wed Oct 13 01:50:21 CEST 2010
On 2010-10-12 01:20:09 +1030, Gareth Hughes
<garzohugo at gmail.com> said:
> I'm having problems with an environment definition. Using the xparse and
> etoolbox packages, I have created the environment syriacpoem in my .sty
> file.
Hi Gareth,
This appears to be a bug with nested environments in xparse. I've
reported the bug and hopefully a fix will be forthcoming.
I'm not aware of an immediate workaround, I'm afraid. Perhaps for now
you could define the example environment as a command and that might
work instead? E.g., (untested)
\newsavebox\mysavebox
\newcommand\example[2]{%
\begin{figure}[h]\centering
\savebox\mysavebox{\parbox{#1}{#2}}%
\ovalbox{\usebox\mysavebox}%
\end{figure}
}
...
\example{\linewidth}{%
\begin{syriacpoem}
...
}
Hope this helps,
Will
More information about the XeTeX
mailing list