我在地图上用不同的符号来表示不同的结构。我用这个答案在地图网站的截图上绘图。我定义了三种类型的符号:
\tikzstyle{ARA} = [blue,regular polygon,regular polygon sides=3, draw, shape border rotate=180,inner sep=0pt,minimum size=10pt,fill=blue]
\tikzstyle{wfluss} = [->,blue,thick]
\tikzstyle{probe} = [red,diamond,draw,inner sep=0pt,minimum size=10pt,fill=red]
答案1
如果您将这些 tikz 图片放在\savebox
es 中,它们可以安全地用于标题中。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes}
\tikzset{ARA/.style={blue,regular polygon,regular polygon sides=3, draw, shape border rotate=180,inner sep=0pt,minimum size=10pt,fill=blue},
probe/.style={red,diamond,draw,inner sep=0pt,minimum size=10pt,fill=red}}
\newsavebox{\nodeARA}
\newsavebox{\nodeprobe}
\sbox\nodeARA{\tikz{\node[ARA]{};}}
\sbox\nodeprobe{\tikz{\node[probe]{};}}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\node{\includegraphics{example-image-duck}};
\end{tikzpicture}
\caption{\usebox{\nodeARA} represents \dots while \usebox{\nodeprobe} stands for \dots.
}
\end{figure}
\end{document}