手册里有段代码:
\begin{tikzpicture}
[Karl's grid/.style ={help lines,color=#1!50},Karl's grid/.default=b...
手册里有段代码:
\begin{tikzpicture}
[Karl's grid/.style ={help lines,color=#1!50},Karl's grid/.default=blue]
\draw[Karl's grid] (0,0) grid (1.5,2);
\draw[Karl's grid=red] (2,0) grid (3.5,2);
\end{tikzpicture}
这样编译会出错
但把[Karl's grid/.style ={help lines,color=#1!50},Karl's grid/.default=blue]放到前面进行声明
\tikzset{Karl's grid/.style ={help lines,color=#1!50},Karl's grid/.default=blue}
后面编译就可以通过。
问题:
1)手册里面的代码为啥编译不通过;
2)这两种方案有啥区别
一周热门 更多>