问题描述
如何从变量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,xshift=-4cm] (v3){Variable 3};
\draw[-latex] (v2.south) -- (v1.north);
\draw[-latex] (v3.south) -- (v1.north);
\end{tikzpicture}
\end{figure*}
\end{document}
使用上面的代码输出:
所需的输出:
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)