Setting multiple tables with the same width

by Marc Schwambach   Last Updated October 09, 2019 15:23 PM - source

I believe that my problem is really straightforward and there must be an really easy way to solve this issue, however as I am quite new with Latex. I have multiple tables, all of them containing different character lengths, and what I am looking for is to set them all to the same width

 \begin{table} [h]
     \caption {Question} \label{tab:Question} 
     \begin{center}
         \begin{tabular}{llrrrrrr}
            \toprule
             \multicolumn{2}{l}{x}  & Blue \\
             \multicolumn{2}{l}{y}  & Green \\
             \multicolumn{2}{l}{z}  & Red \\
            \bottomrule
        \end{tabular}
    \end{center}
\end{table}

Now lets say that I am also using another table that look like this:

 \begin{table} [h]
     \caption {Question} \label{tab:Question} 
     \begin{center}
         \begin{tabular}{llrrrrrr}
            \toprule
             \multicolumn{2}{l}{x}  & Just a random text to illustrate \\
             \multicolumn{2}{l}{y}  & my \\
             \multicolumn{2}{l}{z}  & point \\
            \bottomrule
        \end{tabular}
    \end{center}
\end{table}

Now when I compile the tables are naturally from different sizes, given the length that is filling every column. So, what I am looking for is to make of the same width size.

Hope that I managed to be succinct and precise. I would really appreciate your help on this one!

Tags : tables tabularx


Related Questions


How to break the column in a table

Updated April 04, 2015 15:09 PM

Table issues -- off page, \newline not working

Updated April 12, 2015 21:10 PM

Draw vertical line on top of horizontal table lines

Updated April 06, 2015 17:09 PM

Fitting column width to text

Updated April 30, 2015 22:10 PM