CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
966 stars 124 forks source link

CTeX会影响newpxtext的textcircled显示效果 #641

Closed Firestar-Reimu closed 1 year ago

Firestar-Reimu commented 1 year ago

\textcircled in newpxtext do not work with ctex

in newpx documentation, it says:

enter image description here

if I use

\documentclass{article}
\usepackage{newpxtext}
\usepackage{ctex}
\begin{document}
\textcircled{X}\textcircled{2}
\end{document}

it is correct, but if I add \usepackage{ctex} and it will look like this:

enter image description here

Sophanatprime commented 1 year ago

先加载 ctex 再加载 newpxtext

Sophanatprime commented 1 year ago

原因是,ctexctexsize)加载 fix-cm.sty -> ts1enc.def。这个 ts1enc.def 里重新定义了大部分以 text 开头的命令:

image

从而 newpxtext 的定义失效了。

Firestar-Reimu commented 1 year ago

谢谢,发现先用ctex或者用ctexart都正常,但是用hyperref也会有问题,需要把hyperref也放在newpxtext前面