我在文档中找到了数学公式mathdesign
,看起来很漂亮很优雅
当我尝试按照它的样子输入时,我得到的结果总是不如原来的那么好。
我使用的代码是
\begin{equation}\label{test}
\newcolumntype{Y}{>\displaystyle c}
\left|\frac{D(u,v)}{D(x,y)}\right|=
\left|
\begin{array}{@{}YY@{}}
\frac{\partial u}{\partial x} & \frac{\partial u}{\partial y} \\
\frac{\partial v}{\partial x} & \frac{\partial v}{\partial y}
\end{array}
\right|
\neq
0
\quad
\text{and}
\quad
\left|\frac{D(x,y)}{D(u,v)}\right|=
\left|
\begin{array}{@{}YY@{}}
\frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} \\
\frac{\partial y}{\partial u} & \frac{\partial y}{\partial v}
\end{array}
\right|
\neq
0
\end{equation}
我认为两行之间的距离太窄了。我怎样才能得到原点结果?谢谢 :)
答案1
您可以通过向 newline 命令添加可选参数来指定行之间的距离,如下所示:\\[2.5ex]
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{array}
\pagestyle{empty}
\begin{document}
\begin{equation}\label{test}
\newcolumntype{Y}{>\displaystyle c}
\left|\frac{D(u,v)}{D(x,y)}\right|=
\left|
\begin{array}{@{}YY@{}}
\frac{\partial u}{\partial x} & \frac{\partial u}{\partial y} \\[2.5ex]
\frac{\partial v}{\partial x} & \frac{\partial v}{\partial y}
\end{array}
\right|
\neq
0
\quad
\text{and}
\quad
\left|\frac{D(x,y)}{D(u,v)}\right|=
\left|
\begin{array}{@{}YY@{}}
\frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} \\[2.5ex]
\frac{\partial y}{\partial u} & \frac{\partial y}{\partial v}
\end{array}
\right|
\neq
0
\end{equation}
\end{document}