Hi Nikos,<br><br>I already am aware of this problem and I know it needs to be fixed (I imagine by my, I'm sure it's a mathspec issue) but I haven't had the time to look into it. The problem comes as polyglossia requires etoolbox, and when this is loaded, there is an attempt to define \etoolbox with \newcommand, but mathspec already defined it. A solution might be to have mathspec require etoolbox, instead of providing the command itself. For now, you can put \usepackage{etoolbox} before \usepackage{mathspec}, as you've already found.<br>
<br>Hope this helps,<br>Andrew<br><br><br><br><div class="gmail_quote">2009/2/24 Nikos Platis <span dir="ltr"><<a href="mailto:nplatis@freemail.gr">nplatis@freemail.gr</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My purpose is to use mathspec with polyglossia, so I try the following:<br><br>-------------------<br>\documentclass{article}<br>\usepackage{mathspec}<br>\usepackage{polyglossia}<br>\begin{document}<br> hello<br>\end{document}<br>
-------------------<br><br>Unfortunately, I get the error message: <br><br>etoolbox.sty:380:Command \expandonce already defined. \unexpanded\expandafter{#1}}<br><br>mathspec loads fontspec, so mathspec can't (easily) be loaded after polyglossia. If only fontspec (and not mathspec) is used, then the above compiles correctly.<br>
The solution I found is to \usepackage{etoolbox} before mathspec, but this should not be something that the user has to do.<br>The problem clearly is in the cooperation of mathspec and polyglossia, but I can't tell whose fault it is. I understand that mathspec is still experimental, but such incompatibilities should not exist...<br>
<font color="#888888">
<br>Nikos Platis<br>
</font><br>_______________________________________________<br>
XeTeX mailing list<br>
<a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
<a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
<br></blockquote></div><br>