Hello,

Is it possible to use the \foreach loop inside a tabular?. This minimal 
examples fails:

\usepackage{pgfplots, booktabs}
\begin{document}

\begin{tabular}{ *{3}{c} }
1 & 2 & 3    \\
\foreach \x in {1,2,3}{
    \cmidrule{\x-\x}
}
\end{tabular}

\end{document}

with the error:

! Emergency stop.
\cmidrule ->\noalign 
                     {\ifnum 0=`}\fi \@ifnextchar [{\@cmidrule }{\@cmidrule ...


TIA,
Joel.


------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to