等式后的垂直空格

等式后的垂直空格
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage{color}
\usepackage\[hmarginratio=2:2\]{geometry}
\usepackage{epstopdf}
\usepackage{afterpage}
\usepackage{ upgreek }
\usepackage{mathtools}
\begin{document}
The survival function is defined as the probability that an individual survives longer than t. It can be expressed as\\
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}
\begin{align*}
S(t)&=P(T>t)\\
&=1-P(T\leq t)\\
&=1-F(t)
\end{align*}\\

    The survival function of the Gompertz distribution is given by,
    \begin{equation}
    S(t;\gamma;\lambda)=\text{exp}\left\[\frac{\lambda}{\gamma}(1-e^{\gamma t})\right\]
    \end{equation}\\
    The hazard function of survival time is defined as the probability that an individual fails in a very short interval, t + $\Delta$t, given that the individual has survived to t.
    \begin{equation}
    \frac{\lim_{\Delta t\to 0} P\left\[
    \begin{tabular}{c}
    an individual fails in the interval $(t, t+\Delta t)$,\\
    given the individual has survived to t
    \end{tabular}
    \right\]}
    {\Delta t}
    \end{equation}
    \end{document}

我可以将 abovedisplayskip 和 belowdisplayskip 仅应用于一个方程吗?我只想将其用于带有“allign”的方程

我可以将\abovedisplayskip\belowdisplayskip仅应用于一个方程吗?我只想将它用于带有的方程,align但它适用于其下方的每个方程。

答案1

您的文档中存在许多问题,因此我怀疑您是否可以编译它:

  • \left\[是错误的,正确的\left[也是同样适用于`\right] ...
  • 而是\text{exp}使用声明的数学运算符\exp
  • \\数学环境为假后,删除它们

编辑:

  • 为了增加段落之间的空间,您应该更改\parskip,例如\setlength\parskip{1\baselineskip}

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\setlength\parskip{1\baselineskip}

\begin{document}
The survival function is defined as the probability that an individual survives longer than t. It can be expressed as
    \begin{align*}
S(t)&=P(T>t)\\
&=1-P(T\leq t)\\
&=1-F(t)
    \end{align*}

The survival function of the Gompertz distribution is given by,
    \begin{equation}
S(t;\gamma;\lambda)=\exp\left[\frac{\lambda}{\gamma}(1-\mathrm{e}^{\gamma t})\right]
    \end{equation}
The hazard function of survival time is defined as the probability that an individual fails in a very short interval, t + $\Delta$t, given that the individual has survived to t.
    \begin{equation}
\frac{\lim_{\Delta t\to 0} P
    \left[
    \parbox{0.55\linewidth}{an individual fails in the interval $(t, t+\Delta t)$,\\
            given the individual has survived to $t$}
    \right]
    }{\Delta t}
    \end{equation}
\end{document}

注(1):就给出的例子而言,你的序言大部分都是不必要的。

注意(2):要开始新的段落,您需要在它之前插入空行

在此处输入图片描述

结果是不是你所寻找的?

相关内容