Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX: stack three lines in math mode

Tags:

stack

math

latex

Hey,
I'm writing a formula with three indexes i,j,k.
At the end of the line I'd like to put this:

i=1,...,a
j=1,...,b
k=1,...,n

But I'd like it in smaller font and stacked above each other. Can someone tell me a command which can accomplish this? \mbox can't do math mode, I think.

like image 553
Alexander Engelhardt Avatar asked Feb 15 '11 21:02

Alexander Engelhardt


1 Answers

Try the \substack command:

z_i = a_j + b_k \qquad \substack{
i=1,\dots,a \\
j=1,\dots,b \\
k=1,\dots,n}

latex output

like image 97
Seth Johnson Avatar answered Oct 11 '22 19:10

Seth Johnson