Mittwoch, 2. November 2011

Latex 001: Making a table cover the page width

The below Latex element defines a table which extends over the whole page width. Notice the 'table*' environment, which lets the table extend over two columns.

\begin{table*}[htbp]
\begin{tabular*}{\textwidth}{l@{\extracolsep\fill}lrrrr}
\\\hline
1B2V & 32 & -4.06 & 4.23 & 4.72 & 7.30\\
1DUK & 64 & -0.35 & 3.94 & 4.45 & 4.80\\
1DEK & 137 & 1.88 & 4.87 & 5.19 & 5.80\\
\end{tabular*}
\caption{Some values.}
\label{tab:values}
\end{table*}

Keine Kommentare:

Kommentar veröffentlichen