# Writing limits with additional conditions

I gave a quick search, but didn't find something similarly, atleast for limits.

I am trying to write something like:

 $\lim_{\binom{x\to 0}{x>0}} f(x)$


My intention is to put the limit with the two conditions under it. For now I came up with the idea to use the \binom, but that has some braces near it. I would appreciate a better idea.

• Welcome to TeX.SE! Something like \documentclass{article} \usepackage{amsmath} \begin{document} $\lim_{\substack{x\to 0\\ x>0}} f(x)$ or $\lim\limits_{\substack{x\to 0\\ x>0}} f(x)$ \end{document}? – user121799 Feb 9 at 22:25

## 1 Answer

This is an alternative for your question using the option smallmatrix.

\documentclass[12pt]{article}
\usepackage{mathtools}
\begin{document}
$\lim_{\begin{smallmatrix} x \to 0 & \\ x>0 \end{smallmatrix}} f(x)$
\end{document}

• Thanks! This still has some braces near it. Writing 'psmallmatrix' as 'smallmatrix' works though. – Zacky Feb 9 at 22:34
• @Zacky You're absolutely right. I knew it right away, then, but I'm slow as a snail. – Sebastiano Feb 9 at 22:37
• Much appreciated. Can you also give me a quick hint on how to write tags? For example with mathjax I just have to use \tag1 and a: (1) appears at the end of the line. With latex do I have to include a package or something?Or this would better be put in another question? – Zacky Feb 9 at 22:41
• @Zacky Excuse me for my bad English. I not use often Mathjax but with LaTeX the \tag{1} into an ambient in math-mode you have (1) at the end of the line correctly. Use for example \usepackage{amsmath} package. – Sebastiano Feb 9 at 22:46
• Sebastiano's solution has not the text under "lim" centered, and more space between "lim" and "f(x)" than Marmot solution under the OP question. \substack is specifically designed for the task asked, as explained here. – quark67 Feb 9 at 23:14