Eu sei que houve muitos posts com títulos semelhantes, mas de alguma forma não consegui encontrar nada que parecesse relacionado. Aqui está um MWE, onde eu esperaria que todas as linhas tivessem uma distância uniforme. Mas obviamente a primeira e a segunda linha estão mais próximas do que a segunda e a terceira:
\documentclass[]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\matrix[
matrix of nodes,
anchor=north,
column 1/.style={nodes={anchor=base west,align=center}},
column 2/.style={nodes={anchor=base west,align=center}},
column 3/.style={nodes={anchor=base west,align=center}},
column 4/.style={nodes={anchor=base west,align=center}}
]
{ Some text& \\
Some text& Some longer text\\
Some text&
Some text\\};
\end{tikzpicture} %
\caption{test test}
\end{figure}
\end{document}
Responder1
Porque a segunda linha contém letras g
que possuem descendente e a primeira linha não. Você pode adicionar alguns text depth
a todos os nós ou usar \strut
dentro de todas as células.
\documentclass[]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\matrix[
matrix of nodes,
anchor=north,
nodes={text depth=0.55ex}, %% <----------------------here
column 1/.style={nodes={anchor=base west,align=center}},
column 2/.style={nodes={anchor=base west,align=center}},
column 3/.style={nodes={anchor=base west,align=center}},
column 4/.style={nodes={anchor=base west,align=center}}
]
{ Some text& \\
Some text& Some longer text\\
Some text& Some text\\};
\end{tikzpicture} %
\caption{test test}
\end{figure}
\end{document}