I am generating Latex file which contains tables and now I am looking for best multi-page table enviroment. I found longtabu environment which looks good but I have a few problems with it.
For example, I have a code like this:
\documentclass[11pt]{article}
\usepackage{tabu, booktabs, ltablex}
\begin{document}
\begin{longtabu} {|X[c]|X[c]|X[c]|}
\hline
\rowfont{\bfseries}
First & Second & Third \\
\hline
akjdsnakjsdnasd & aosidjaosidjoasdasasdasd & asdasd\\
akjdsnakjsdnasd & aosidjaosidjoasdasasdasd & asdasd\\
akjdsnakjsdnasd & aosidjaosidjoasdasasdasd & asdasd\\
\hline
\end{longtabu}
\end{document}
Output is
Text of the first and the last column has smaller width than the second one. Is it possible to consider this while using X[c] and render correct table?
Something like this but using X[c], not only c.
My code is generated so I can't set the width manually. Do you have any ideas how to do it? Thanks.


c9which have the natural width of the text) or columns that allow linebreaking (which break to a specified width, even if no text is there) thetabularypackage/environment does make an attempt to choose a width depending on the amount of text in the column, although doesn't break over pages without a bit of work – David Carlisle Nov 13 '15 at 19:06tabuyou can add the-1option to not have the width set, tryX[-1,c]– ArTourter Nov 13 '15 at 19:36