Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to make a staggered table, essentially the first row of the table would have 1 cell, the second row would have 2 cells, the third row 3 cells and so on. Is there a way to do this with the tabular? If not what package would I want to use?

share|improve this question
2  
Welcome to TeX.sx! –  Kurt Mar 4 '13 at 3:02
add comment

1 Answer

up vote 6 down vote accepted

It's certainly possible to create a staggered table with the tabular environment. For instance:

\documentclass{article}
\begin{document}
\begin{tabular}{*{10}{c}}
\hline
1 \\
1 & 2 \\
1 & 2 & 3 \\
1 & 2 & 3 & 4 \\
1 & 2 & 3 & 4 & 5 \\
\hline
\end{tabular}
\end{document}

Note that this particular tabular environment has only 5 columns (and rows) even though it is set up to have up to 10 columns. Nothing bad happens if you define the environment to have more columns than you end up using.

You haven't told us anything about the desired column properties across different rows. Thus, the example above may not meet your needs should the cell contents need to be aligned/formatted differently on each row.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.