0

\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

  • 2
    Try loading ctex before newpxtext – mbert Oct 25 '22 at 19:00
  • 1
    You may also want to consider the circledtext package. It offers many options for customization. – mbert Oct 25 '22 at 20:33
  • Thanks! ctex before newpxtext and \documentclass{ctexart} both work. Another package is hyperref which also redefine \textcircled and it should be loaded before newpxtext – Firestar-Reimu Oct 26 '22 at 07:30
  • hyperref doesn't redefine \textcircled, it only adds a PU-variant. And if you load hyperref before newpttext, the later will destroy the command in the bookmarks. See a similar question about newtxtext: https://tex.stackexchange.com/a/659543/2388 – Ulrike Fischer Oct 26 '22 at 12:11

0 Answers0