从下面的代码中我该如何做:
增加行距(因为顶部分数的分母太接近底部分数的分子)。
减少“+”号之间的间距
这是我的代码:
\documentclass{article}
\usepackage{amsmath}
\usepackage{arydshln}
\begin{document}
\begin{equation}
\dfrac{d\mathbf{P}_{T}}{dt} = {\begin{pmatrix}
\dfrac{dx}{dt} \\ \dfrac{dy}{dt} \\ \dfrac{dz}{dt}
\end{pmatrix}} ={\begin{pmatrix}
\dfrac{dx}{d\theta_{1}} \dfrac{d\theta_{1}}{dt} & + & \dfrac{dx}{dr_{2}} \dfrac{dr_{2}}{dt} & + & \dfrac{dx}{dr_{3}} \dfrac{dr_{3}}{dt}\\ \dfrac{dy}{d\theta_{1}} \dfrac{d\theta_{1}}{dt} & + & \dfrac{dy}{dr_{2}} \dfrac{dr_{2}}{dt} & + & \dfrac{dy}{dr_{3}} \dfrac{dr_{3}}{dt} \\ 0 && 0 && 0
\end{pmatrix}}
\end{equation}
\end{document}
答案1
\documentclass{article}
\usepackage{amsmath}
\usepackage{arydshln}
\begin{document}
\begin{equation}
\dfrac{d\mathbf{P}_{T}}{dt} = {\begin{pmatrix}
\dfrac{dx}{dt} \\[2.5ex]
\dfrac{dy}{dt} \\[2.5ex]
\dfrac{dz}{dt}
\end{pmatrix}} ={\begin{pmatrix}
\dfrac{dx}{d\theta_{1}} \dfrac{d\theta_{1}}{dt} + \dfrac{dx}{dr_{2}} \dfrac{dr_{2}}{dt} + \dfrac{dx}{dr_{3}} \dfrac{dr_{3}}{dt}\\[2.5ex]
\dfrac{dy}{d\theta_{1}} \dfrac{d\theta_{1}}{dt} + \dfrac{dy}{dr_{2}} \dfrac{dr_{2}}{dt} + \dfrac{dy}{dr_{3}} \dfrac{dr_{3}}{dt} \\[2.5ex]
0 \hspace{1.3cm} 0 \hspace{1.3cm} 0
\end{pmatrix}}
\end{equation}
\end{document}
答案2
请参阅列出的一些示例表格中的列和行填充。我已
\arraystretch
在下面进行了调整;删除列间距(通过设置
\arraycolsep
为0pt
),然后+
使用强制将设置为二元运算符{}+{}
。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\renewcommand{\arraystretch}{2}% increase spacing between rows
\dfrac{d\mathbf{P}_{T}}{dt} = {\begin{pmatrix}
\dfrac{dx}{dt} \\ \dfrac{dy}{dt} \\ \dfrac{dz}{dt}
\end{pmatrix}} =
\setlength{\arraycolsep}{0pt}% remove spacing between columns
\begin{pmatrix}
\dfrac{dx}{d\theta_{1}} \dfrac{d\theta_{1}}{dt} & {}+{} & \dfrac{dx}{dr_{2}} \dfrac{dr_{2}}{dt} & {}+{} & \dfrac{dx}{dr_{3}} \dfrac{dr_{3}}{dt} \\
\dfrac{dy}{d\theta_{1}} \dfrac{d\theta_{1}}{dt} & {}+{} & \dfrac{dy}{dr_{2}} \dfrac{dr_{2}}{dt} & {}+{} & \dfrac{dy}{dr_{3}} \dfrac{dr_{3}}{dt} \\
0 && 0 && 0
\end{pmatrix}
\end{equation}
\end{document}