Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to learn how to make the limit sign. For example, take 'Limit of f(x) as x approaches 2 is 5' , how to make this?

share|improve this question
    
Welcome to TeX.SE. –  Peter Grill Oct 2 '12 at 7:16

1 Answer 1

up vote 17 down vote accepted

You are looking for \lim_{x \to 2} f(x) = 5. This has to be used in math mode which can be either inline mode (where the limit is placed as a subscript so that the inter line spacing of the paragraph is not perturbed):

enter image description here

or in display mode where the limits are placed underneath):

References:

Code:

\documentclass{article}

\begin{document}
With in line mode this is typeset as $\lim_{x \to 2} f(x) = 5$

\medskip
In display mode it is typset differently:
\[ \lim_{x \to 2} f(x) = 5 \]
\end{document}
share|improve this answer
    
$ \lim_{x\to 2} f(x) $ –  ZafarS Oct 2 '12 at 7:18
    
@ZafarS: Well that is if you want to use it in inline math. In display math, the $ is not used. The MWE should clarify that. If it is still not clear, please let me know. –  Peter Grill Oct 2 '12 at 7:23
2  
Nice answer but it’s slightly odd that your example uses $…$ yet then you go on to refer to the question “Are \( and \) preferable to $?” –  Konrad Rudolph Oct 2 '12 at 14:36
1  
You can get the same effect in inline mode (as in the display mode) if you use $\lim\limits_{x \to 2} f(x)=5$. –  Sony Dec 15 '12 at 15:17
1  
@Sony: Good point, but usually better to not do that in inline mode as that disturbs the interline spacing. Thought about adding that to the answer but decided against it for that reason. –  Peter Grill Dec 15 '12 at 19:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.