关于newtx宏包的问题
odlove opened this issue · comments
odlove commented
花了挺多时间搜这个问题的,应该算是找到解决方案了,这是网址:
https://ask.latexstudio.net/ask/article/129.html
下面的评论区给了解决方案“使用 \usepackage[nofontspec]{newtxtext} 来加载 newtxtext 宏包”
不过还有一个报错"data\cover.tex|22 error| Undefined control sequence."
查了一下似乎是cls文件标签的问题,我简单看了一下也没查出问题
chianjin commented
较好的方法是改用 unicode-math 宏包,使用同为 Times 风格的 otf 字体:TeX Gyre Termes 或者 XITS
\setmainfont{TeX Gyre Termes}
\usepackage{unicode-math} % 需要 unicode-math 宏包
\setmathfont{TeX Gyre Termes Math}
或者
\setmainfont{XITS}
\usepackage{unicode-math} % 需要 unicode-math 宏包
\setmathfont{XITS Math}