I want to test landscape tables, and started with the sideways environment. However the code does not compile, I get the error:
(./content/landscapetable.tex
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.6 \begin{center}
Here is a minimal example:
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{caption}
\usepackage{rotating}
\begin{document}
\begin{sideways}
\begin{center}
\centering
% \captionsetup{type=table}
% \caption{Sehr breite Tabelle.}
\begin{tabularx}{0.8\textheight}{XXX}
\hline
head & head & head \\
\hline
text which is considereably longer than
the width of the column &
text which is considereably longer than
the width of the column &
text which is considereably longer than
the width of the column \\
\hline
\end{tabularx}
\end{center}
\end{sideways}
\end{document}
Remove the sideways environment, and it compiles.
EDIT: when the center env is removed, and centering is left and the caption is introduced again another error with the caption occurs.
\begin{sideways}
\centering
\captionsetup{type=table}
\caption{Sehr breite Tabelle.}
\begin{tabularx}{1.0\textheight}{*{6}{X}}
\hline
head & head & head & head & head & head \\
...
\end{tabularx}
\end{sideways}
The error is then
! Missing \endgroup inserted.
<inserted text>
\endgroup
l.5 \caption{Sehr breite Tabelle.}
With sidewaystable it works, but that is not what I want.