Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
Can you please complete your code to a compilable Minimal Working Example (MWE) ? Also you can use filecontents package to provide some dummy data for shotlist.csv. – percusse May 3 '12 at 17:20
I've solved on my own. For some reasons there was a problem with the csv file with incorrect number of commas. – Nicola Vianello May 4 '12 at 8:03
OK, this is 'too localized' then. – Joseph Wright May 4 '12 at 8:11

closed as too localized by percusse, Joseph Wright May 4 '12 at 8:11

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.