latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
243 stars 28 forks source link

conflict with mathspec in new version Command '\setmathfont' already defined! #436

Closed sidispa closed 6 years ago

sidispa commented 6 years ago

Description

new version 08k gives error while using mathspec package Command '\setmathfont' already defined!

Everything was working fine with older version 0.8.d

Check/indicate

\documentclass{article} \RequirePackage{mathspec} \RequirePackage{unicode-math} % Unicode maths for Xetex

\begin{document}

unicode-math issue with version 0.8k

Works OK with older 0.8d

%................................................. %. LaTeX info: "xparse/define-command" %. %. Defining command \unimathsetup with sig. 'm' on line 264. %................................................. % % %!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! %! %! LaTeX error: "xparse/command-already-defined" %! %! Command '\setmathfont' already defined! %! %! See the LaTeX3 documentation for further information. %! %! For immediate help type H . %!...............................................
% %l.268 } % %|''''''''''''''''''''''''''''''''''''''''''''''' %| You have used \NewDocumentCommand with a command that already has a %| definition. %| The existing definition of '\setmathfont' will not be altered. %|..............................................

\end{document}

eg9 commented 6 years ago

There's nothing in the documentation of unicode-math that says the package is compatible with mathspec. It isn't.

wspr commented 6 years ago

I’ve added a note to the documentation to this effect.

I didn’t think there was much desire to load the two packages together; you should be able to achieve most of what you’re after in unicode-math alone.