Tikz初学者在这里。我正在尝试内嵌一些文本。 \ textcircled对我来说是多位数的数字,所以我在Stackoverflow上找到了一条命令(前一阵子,所以没有链接功劳,但是谢谢)。这是代码
\begin{tikzpicture}
%works
\node[draw,anchor=north west,fill=white,text width=4.4in,
rounded corners=0.05in,
line width=0.03in]{ This works like i expect };
\end{tikzpicture}\\
\begin{tikzpicture}
\newcommand\encircle[1]{\tikz[baseline=(X.base)]{ \node (X) %
[draw, shape=circle, inner sep=0] {#1}};}
%works
\encircle{16}
%explodes to box width
\node[draw,anchor=north west,fill=white,text width=4.4in,
rounded corners=0.05in,line width=0.03in]
{ \encircle{16} despite things after \hfill };
\end{tikzpicture}\\
这就是发生的事情:
谢谢!