Latex中输入带圆圈的数字

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

CTAN官方文档

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值