我想用以下项目图绘制蒂克兹。
我的尝试如下:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0, 0) rectangle (1.5, 0.5) node (R1) [midway] {ASSESS};
\draw rectangle (4.5, 0.5) node (right of = R1, R2) [midway] {ENROLL};
\end{tikzpicture}
\end{document}
答案1
您可以像这样使用 tikzchains
和库:shapes
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes}
\usetikzlibrary{chains}
\begin{document}
\begin{tikzpicture}[
start chain,
node distance=0mm,
every node/.style={
signal,
text=black,
draw=white,
minimum height=1cm,
ultra thick,
signal to=east,
signal from=west
}
]
\node [on chain,shade,left color=blue!50,right color=cyan,signal from=none,minimum width=4cm] {ASSESS};
\node [on chain,shade,left color=yellow,right color=green] {ENROLL};
\end{tikzpicture}
\end{document}
或者您可以使用 smartdiagram 包:
\documentclass[border=10pt]{standalone}
\usepackage{smartdiagram}
\smartdiagramset{sequence item border color=white}
\begin{document}
\smartdiagram[sequence diagram]{ASSESS,ENROLL}
\end{document}