latex3 / unicode-math

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

\div produces different in physics and unicode-math #595

Open Firestar-Reimu opened 1 year ago

Firestar-Reimu commented 1 year ago

I am not reporting this as a BUG but an ENHANCEMENT, as I do not use \div for divergence (I prefer \div for division). But it is needed to give an option for users who need \div for divergence.

I found that \div in physics is moved to \nabla\cdot but with unicode-math it is changed back to amsmath ÷

\documentclass[a4paper]{article}

\usepackage{unicode-math} % compare if or not I comment this line
\usepackage{physics}

\begin{document}
    \[
        \div F
    \]
\end{document}

This is when I found that I loaded physics but \div does not change

Same issue for \Re and \Im, where amsmath and unicode math use \mathfrak{R} and \mathfrak{I} but physics use \mathrm{Re} and \mathrm{Im}

Firestar-Reimu commented 1 year ago

The same problem is at https://github.com/wspr/unicode-math/issues/477 and https://github.com/wspr/unicode-math/issues/575