[XeTeX] Problem with mathspec and polyglossia
Andrew Moschou
andmos at gmail.com
Tue Feb 24 15:48:16 CET 2009
Hi Nikos,
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.
Hope this helps,
Andrew
2009/2/24 Nikos Platis <nplatis at freemail.gr>
> My purpose is to use mathspec with polyglossia, so I try the following:
>
> -------------------
> \documentclass{article}
> \usepackage{mathspec}
> \usepackage{polyglossia}
> \begin{document}
> hello
> \end{document}
> -------------------
>
> Unfortunately, I get the error message:
>
> etoolbox.sty:380:Command \expandonce already defined.
> \unexpanded\expandafter{#1}}
>
> 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.
> The solution I found is to \usepackage{etoolbox} before mathspec, but this
> should not be something that the user has to do.
> 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...
>
> Nikos Platis
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20090225/980e8807/attachment.html
More information about the XeTeX
mailing list