I am still generating a table from a cvs file with the pgfplotstable package. In my text I will reference to the generated table but I did not know how to do this. Normal your make a \label{tab:foo} and in the text you can reference to \ref{tab:foo}. How can I do this with the pgfplotstable? For more you can see my code
\usepackage{pgfplotstable}
\usepackage{booktabs}
\begin{document}
Here should be a text which is referencing to the Table~\ref{tab:foo}. But I did not know how to make a label at the table.
\pgfplotstableset{
begin table=\begin{longtable},
end table=\end{longtable},
}
\pgfplotstabletypeset[
col sep=semicolon,
string type,
columns/Hersteller/.style={column name=Hersteller, column type={l}},
columns/Produktname/.style={column name=Produktname, column type={l}},
columns/Betriebssystem/.style={column name=Betriebssystem, column type={l}},
columns/Version/.style={column name=Version, column type={l}},
every head row/.style={before row=\toprule,after row=\toprule},
every last row/.style={after row=\hline caption={foo}},
]{./files/NFCDeviceTabletStand20121230.csv}
\end{document}
\documentclass{...}and ending with\end{document}. A tip: You can use backticks`to mark your inline code as I did in my edit. – hpesoj626 Dec 29 '12 at 15:03