![使 TikZ 矩阵之间的箭头大小相同](https://linux22.com/image/373210/%E4%BD%BF%20TikZ%20%E7%9F%A9%E9%98%B5%E4%B9%8B%E9%97%B4%E7%9A%84%E7%AE%AD%E5%A4%B4%E5%A4%A7%E5%B0%8F%E7%9B%B8%E5%90%8C.png)
以下是我正在处理的 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}