\mbox 在数学环境中溢出

\mbox 在数学环境中溢出

我对 Latex 还很陌生,在 Overleaf 上,在文档环境中使用以下代码时出现 Overfull \hbox 警告:

\vspace{5mm}
\begin{math}
l^*=\frac{l}{ke^{\tau\lambda}}=(\frac{1}{ke^{\tau\Delta}})(\frac{\lambda_a}{v})=\mbox{effective mean life of the neutrons from formation by fission to absorption or loss from pile by leakage.}
\end{math}

任何帮助将非常感激。

答案1

公式中不能有那么长的文本:文本超出了数学范围。无论如何,的内容\mbox不能跨行拆分。

两种选择:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

The formula $l^*=\frac{l}{ke^{\tau\lambda}}=(\frac{1}{ke^{\tau\Delta}})(\frac{\lambda_a}{v})$
represents the effective mean life of the neutrons from formation by fission to 
absorption or loss from pile by leakage.

\bigskip

The formula
\[
l^*=\frac{l}{ke^{\tau\lambda}}=\frac{1}{ke^{\tau\Delta}}\frac{\lambda_a}{v}
\]
represents the effective mean life of the neutrons from formation by fission to 
absorption or loss from pile by leakage.

\end{document}

我更喜欢后者。

在此处输入图片描述

答案2

在内联数学模式下,建议不要使用\frac符号,而应使用内联分数符号。例如,不要\frac{a}{b}写 ,而应写a/b

您可能还想考虑分别用e^{\tau\lambda}和替换和。e^{\tau\Delta}\exp(\tau\lambda)\exp(\tau\Delta)

无论哪种方式,只要有可能,就使用自然的词语,而不是简洁但生硬的数学符号。

应用第一条建议的结果如下面中间的段落所示。应用两条建议的结果如下面段落所示。

在此处输入图片描述

\documentclass{article}
\begin{document}

$l^*=\frac{l}{ke^{\tau\lambda}}=(\frac{1}{ke^{\tau\Delta}})(\frac{\lambda_a}{v})$ is the effective mean life of the neutrons from formation by fission to absorption or loss from pile by leakage.

\bigskip
$l^*=l/(ke^{\tau\lambda})=(ke^{\tau\Delta})^{-1}(\lambda_a/v)$ is the effective mean life of the neutrons from formation by fission to absorption or loss from pile by leakage.

\bigskip
$l^*=l/(k\exp(\tau\lambda))=(k\exp(\tau\Delta))^{-1}(\lambda_a/v)$ is the effective mean life of the neutrons from formation by fission to absorption or loss from pile by leakage.

\end{document}

相关内容