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.

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

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

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}

See also:

share|improve this answer
add comment

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).

share|improve this answer
    
sorry, wrong click! Answers changed place after refresh and I didn't read. I intended to edit my own post, I rolled it back. –  Stefan Kottwitz Apr 27 '11 at 18:08
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.