【问题标题】:Latex equation with unequal space不等空间的乳胶方程
【发布时间】:2021-07-05 02:06:37
【问题描述】:

我已经为方程组输入了代码,但我不确定问题所在,因为它与左边的间距不同,你能帮我纠正这个不均匀的间距

\begin{eqnarray}
    L(x) &=& T_e(x) - T_i(x)\\
    \label{eq:latencymsg}
    L_{avg} &=& 1/N \sum_{n=1}^{N} L(x)\\
    \label{eq:latencymsgavg}
    \begin{cases}
    \frac{1}{b-a}&\text{for $L(x)\in[a,b]$}\\
    0&\text{otherwise}\\
    \end{cases}\\
    \begin{cases}
    0&\text{for $L(x)<a$}\\
    \frac{x-a}{b-a}&\text{for $L(x)\in[a,b)$}\\
    1&\text{for $L(x)\ge b$}
    \end{cases}
\end{eqnarray}

【问题讨论】:

标签: latex equation


【解决方案1】:

知道了:不要将 cases 嵌套到 eqnarray 中,只需再使用两个 equation 环境即可。

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{eqnarray}
    L(x) &=& T_e(x) - T_i(x)\\
    \label{eq:latencymsg}
    L_{avg} &=& 1/N \sum_{n=1}^{N} L(x)
    \label{eq:latencymsgavg}
\end{eqnarray}

\begin{equation}
\begin{cases}
    \frac{1}{b-a}&\text{for $L(x)\in[a,b]$}\\
    0&\text{otherwise}\\
\end{cases}
\end{equation}

\begin{equation}
\begin{cases}
    0&\text{for $L(x)<a$}\\
    \frac{x-a}{b-a}&\text{for $L(x)\in[a,b)$}\\
    1&\text{for $L(x)\ge b$}
\end{cases}
\end{equation}

\end{document}

标签不一样,因为我的MWE中没有第1、2和3章,但是:

最后,再添加两个labels 来引用方程三和四。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-11-29
    • 1970-01-01
    • 2019-10-07
    • 2015-05-31
    • 1970-01-01
    • 1970-01-01
    • 2021-11-29
    相关资源
    最近更新 更多