![当第一行缺少单元格并且指定了“原点之间”矩阵选项时,矩阵列之间的距离不一致](https://linux22.com/image/358390/%E5%BD%93%E7%AC%AC%E4%B8%80%E8%A1%8C%E7%BC%BA%E5%B0%91%E5%8D%95%E5%85%83%E6%A0%BC%E5%B9%B6%E4%B8%94%E6%8C%87%E5%AE%9A%E4%BA%86%E2%80%9C%E5%8E%9F%E7%82%B9%E4%B9%8B%E9%97%B4%E2%80%9D%E7%9F%A9%E9%98%B5%E9%80%89%E9%A1%B9%E6%97%B6%EF%BC%8C%E7%9F%A9%E9%98%B5%E5%88%97%E4%B9%8B%E9%97%B4%E7%9A%84%E8%B7%9D%E7%A6%BB%E4%B8%8D%E4%B8%80%E8%87%B4.png)
答案1
您必须指定单元格,即使是空的。
\documentclass[tikz]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix[nodes=draw,column sep={1cm,between origins}]
{
\node {1}; \\
\node {4}; & \node {5}; & \node {6}; \\
};
\end{tikzpicture}
\begin{tikzpicture}
\matrix[nodes=draw,column sep={1cm,between origins}]
{
\node {1}; & & \\
\node {4}; & \node {5}; & \node {6}; \\
};
\end{tikzpicture}
\end{document}
顶部是您的输入,底部是固定的。