I want to build a table form a list (using pgffor package):
\newcommand{\tablecontent}{
\foreach \theproduct in \productlist {
\getproductcount{\theproduct} &
\getproductdescr{\theproduct} &
\getproductprice{\theproduct}\\\hline
}
}
And then use it to create a table like this:
\begin{tabularx}{\textwidth}{c|c|c}
.... \\% title row
\tablecontent
.... \\% total row
\end{tabularx}
But I have the following error:
Extra }, or forgotten \endgroup.
\foreachcan't operate beyond `table cells' which form a TeX group – Sep 05 '17 at 14:57csvsimpleordatatoolpackages. – Bernard Sep 05 '17 at 15:35