# How can i set the width of a table?

How can i set the minimum width of a table? I want to have a series of tables that are all the same width?

I would use the tabularx package. An argument to the tabularx environment specifies the table width, X columns share the available space.

A simple example:

\usepackage{tabularx}

\begin{tabularx}{.8\textwidth}{lXXr}
left column & text & text & right column
\end{tabularx}


• @user1709076 It's setting the table width depending on the text width, as 80% of the current text width. – Stefan Kottwitz Oct 19 '19 at 13:18
• is there any way to set the width of the table in inches? – user1709076 Oct 19 '19 at 13:22
• @user1709076 Sure, such as \begin{tabularx}{4in}{lXXr} – Stefan Kottwitz Oct 19 '19 at 13:27

Use a tabular* environment, with @{\extracolsep{\fill}}, as in

\begin{tabular*}{.5\linewidth}{@{\extracolsep{\fill}}ccc}
One& Two& Three\\
Four& Five& Six
\end{tabular*}


(where you replace .5\linewidth with something wide enough for all of the tables).