Tikz 流程图不寻常的箭头

Tikz 流程图不寻常的箭头

我使用tikzpicture环境生成了下图。我对最左边生成的箭头不满意,箭头从框指向${\bf{Spectral Curve}}$${\bf{Quantum curve}}$反之亦然。我在下面给出了我的代码。如果可以提出一些修改建议,那将会很有帮助。

在此处输入图片描述

\begin{tikzpicture}
[block/.style={rounded corners, minimum width=3cm, minimum height=2cm,draw}]
\label{Qflow}
\node[block] (1) {spectral curve\\ $$ A(x,y)=0$$};
\node[block,  right=-.5 and 2 of 1] (3) {correlation differential $\omega_{g,n}$};
\node[block,  right=-.5 and 2 of 3] (5) {Free Energy};
\node[block, below=of 5] (6) {Partition Function};
\node[block, left=-.5 and 2 of 6] (4) {Schr\"{o}dinger equation};
\node[block, left=-.5 and 2 of 4] (2) {Quantum curve};

\begin{scope}[->, shorten >=1mm, shorten <=1mm]

\draw (1) to[out=0,in=180] (3);
\draw (3) to[out=0,in=180] (5);
\draw (5) -- (6);
\draw (2) -- (1);
\draw (1) to[out=180,in=180] (2);


\draw (4) to[out=180,in=0] (2);
\draw (6) to[out=180,in=0] (4);

\end{scope}
\end{tikzpicture}

答案1

可能您对以下某个解决方案更满意:

在此处输入图片描述

\documentclass{article}
\usepackage[margin=1cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

\begin{tikzpicture}
[block/.style={rounded corners, minimum width=3cm, minimum height=2cm,draw}]
\label{Qflow}
\node[block] (1) {spectral curve $A(x,y)=0$};
\node[block,  right=-.5 and 2 of 1] (3) {correlation differential $\omega_{g,n}$};
\node[block,  right=-.5 and 2 of 3] (5) {Free Energy};
\node[block, below=of 5] (6) {Partition Function};
\node[block, below=of 3] (4) {Schr\"{o}dinger equation};
\node[block, below=of 1] (2) {Quantum curve};

\begin{scope}[->, shorten >=1mm, shorten <=1mm]

\draw (1) -- (3);
\draw (3) -- (5);
\draw (5) -- (6);
\draw (2) -- (1);
\draw[transform canvas={xshift=1em}] (1) -- (2);
\draw (4) -- (2);
\draw (6) -- (4);

\end{scope}
\end{tikzpicture}

\bigskip

\begin{tikzpicture}
[block/.style={rounded corners, minimum width=3cm, minimum height=2cm, text width=2cm, align=center,draw}]
\label{Qflow}
\node[block] (1) {spectral curve $A(x,y)=0$};
\node[block,  right=-.5 and 2 of 1] (3) {correlation differential $\omega_{g,n}$};
\node[block,  right=-.5 and 2 of 3] (5) {Free Energy};
\node[block, below=of 5] (6) {Partition Function};
\node[block, below=of 3] (4) {Schr\"{o}dinger equation};
\node[block, below=of 1] (2) {Quantum curve};

\begin{scope}[->, shorten >=1mm, shorten <=1mm]

\draw (1) -- (3);
\draw (3) -- (5);
\draw (5) -- (6);
\draw[transform canvas={xshift=-0.5em}] (2) -- (1);
\draw[transform canvas={xshift=0.5em}] (1) -- (2);
\draw (4) -- (2);
\draw (6) -- (4);

\end{scope}
\end{tikzpicture}


\bigskip

\begin{tikzpicture}
[block/.style={rounded corners, minimum width=3cm, minimum height=2cm, text width=2cm, align=center,draw}]
\label{Qflow}
\node[block] (1) {spectral curve $A(x,y)=0$};
\node[block,  right= of 1] (3) {correlation differential $\omega_{g,n}$};
\node[block,  right= of 3] (5) {Free Energy};
\node[block, below=of 5] (6) {Partition Function};
\node[block, below=of 3] (4) {Schr\"{o}dinger equation};
\node[block, below=of 1] (2) {Quantum curve};

\begin{scope}[->, shorten >=1mm, shorten <=1mm]

\draw (1) -- (3);
\draw (3) -- (5);
\draw (5) -- (6);
\draw (2) -- (1);
\draw (1) to[out=180,in=180] (2);
\draw (4) -- (2);
\draw (6) -- (4);

\end{scope}
\end{tikzpicture}

\end{document}

相关内容