我想定义这样的节点样式:
% Preamble: \usetikzlibrary{shapes.geometric}
entrada/.style={
trapezium, trapezium left angle=70, trapezium right angle=-70,
draw=some color, thick, fill=some color!20, text width=12em,
text centered, rounded corners, minimum height=2em
}
颜色不相关
答案1
查找节点形状的第一个地方是shapes
TikZ 手册中关于库的第 71 章。tape
这里第一个使用的形状与您的示例不太一样,但很相似。我在这里没有添加任何颜色,但您可以像任何其他节点一样添加fill
。
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{
shapes.geometric, % defines cylinder shape
shapes.symbols, % defines tape shape
shapes.arrows % defines single arrow style
}
\begin{document}
\begin{tikzpicture}[
A/.style={draw,
tape,
tape bend top=none,
minimum width=1.5cm, minimum height=1cm
},
B/.style={draw,
single arrow,
single arrow head extend=0,
single arrow tip angle=155,
shape border rotate=270,
minimum width=1.5cm, minimum height=1cm
},
C/.style={draw,
cylinder,
shape border rotate=90,
minimum width=1.5cm, minimum height=1cm
},
]
\node [A] {};
\node [B] at (3,0) {};
\node [C] at (6,0) {};
\end{tikzpicture}
\end{document}