## Two line subscript in LaTeX

While writing a paper in LaTeX I wanted to write something similiar to this:

But even thouh this might seem to be just a minor thing, it took me almost two hours to find a solution. Simply write:

 1 \lim_{\substack{x\rightarrow 0\\y\rightarrow 0}} f(x,y)

Notice the substack command which allows one to have multiple lines in a subscript

### 12 Responses to “Two line subscript in LaTeX”

1. DragonVamp says:

This was very usefull! hope that you are glad to know that instaed of you, it only took me moreless one hour to find this! XD thanks!

2. rospa says:

Thanks! Very useful. Thanks to this post it took me only 10 mins!!!

3. Junk says:

Thanks so much for posting this. I needed to do the exact same thing for my dissertation, so you saved me a BUNCH of time looking for how to do it! Thanks again.

4. Camilo says:

Thanks to you, it only took me two minutes to find the solution. Thanks a lot !!!

5. Michael says:

Just what I was looking for! Guess you just saved me about an hour – thanks!

6. Danupon says:

Agree with the above. Thanks a lot for sharing!

7. [...] http://blog.32leaves.net/?p=262 Like this:LikeBe the first to like this post. By kunigami • Posted in latex 0 [...]

8. Ssj4mathgenius says:

Yeah, that was extremely helpful. That was the shortest search I’ve ever done for anything in Latex.

9. Jack says:

took me less than 5 minutes thanks to this post. cheers, dude.

10. Mike says:

Thank you for posting this, Christian. Took me under a minute with google, thanks to you!

11. João Moura says:

Cheers!

12. Anonymous says:

I think you can also use something like

\lim_{x \to 0 \atop y \to 0} f(x, y)

Fork me on GitHub