Background
Using booktabs
produces the top table in the following image:
Both tables reside in floats, but even when outside of the float the same result is produced. The Application and Version columns are too wide.
LyX seems to generate the following LaTeX code:
\begin{tabular}{>{\raggedright}p{4.5cm}>{\raggedright}p{4.5cm}>{\raggedright}p{4.5cm}l}
The preamble is straightforward:
\hypersetup{
colorlinks=false,
pdfborder={0 0 0},
}
\usepackage{flafter}
\usepackage{colortbl}
\usepackage{booktabs}
The commands \toprule()
and \\\midrule %
and \\\bottomrule %
are applied directly to the table.
Questions
- Without hand-massaging each table, how can the columns be made to auto-fit?
(I could not find how to control column width in the
booktabs
documentation.) - How can the top-, mid-, and bottom-rules be applied across all tables in the document, automatically?
Thank you!