![tikz 节点的颜色不起作用](https://linux22.com/image/446708/tikz%20%E8%8A%82%E7%82%B9%E7%9A%84%E9%A2%9C%E8%89%B2%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我有以下图表,我的目标是将黑色标签变为橙色。在 Overleaf 中,这完全正常,文本为橙色,但当我插入完全相同的代码时,它显示如下图所示。
\tikzstyle{node_network}=[circle, draw, thin,fill=yellow!50, scale=0.8]
\tikzstyle{node_functional}=[rectangle, draw, thin,fill=orange!70, scale=0.8]
\tikzstyle{node_traffic}=[circle, draw, thin,fill=blue!70, scale=0.8]
\begin{tikzpicture}[auto, thick]
\node[text=orange,scale=0.6] (u_1) at (0.5,2.75) {$u_1$};
\node[text=orange,scale=0.6] (u_2) at (-0.8,0.5) {$u_2$};
\node[text=orange,scale=0.6] (u_3) at (1.8,0.5) {$u_3$};
\node[text=orange,scale=0.6] (f1) at (-2.0,2.5) {$f_1$};
\node[text=orange,scale=0.6] (f2) at (-1.4,1.95) {$f_2$};
\node[text=orange,scale=0.6] (f3) at (-0.5,0.95) {$f_3$};
\node[text=orange,scale=0.6] (f4) at (1.25,1.85) {$f_4$};
% Functional layer nodes
\foreach \place/\i in
{{(-3,2.0)/1},
{(-0.8,0.75)/2},
{(1.8,0.75)/3},
{(0.5,2.5)/4},
{(3.75,2.0)/5}}
\node[node_functional] (b\i) at \place {};
% Functional layer links
\path[thin] (b1) edge (b2);
\path[thick, orange] (b1) edge (b4) ;
\path[thick, orange] (b2) edge (b3);
\path[thin] (b3) edge (b4);
\path[thick, orange] (b3) edge (b5);
\path[thin] (b4) edge (b5);
\path[thick, orange] (b4) edge (b2);
\path[thin, dashed, orange!30] (f1) edge (b1);
\path[thin, dashed, orange!30] (f1) edge (b4);
\path[thin, dashed, orange!30] (f2) edge (b2);
\path[thin, dashed, orange!30] (f2) edge (b4);
\path[thin, dashed, orange!30] (f3) edge (b2);
\path[thin, dashed, orange!30] (f3) edge (b3);
\path[thin, dashed, orange!30] (f4) edge (b5);
\path[thin, dashed, orange!30] (f4) edge (b3);
\end{tikzpicture}
有人知道如何永久设置文本为特定颜色吗?