我有这段代码,用来制作一个蓝色的球,里面有白色的数字,但是数字不同width
,我想让它们均匀,都具有相同的宽度,即最大的想要的。
\usepackage{wboiboites}
\newcommand*{\itemball}[1]{% bolas 3D
\footnotesize\protect\tikz[baseline=-3pt]%
\protect\node[scale=.7, circle, shade, ball
color=blue]{\color{white}\bf#1};}
\begin{document}
\begin{enumerate}[label=\itemball{\arabic*},leftmargin=0pt,itemindent=*]
\setcounter{\enumi}{7}
\item Some text numbered as 8.
\item Some text numbered as 9.
\item Some text numbered as 10.
\item Some text numbered as 11.
\item Some text numbered as 12.
\item Some text numbered as 13.
\end{enumerate}
\end{document}
我怎样才能做到这一点?
答案1
\documentclass{article}
\usepackage{tikz,enumitem}
\newcommand*{\itemball}[1]{% bolas 3D
\footnotesize\protect\tikz[baseline=-3pt]%
\protect\node[text width=2em,align=center,scale=.7, circle, shade, ball
color=blue]{\color{white}\bf#1};}
\begin{document}
\begin{enumerate}[start=7,label=\itemball{\arabic*},leftmargin=0pt,itemindent=*]
\item Some text numbered as 8.
\item Some text numbered as 9.
\item Some text numbered as 10.
\item Some text numbered as 11.
\item Some text numbered as 12.
\item Some text numbered as 13.
\end{enumerate}
\end{document}