使用圆弧帽命令,发生宏包冲突,如何解决?

发布于 2021-11-15 10:30:16

%①如何解决冲突?②或者说不调用宏包yhmath,只调用newtxmath,它里面的圆弧帽命令是什么?
documentclass{ctexart}
usepackage{yhmath}%为了使用该宏包里的圆弧帽命令wideparen{}
usepackage{newtxtext}
usepackage{newtxmath}
begin{document}
半圆弧$\wideparen{CD}$所在平面,$M$是$\wideparen{CD}$
end{document}

查看更多

关注者
0
被浏览
1.6k
1 个回答
雾月
雾月 2021-11-15
这家伙很懒,什么也没写!

newtxmath 宏包应该没有 \wideparen 命令。

为了解决这一点,只要在 newtxmath 宏包加载前使用 \let\widering\relax 取消 \widering 的定义即可,因为 newtxmath 也定义了同样的命令。

\usepackage{yhmath}%为了使用该宏包里的圆弧帽命令wideparen{}
\let\widering\relax
\usepackage{newtxtext}
\usepackage{newtxmath}

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览