I get a misplaced noalign error when I try to input a longtable
which has a \rowcolor command.
The code seems to work when pasted in, instead of input,
but I need to use input as the table is automatically generated.
Any help or workaround would be greatly appreciated.
thanks
Aidan
Code: Select all
\documentclass[10.5pt, a4paper]{article}
\usepackage[table,dvipsnames]{xcolor}
\usepackage{longtable}
\begin{document}
\begin{longtable}{
r %1
r %2
}
\caption[short]{TITLE \label{LABEL}}\\
\input{consol.tex}
\end{longtable}
\end{document}
the file consol.tex contains:
Code: Select all
\rowcolor[gray]{0.5}
Norway &2010 \\