Is it possible to create a table with with a dynamic number of columns that depend on some given width, e.g., \textwidth? For example, given a fixed-width table t with size(t) <= 0.5\textwidth that has three columns and looks as follows,
A & B & C \\
D & E & F \\
G & H & I \\
J & K & L \\
I am asking if it is possible to translate it dynamically into something like:
A & B & C & G & H & I \\
D & E & F & J & K & L \\

