I am trying to shift this extra long subscript to the line below, because it is too long. The code is
\mathop{\mathbb{E}}_{x \in p_{data}(x), z \in p_{z}(z)}
And the expression looks like :
I want the characters z onwards to be in a new line, while being the subscript to E.
Thanks!



There are three different specific ways to do this (one command
substackand one environmentsubarraywith at least two different alignment optionslandc), provided by the packageamsmath(see section 7.1 of the guide, at page 21). All of them work in inline math mode as well. To type your code, the packageamssymbis necessary too (although\mathop{\mathbb{E}}is maybe redundant).This code
gives this output: