# Index (x_i) with two rows in latex [closed]

I have following problem in latex formatting:

I want to write for a matrix : $$(a_{ij})_{\underset{j=1,\ldots , n}{i=1,\ldots ,m}}$$ but I want the $$i=\ldots$$ and $$j=\ldots$$ to be the same size... Does anyone know a command to do that? Thank you very much!

## closed as off-topic by user, mfl, anomaly, TastyRomeo, mrfMar 21 at 15:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is not about mathematics, within the scope defined in the help center." – user, mfl, anomaly, TastyRomeo, mrf
If this question can be reworded to fit the rules in the help center, please edit the question.

• You should ask this question here tex.stackexchange.com – mfl Mar 21 at 15:26
• The short answer is to use \substack, but you'll probably get better replies on the tex stackexchange board (which is a useful place in general). – anomaly Mar 21 at 15:29

$$(a_{ij})_{\substack{j=1, \cdots , n \\ i=1, \cdots , m}}$$
 (a_{ij})_{\substack{j=1, \cdots , n \\ i=1, \cdots , m}}