I am trying to use memoir class with longtable environment, but no success:
\documentclass{memoir}
\usepackage{longtable}
\begin{document}
\begin{longtable}
\centering
\caption{Caption of the normal \texttt{table} environment.}
\begin{tabular}{rrrrrrrrr}
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1
\end{tabular}
\label{table}
\end{longtable}
\end{document}
Do the error:
test2.tex:7: Class memoir Error: Illegal pream-token (\centering): `c' used. [ \centering]
Changing longtable by table does work correctly with no errors or warnings. How to make the longtable to also work?
Related questions:
longtable? – Werner Aug 15 '17 at 17:48longtableby using the example code at the end of thelongtabledoumentation. – Werner Aug 15 '17 at 17:54{ccccccc}or some such argument. – David Carlisle Aug 15 '17 at 18:47