I am trying to align some equations in the align ambient. Generally you can put the symbold & before the character you want yo align and that is it. But in this case the characters i want to align (binoms) have different widths and they does not align in their center. I would like to have binoms and vertical dots all aligned over a vertical line passing through the center of the characters. I post my code and the image of what i get and an image (made with an image editor) of what i would like to get.

&\binom{n}{n_1}&{} \text{sample text}\\
&\binom{n-n_1}{n_2}&{} \text{sample text}\\
&\vdots &{}\\
&\binom{n-n_1-\dots-n_{k-1}}{n_k} &{} \text{sample text}

What i get


1 Answer 1


You can do that with the eqparbox package, which uses a system of tags for the latex box commands, so that all boxes sharing the same tag have the width of the widest contents.




&\eqmathbox{\binom{n}{n_1}}&{} \text{sample text}\\
&\eqmathbox{\binom{n-n_1}{n_2}}&{} \text{sample text}\\
&\eqmathbox{\vdots} &{}\\
&\eqmathbox{\binom{n-n_1-\dots-n_{k-1}}{n_k}} &{} \text{sample text}


enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .