unicode-math icon indicating copy to clipboard operation
unicode-math copied to clipboard

Incompatibility with acmart

Open thirs opened this issue 7 years ago • 2 comments
trafficstars

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

  • [ X] Relevant for XeTeX
  • [ ] Relevant for LuaTeX
  • [ X] Issue tracker has been searched for similar issues?
  • [ ] Links to <tex.stackexchange.com> discussion if appropriate

Minimal example demonstrating the issue

\documentclass{acmart}

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

\begin{document}

\end{document}

Further details

thirs avatar Jun 10 '18 20:06 thirs

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}

davidcarlisle avatar Jun 10 '18 20:06 davidcarlisle

Hmm. Two comments/questions:

  • Perhaps unicode-math should check for existence before trying to define its own. If anything, probably better to overwrite than throw an error.
  • I should probably add \UndeclareNegation to handle this more flexibly.

wspr avatar Jun 11 '18 05:06 wspr