LaTex/tikZ:如何从南2个节点到北1个节点绘制2个垂直箭头?

LaTex/tikZ:如何从南2个节点到北1个节点绘制2个垂直箭头?,latex,tikz,Latex,Tikz,如何从变量2和变量3的节点到变量1绘制垂直箭头 \documentclass[jou]{apa7} \usepackage{tikz} \usepackage{fixltx2e} \usetikzlibrary{shapes, shadows, arrows} \usetikzlibrary{positioning} \tikzset{mynode/.style={shape=rectangle, draw, align=center} } \begin{document} \begin{f

如何从变量2和变量3的节点到变量1绘制垂直箭头

\documentclass[jou]{apa7}
\usepackage{tikz}
\usepackage{fixltx2e}
\usetikzlibrary{shapes, shadows, arrows}
\usetikzlibrary{positioning}
\tikzset{mynode/.style={shape=rectangle, draw, align=center}
}

\begin{document}

\begin{figure*}
\begin{tikzpicture}
\node[mynode, text width=7cm,minimum height=1cm] (v1){Variable 1};
\node[mynode,above left= 2cm of v1, text width = 4cm, minimum height = 1cm, xshift=4cm](v2) {Variable 2};
\node[mynode,above right= 2cm of v1, text width=4cm, minimum height = 1cm, xshift=-4cm] (v3){Variable 3};

\draw[-latex] (v2.south) -- (v1.north);
\draw[-latex] (v3.south) -- (v1.north);
 
\end{tikzpicture}
\end{figure*}

\end{document}
使用上述代码输出:

期望输出:


使用
-|
将用水平段和垂直段替换对角线:

\documentclass[jou]{apa7}
\usepackage{tikz}
\usepackage{fixltx2e}
\usetikzlibrary{shapes, shadows, arrows}
\usetikzlibrary{positioning}
\tikzset{mynode/.style={shape=rectangle, draw, align=center}
}

\begin{document}

\begin{figure*}
\begin{tikzpicture}
\node[mynode, text width=7cm,minimum height=1cm] (v1){Variable 1};
\node[mynode,above left= 2cm of v1, text width = 4cm, minimum height = 1cm, xshift=4cm](v2) {Variable 2};
\node[mynode,above right= 2cm of v1, text width=4cm, minimum height = 1cm, xshift=-4cm] (v3){Variable 3};

\draw[-latex] (v2.south) -| ([xshift=-2cm]v1.north);
\draw[-latex] (v3.south) -| ([xshift=2cm]v1.north);
 
\end{tikzpicture}
\end{figure*}

\end{document}