I need an equation of the type
\begin{equation*}
lim_{Z=X-Y,X,Y>0}
\end{equation*}
which results in a long subscript that is ugly. How can I write this so that the superscript has two levels, with Z=X-Y on the top level and X,Y>0 on the bottom level?
\lim_{\substack{z=x-y\\x,y>0}}will do. It needs\usepackage{amsmath}– egreg Aug 20 '16 at 05:28