In my document I have a couple of tables that each have to columns. I'd like to make the first column of all tables the same width, and the second column of each table should consume the rest of the page.

The second requirement I could achieve with tabularx and using X. However, I do not know how I can make the first column of each table the same size without specifying an exact size. I do not want to specify an exact size since I want the first columns of all tables to have the minimal width that is necessary to display the longest text in the first column in any table. Is there any way to achieve that without specifying a concrete width?

1 Answer 1


I would like to add this as a comment, but I don't have the reputation for that. You could try it with ltxtable. It combines tabularx and longtable. You can use a longtable with the X column and you can use the \kill command of longtable. With it you can paste the longest first column in each table and then kill it. This row will not appear but it will still be used to measure the width of the table. Of course then other rows shouldn't be longer than the first row.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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