On 2010-10-12 01:20:09 +1030, Gareth Hughes
<garzoh...@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
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex