我想更改矩阵中两行之间的垂直间距。通常我可以使用 来执行此操作row sep
,但如果行断开,这不会影响垂直间距,见图。我试过\renewcommand*{\arraystretch}{0.5}
没有成功。正确的命令是什么?
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{matrix}
\begin{tikzpicture}
\matrix(LH)[row sep=1mm, matrix of nodes, column sep=35mm, text width=54mm] {
& consetetur sadipscing elitr\\
Lorem ipsum dolor sit amet & sed diam nonumy eirmodtempor invidunt ut labore\\
& et dolore magna aliquyam erat,\\};
\end{tikzpicture}
\end{document}
答案1
\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{matrix}
\begin{tikzpicture}
\matrix(LH)[row sep=1mm, matrix of nodes, column sep=35mm, text width=54mm] {
& consetetur sadipscing elitr\\
Lorem ipsum dolor sit amet & sed\vspace{3cm} diam nonumy eirmodtempor invidunt ut labore\\
& et dolore magna aliquyam erat,\\};
\end{tikzpicture}
\end{document}