方程显示问题 - Mathjax/Latex
我使用 Latex 来创建方程,并使用 Mathjax 在网站上呈现它。
当多个“lim”出现在同一行时,第二个“lim”无法正确显示,如图所示。
以下是方程的乳胶代码。如何解决这个问题?
\begin{align}
\sf\:We\: have \:
\lim_{x \rightarrow a} \frac {x^{n} - a^{n}} {x - a}
& = na^{n-1} \\
\therefore
\lim_{x \rightarrow 2} \frac {x^{100} - 2^{100}} {x^{77} - 2^{77}}
& = \lim_{x \rightarrow 2} \frac {x^{100} - 2^{100}} {x - 2}
\times \frac {1} {\lim_{x\rightarrow 2} \frac {x^{77} - 2^{77}} {x - 2}} \\
& = \frac {100 \times 2^{99}} {77 \times 2^{76}} \\
& = \frac {100} {77} \times 2^{23}
\end{align}
I'm using Latex to create equations and it is rendered on a website using Mathjax.
When multiple 'lim' comes in the same line, the second 'lim' is not displayed properly as shown in the image.
Following is the latex code for the equation. How can the issue be fixed?
\begin{align}
\sf\:We\: have \:
\lim_{x \rightarrow a} \frac {x^{n} - a^{n}} {x - a}
& = na^{n-1} \\
\therefore
\lim_{x \rightarrow 2} \frac {x^{100} - 2^{100}} {x^{77} - 2^{77}}
& = \lim_{x \rightarrow 2} \frac {x^{100} - 2^{100}} {x - 2}
\times \frac {1} {\lim_{x\rightarrow 2} \frac {x^{77} - 2^{77}} {x - 2}} \\
& = \frac {100 \times 2^{99}} {77 \times 2^{76}} \\
& = \frac {100} {77} \times 2^{23}
\end{align}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
\lim
或\sum
等运算符的限制位置由 TeX 使用的“样式”控制。在“displaystyle”中,限制放置在运算符的上方和下方,而在“textstyle”(和脚本样式)中,它们放置在右侧(如盒装示例中所示)。内联方程采用文本样式,而显示方程以显示样式开始。但方程中的样式并不是恒定的。在显示样式中,分数的分子和分母将在文本样式中排版,而不是显示样式,这就是为什么您会看到运算符右侧的限制。这是正确的行为。要在未处于显示样式时获得低于运算符的限制,请在运算符名称后使用
\limits
。例如,应该产生您想要的结果。
The placement of the limits on an operator like
\lim
or\sum
is controlled by the "style" that TeX is using. In "displaystyle", the limits are placed above and below the operator, while in "textstyle" (and the script styles) they are placed to the right (as in your boxed example). In-line equations are in textstyle, while displayed equations begin in displaystyle. But the style isn't constant within an equation. In displaystyle, the numerator and denominator of a fraction will be typeset in textstyle, not displaystyle, which is why you are seeing the limits to the right of the operator. That is the correct behavior.To get the limits below the operator when you are not in displaystyle, use
\limits
after the operator name. E.g.,should produce the result you want.
对我来说,这看起来是一种完全可以接受的方程式排版方式。我想你可以尝试使用 \stackrel 或类似的东西来强制 LaTeX 在 lim 下排版 x->2 。
That looks like a perfectly acceptable way of typesetting the equation to me. I suppose you could try to force LaTeX to typeset the x->2 under the lim by using \stackrel or something like that.