when I'm defining a new columntype in an afterpage environment, LaTeX fail with an error:
Latex Error: ./chapters/chapter3.tex:149 Illegal parameter number in definition of \AP@.
When removing the nowcolumntype declaration and replacing "C" with "p" it works, so it seems to be a problem with afterpage.
I'm using the pdflscape package
\afterpage{
\begin{landscape}
\begin{table}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\begin{center}
\begin{tabular}{|C{2.0cm}|C{2.0cm}}
\hline
1 1 & 1 2\\
2 1 & 2 2\\
\hline
\end{tabular}
\end{center}
\end{table}
\end{landscape}
}