LaTeX 计数器序号圆圈包围阿拉伯数字
在 LaTeX 中,可以使用 \circled 命令将数字放在圆圈中。下面是一个示例代码,展示了如何使用计数器和圆圈包围的阿拉伯数字:
\documentclass{article}
\newcounter{mycounter}
\renewcommand{\themycounter}{\textcircled{\arabic{mycounter}}}
\begin{document}
\begin{enumerate}
\item 第一项
\item 第二项
\item 第三项
\item 第四项
\end{enumerate}
\setcounter{mycounter}{4}
\begin{enumerate}
\item[\themycounter] 第五项
\item[\themycounter] 第六项
\end{enumerate}
\end{document}
在这个示例中,我们定义了一个名为 mycounter 的计数器,并将其格式化为在圆圈中显示。通过使用 \themycounter 命令,可以在计数器的位置使用圆圈包围的阿拉伯数字。在 enumerate 环境中,可以使用 [] 来手动设置项目标签,从而使用我们定义的计数器格式。
原文地址: http://www.cveoy.top/t/topic/qgmo 著作权归作者所有。请勿转载和采集!