Math & ScienceLimit description badly positioned

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Enedrox
Posts: 8
Joined: Mon Mar 07, 2011 6:23 am

Limit description badly positioned

Post by Enedrox »

I have encountered this a couple of times now and so far, have not been able to find any solutions to this problem.

In most cases, the description of the limit is situated beneath the actually word "lim", but sometimes it appears as a subscript instead of being actually underneath the limit. I have encounted this in the $...$ environment, and when inside a fraction which is inside the align environment.

So, for example:

Code: Select all

\begin{align}
	\lim_{x \rightarrow 2} \frac{x^3 + 2x^2 - 1}{5-3x} &= \frac{\lim_{x \rightarrow 2} x^3 + 2x^2 - 1}{\lim_{x \rightarrow 2} 5-3x}
\end{align}
Before the equal sign, it is working fine, but within the fraction environment, it is not working properly:
limit.png
I'm using Miktex 2.9 on Windows 7, with the babel, graphicx and amsmath packages uniquely.


Edit by localghost: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
Last edited by Enedrox on Tue Mar 08, 2011 11:30 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Limit description badly positioned

Post by 5gon12eder »

Code: Select all

\lim_{...}
acts differently in inline and equation mode. This is not that bad because usually one would like to have a math expression to take as little vertical space as possible when typeset inside a paragraph.

You can however create the form you prefer if you use

Code: Select all

\lim\limits_{...}
instead.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Enedrox
Posts: 8
Joined: Mon Mar 07, 2011 6:23 am

Re: Limit description badly positioned

Post by Enedrox »

Thanks, this worked perfectly!

What exactly does the function "\limits" do? Is it specifically to be used with "\lim" only?

Additionally, I'm assuming that having the limit to the side rather than below is also acceptable? I have never seen it that way though...
User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Limit description badly positioned

Post by shadgrind »

You could also use

Code: Select all

\displaystyle\lim_{...}
The \displaystyle command works with limits, integrals, summations and other objects that use subscripts.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Limit description badly positioned

Post by localghost »

Enedrox wrote:[…] What exactly does the function "\limits" do? Is it specifically to be used with "\lim" only? […]
For further reading about math typesetting you could take a look at the excellent »Math mode« document.


Best regards and welcome to the board
Thorsten
Post Reply