Latex中输入带圆圈的数字
1. 使用tikz包定义\circled{}命令
% TikZ solution
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1.2pt] (char) {#1};}}
% 定义该命令后,即可使用:
\circled{1}\circled{2}
2. 使用circledsteps包提供的\Circled{}命令
\usepackage{circledsteps}
\begin{document}
This is normal text \Circled{1} is on the baseline, \CircledTop{2} is on top.
\par\bigskip
This is more evident if you have descendent, like p:\Circled{p} and \CircledTop{p}.
\par\bigskip
For big horizontal things it becomes oval: \Circled{200} or \CircledTop{199}.
\par\bigskip
Inside \texttt{tikz}
\begin{tikzpicture}[scale=0.8, rotate=30, text width=3cm, transform shape]
\node [draw,color=green!50!black]{text \Circled{1}};
\end{tikzpicture}
\par\bigskip
\tikzset{/csteps/inner ysep=10pt}
\tikzset{/csteps/inner xsep=10pt}
More space: \Circled{1} \Circled{2} \Circled{p} \Circled{200} \Circled{199}.
\end{document}
1 ◯ \textcircled{1} 1◯