# How to write a text under subscript [duplicate]

I know two different ways to write the following:

We can either type $(a_{ij})_{\mathop{1\le i\le n}\limits_{1\le j\le n }}$ or, as shown here, $(a_{ij})_{\underset{1 \leq j \leq n}{1\le i\le n}}$. The output (the picture above) is the same in both cases. Notice that 1< j < n has a smaller size than 1 < i < n. I found this answer. So I typed $(a_{ij})_{\mathop{1\le i\le n}\limits_{\mbox{\tiny$$1\le j\le n$$}}}$. The result is pretty ugly:

Could you please tell me how to write it correctly?

## marked as duplicate by Werner math-mode StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Mar 14 '16 at 17:01

This would do the job :

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$(a_{ij})_{\substack{1\leq i\leq n\\1\leq j\leq n}}$$
\end{document}


Here is the result :

All lines have the same font-size.

Please note that with substack your number of line is not limited.

• Yes it's working well. Thank you very much! – Scientifica Mar 14 '16 at 19:08