|
kuing
发表于 2023-7-24 14:23
补上 \verb 后效果就和手册上一样。
- \documentclass[tikz]{standalone}
- \begin{document}
- \usetikzlibrary {arrows.meta}
- \begin{tikzpicture}
- \node (shape) at (0,2) [draw] {\verb|class Shape|};
- \node (rect) at (-2,0) [draw] {\verb|class Rectangle|};
- \node (circle) at (2,0) [draw] {\verb|class Circle|};
- \node (ellipse) at (6,0) [draw] {\verb|class Ellipse|};
- \draw (node cs:name=circle,anchor=north) |- (0,1);
- \draw (node cs:name=ellipse,anchor=north) |- (0,1);
- \draw [arrows = -{Triangle[open, angle=60:3mm]}]
- (node cs:name=rect,anchor=north)
- |- (0,1) -| (node cs:name=shape,anchor=south);
- \end{tikzpicture}
- \end{document}
复制代码 |
|