latex3 / unicode-math

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

Incompatibility with acmart #469

Open thirs opened 6 years ago

thirs commented 6 years ago

Description

Unicode-math seems incompatible with acmart. Log message says:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "kernel/command-already-defined"
! 
! Control sequence \not= already defined.
! 
! See the LaTeX3 documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.3853 \NewNegationCommand { = }    { \neq   }

Check/indicate

Minimal example demonstrating the issue

\documentclass{acmart}

\usepackage{fontspec}
\usepackage{unicode-math}

\begin{document}

\end{document}

Further details

davidcarlisle commented 6 years ago

actually you just need newtxmath You can undefine the commands to let unicode-math define them

\documentclass{article}
\usepackage{newtxmath}
\expandafter\let\csname not=\endcsname\relax
\expandafter\let\csname not<\endcsname\relax
\expandafter\let\csname not>\endcsname\relax
\usepackage{fontspec}
\usepackage{unicode-math}

\begin{document}

\end{document}
wspr commented 6 years ago

Hmm. Two comments/questions: