我在用这个 LaTex 模板(看论文和GMU_论文_模板.tex在链接的 zip 文件中)来生成论文。它里面有一些很长的方程式。当我在模板上下文中渲染下面的方程式时,我得到了图片 A。当我在只有方程式的准系统文档中渲染它时,我得到了图片 B。我希望我的方程式像图片 B 一样渲染。什么设置控制着行之间的间距,我应该如何更改它?
方程
\documentclass[11 pt]{report}
\usepackage{amsmath}
\begin{document}
\[\frac{100}{2} = \frac{\begin{split}&\text{DG:SG:Granule } + \text{DG:SG:Total Molecular } + \text{DG:SG:MOLAX } +\\
& \text{DG:SG:Outer Molecular } + \text{DG:SG:HICAP } + \text{DG:SG:Axo-Axonic } +\\
& \text{DG:SG:HIPP } + \text{DG:SG:Aspiny Hilar } + \text{DG:SG:Basket-PV } +\\
& \text{DG:SG:Basket-CCK } + \text{DG:SG:Non-Ivy / NGF }\end{split}}{\begin{split}&\text{DG:SG:Total Molecular } + \text{DG:SG:MOLAX } + \text{DG:SG:Outer Molecular } +\\
& \text{DG:SG:HICAP } + \text{DG:SG:Axo-Axonic } + \text{DG:SG:HIPP } +\\
& \text{DG:SG:Aspiny Hilar } + \text{DG:SG:Basket-PV } + \text{DG:SG:Basket-CCK } +\\
& \text{DG:SG:Non-Ivy / NGF }\end{split}}\]
\end{document}
图片A
图片B
答案1
答案2
您可以尝试array
以下方法split
:
\documentclass[11 pt]{report}
\usepackage{amsmath}
\newcommand{\tv}[1]{% text variable
\textnormal{#1}%
}
\begin{document}
\[
\frac{100}{2} =
\frac{
\begin{array}{@{}l@{}}
\tv{DG:SG:Granule} + \tv{DG:SG:Total Molecular} + \tv{DG:SG:MOLAX} + {} \\
\tv{DG:SG:Outer Molecular} + \tv{DG:SG:HICAP} + \tv{DG:SG:Axo-Axonic} + {} \\
\tv{DG:SG:HIPP} + \tv{DG:SG:Aspiny Hilar} + \tv{DG:SG:Basket-PV} + {} \\
\tv{DG:SG:Basket-CCK} + \tv{DG:SG:Non-Ivy} / \tv{NGF}
\end{array}
}{
\begin{array}{@{}l@{}}
\tv{DG:SG:Total Molecular} + \tv{DG:SG:MOLAX} + \tv{DG:SG:Outer Molecular} + {}\\
\tv{DG:SG:HICAP} + \tv{DG:SG:Axo-Axonic} + \tv{DG:SG:HIPP} + {} \\
\tv{DG:SG:Aspiny Hilar} + \tv{DG:SG:Basket-PV} + \tv{DG:SG:Basket-CCK} + {}\\
\tv{DG:SG:Non-Ivy} / \tv{NGF}
\end{array}
}
\]
\end{document}
答案3
(第二个想法:由于分母中出现的每个项也出现在分子中,另一种定义选择将使表达式的内容更加清晰。我将留给你和你的导师讨论。;])
数学不必绝对做所有事情。举一个(快速、不完美)的例子:
\documentclass[11 pt]{report}
\usepackage{amsmath}
\begin{document}
The highly important matter of this thesis is summarised by the fraction
\begin{gather}
X = \frac{N}{D} \\
\noalign{\hbox{where the numerator}}
\begin{aligned}
N &= \text{DG:SG:Granule } + \text{DG:SG:Total Molecular } + \text{DG:SG:MOLAX } +\\
& \text{DG:SG:Outer Molecular } + \text{DG:SG:HICAP } + \text{DG:SG:Axo-Axonic } +\\
& \text{DG:SG:HIPP } + \text{DG:SG:Aspiny Hilar } + \text{DG:SG:Basket-PV } +\\
& \text{DG:SG:Basket-CCK } + \text{DG:SG:Non-Ivy / NGF },
\end{aligned} \notag \\
\noalign{\hbox{consists of the top terms and the denominator}}
\begin{aligned}
D &=\text{DG:SG:Total Molecular } + \text{DG:SG:MOLAX } + \text{DG:SG:Outer Molecular } +\\
& \text{DG:SG:HICAP } + \text{DG:SG:Axo-Axonic } + \text{DG:SG:HIPP } +\\
& \text{DG:SG:Aspiny Hilar } + \text{DG:SG:Basket-PV } + \text{DG:SG:Basket-CCK } +\\
& \text{DG:SG:Non-Ivy / NGF } .
\end{aligned} \notag \\
\noalign{\hbox{contains more bottom-related terms that are less granular in nature..}} \notag
\end{gather}
\end{document}