答案1
有一个包可以实现这一点:circledsteps
。
\documentclass{article}
\usepackage{xcolor}
\usepackage{circledsteps}
\newcommand\myCircled[2][]{\ifmmode
\Circled[fill color=black,inner color=white,#1]{\mathsf{#2}}
\else
\Circled[fill color=black,inner color=white,#1]{\sffamily#2}
\fi
}
\begin{document}
\scriptsize A \myCircled{B} C
\footnotesize A \myCircled{B} C
\normalsize A \myCircled{B} C
\large A \myCircled{B} C
\Large A \myCircled{B} C
${\scriptstyle A \myCircled{B} C}$
$A \myCircled{B} C$
$A \myCircled{B} C_{{A \myCircled{B} C}_{A \myCircled{B} C}}$
\end{document}
答案2
答案3
使用XeTeX和LuaTeX,您可以直接输入