用 latex 绘制特殊箭头

用 latex 绘制特殊箭头

我搜索了使用 tikz 绘制下图的简单方法,但没找到。有人能帮我吗?

在此处输入图片描述

答案1

人们要做的就是在这个站点内进行搜索...

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.markings,arrows.meta}
\begin{document}
\begin{tikzpicture}
% from https://tex.stackexchange.com/questions/276565/positioning-arrowheads-at-beginning-and-end-of-double-line-in-tikz
\node[draw, minimum width=2cm, minimum height=1cm] at (0,0) (A) {A}; 
\node[draw, minimum width=2cm, minimum height=1cm] at (4,0) (C) {C}; 
\draw[double distance=15, thick,
        postaction={decorate, decoration={markings, mark=at position 0 with {\arrow[xshift=5mm]{Straight Barb[reversed,length=2pt 0.7]}}}},
        postaction={decorate, decoration={markings, mark=at position 1 with {\arrow[xshift=7mm]{Straight Barb[length=2pt 0.7]}}}}
    ] ([xshift=1em] A.east) -- node {B} ([xshift=-1em] C.west);
\end{tikzpicture}
\end{document}

在此处输入图片描述

或者

\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.arrows}
\begin{document}
\begin{tikzpicture}
% from https://tex.stackexchange.com/questions/276565/positioning-arrowheads-at-beginning-and-end-of-double-line-in-tikz
\node[draw, minimum width=2cm, minimum height=1cm] at (0,0) (A) {A}; 
\node[draw, minimum width=2cm, minimum height=1cm] at (6,0) (C) {C}; 
\node[double arrow,draw, text width=3.2cm,align=center] at (3,0) (B) {B};
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容