节点标签是否可以“继承”其父节点的颜色?更具体地说,我正在这样做:
\node[red, label = {[red]above:label}] {node};
但我希望能够做到这一点:
\node[red, label = above:label] {node};
以下是 MWE:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[red, label = above:label] at (-2, 0) {node};
\node[red, label = {[red]above:label}] at (2, 0) {node};
\end{tikzpicture}
\end{document}