LaTeX sometimes chokes on limit notation. Try switching to inline math mode first—use \lim_{x \to c} there. For bigger output, wrap it in display math mode instead.
Quick Fix Summary
\lim_{x \to c}; switch to display style for bigger output.What’s Happening
Limits in LaTeX demand proper math mode activation. You need both the \lim command and a subscript (_{}) to set the approach value, wrapped in $ $, , or . Forget the subscript braces or skip math mode entirely, and you’ll end up staring at raw text instead of a nicely formatted limit.
Step-by-Step Solution
_{}, check braces, then compile.- Enter math mode.
- Inline:
$ \lim_{x \to 3} f(x) $ - Display:
- Inline alternative:
- Inline:
- Add the limit value.
- Enclose the approach value in braces:
\lim_{x \to 5}
- Enclose the approach value in braces:
- Check spacing and braces.
- Always close those braces:
\lim_{x \to a} h(x)—not\lim_{x \to a h(x)
- Always close those braces:
- Compile and inspect.
- Run LaTeX twice if you need cross-references to resolve.
- If the limit looks too tiny, force display style with
.
If This Didn’t Work
\displaystyle, load amsmath, or check your engine and encoding.- Use \displaystyle.
- Stick
\displaystylein front of the limit command to force big output even inline:$\displaystyle \lim_{x \to \infty} k(x)$
- Stick
- Load amsmath.
- Drop
\usepackage{amsmath}in your preamble and usefor cleaner display output.
- Drop
- Verify engine and encoding.
- Compile with pdfLaTeX, XeLaTeX, or LuaLaTeX—all three are supported as of 2026.
- Make sure your file encoding is UTF-8 so non-ASCII characters don’t break the subscript.
Prevention Tips
-interaction=nonstopmode.Build a small preamble template to keep things consistent:
| Purpose | Code |
|---|---|
| Load amsmath | \usepackage{amsmath} |
| Define global limit style | \newcommand{\dlim}{\displaystyle\lim} |
| Use wrapper for display limits | \newcommand{\dlimdisp}[1]{\[\dlim_{#1}\]} |
Compile with -interaction=nonstopmode to catch missing braces early. Honestly, this is the best way to head off limit troubles before they start.
For engine-specific quirks as of 2026, check the LaTeX Project documentation.
