使 TikZ 矩阵之间的箭头大小相同

使 TikZ 矩阵之间的箭头大小相同

以下是我正在处理的 MWE:

\begin{tikzpicture}
\matrix (m) [matrix of math nodes,
         row sep=2mm,]
{
   &\left(l_{P,P}/v_{[2]P}\right) & = & (P) & + & (P) & - & (2P) & - & 
(\mathcal{O})     \\
   &\left(l_{[2]P,P}/v_{[3]P}\right) & = & (P) & + & ([2]P) & - & ([3]P) & - 
&(\mathcal{O})         \\
   &\left(l_{[3]P,P}/v_{[4]P}\right) & = & (P) & + & ([3]P) & - & ([4]P) & - & (\mathcal{O})         \\
   &\vdots \\
   &\left(l_{[r-3]P,P}/v_{[r-2]P}\right) & = & (P) & + & ([r-3]P) & - & ([r-2]P) & - &(\mathcal{O})         \\
   + & \left(l_{[r-2]P,P}\right) & = & (P) & + & ([r-2]P) & + & (P) & - & 3(\mathcal{O})\\
   \hline \\
   & (f_{r,P}) & = & r(P) & & & & & - & r(\mathcal{O}) \\
};
\draw[thin, <->] (m-1-8) -- (m-2-6);
\draw[thin, <->] (m-2-8) -- (m-3-6);
\draw[thin, <->] (m-5-8) -- (m-6-6);
\end{tikzpicture}

这得出

在此处输入图片描述

有没有建议的方法让箭头看起来更好?我认为让它们具有相同的大小是最好的,但如果有其他想法,我会接受的?

答案1

这是一个建议。

在此处输入图片描述

\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{matrix}

\begin{document}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,
         row sep=2mm,]
{
   &\left(l_{P,P}/v_{[2]P}\right) & = & (P) & + & (P) & - & (2P) & - & 
(\mathcal{O})     \\
   &\left(l_{[2]P,P}/v_{[3]P}\right) & = & (P) & + & ([2]P) & - & ([3]P) & - 
&(\mathcal{O})         \\
   &\left(l_{[3]P,P}/v_{[4]P}\right) & = & (P) & + & ([3]P) & - & ([4]P) & - & (\mathcal{O})         \\
   &\vdots \\
   &\left(l_{[r-3]P,P}/v_{[r-2]P}\right) & = & (P) & + & ([r-3]P) & - & ([r-2]P) & - &(\mathcal{O})         \\
   + & \left(l_{[r-2]P,P}\right) & = & (P) & + & ([r-2]P) & + & (P) & - & 3(\mathcal{O})\\
   \hline \\
   & (f_{r,P}) & = & r(P) & & & & & - & r(\mathcal{O}) \\
};
\draw[thin, <->] (m-1-8) to[out=-120,in=60] (m-2-6);
\draw[thin, <->] (m-2-8) to[out=-120,in=60] (m-3-6);
\draw[thin, <->] (m-5-8) to[out=-120,in=60] (m-6-6);
\end{tikzpicture}
\end{document}

相关内容