I'm trying to include in a beamer presentation a table automatically loaded from a csv file. I'm doing the following
\usepackage{datatool}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{ctable}
\usepackage{bm}
\begin{frame}{Shotlist}
\DTLloaddb[ noheader,%
headers={%
\shortstack{Shot},%
\shortstack{Tmin [\si{s}]},%
\shortstack{Tmax [\si{s}]},%
\shortstack{I [\si{\mega\ampere}]},%
\shortstack{n},%
\shortstack{B [\si{\tesla]},%
\shortstack{P [\si{\mega\watt}]}} %
]{db}{shotlist.csv}
\begin{table}
\sisetup{
parse-numbers = false,
table-number-alignment = left,
table-figures-integer = 4,
table-figures-decimal = 4,
input-decimal-markers = .
}
\renewcommand*\dtlrealalign{S}
\centering
\DTLdisplaydb{db}
\end{table}
\end{frame}
Very strangely I can load the file it is display correctly but the header of the table are not displayed or better only the first header Shot is displayed. Maybe I should not use table, although I don't know how to display the database in this case.
filecontentspackage to provide some dummy data forshotlist.csv. – percusse May 3 '12 at 17:20