Here are my examples and the output.
\begin{center}
\begin{tabular}{lp{.8\linewidth}}
Group ID: & $1 \quad 2 \quad 3 \quad 4 \quad 5 \quad 6 \quad 7 \quad 8 \quad 9 \quad 10 \quad 11 \quad 12 \quad 13 \quad 14 \quad 15$\\
$\underbrace{\text{Group size}}_\text{\# of overlaps}$: & $\underbrace{3 \quad 3}_1 \quad 3 \quad \underbrace{6 \quad 6}_2 \quad 6 \quad \underbrace{9 \quad 9}_3 \quad 9 \quad \underbrace{15 \quad 15}_5 \quad 15 \quad \underbrace{24 \quad 24}_8 \quad 24$\\
\end{tabular}
\end{center}
What I wish to achieve is to align each of the group ID numbers with its size below it. The two rows cannot align perfectly now is due to the under braces.
Moreover, I wish to indicate number of overlapping variables between groups in the second row. I did it by using underbrace
, as shown in the second row. And the notation for this is done by \underbrace{\text{Group size}}_\text{\# of overlaps}
. The minor question is, does this notation look professional? Or is there a better way to convey this information. I am working on a research paper so wish to be a little professional.
Update:
A new issue occurred. If Group size
is all 10, the alignment issue came up again, and none of current solutions can handle that. How could this new issued be fixed? Thanks.