The error occurs because \caption and \label must be used inside a float environment like table or figure. Since you're using \sideways (from the rotating package), you need to wrap the entire sideways content in a table environment.
Here's the corrected structure:
\begin{sidewaystable}[htbp] % or [p] for a page float
\centering
\small
\begin{tabular}{
p{1cm} % Approach
p{0.75cm} % Temp.
p{1.5cm} % Name
p{2.5cm} % Context Features
p{3cm} % Parcel Features
p{3.25cm} % Activity Description
p{3cm} % Landuse Tag
p{4cm} % NOx Reasoning
r % NOx Estimate
}
\toprule
\textbf{Prompt} & \textbf{Temp.} & \textbf{Name} & \textbf{Context} & \textbf{Parcel} & \textbf{Activity} & \textbf{Landuse} & \textbf{NOx Reasoning} & \textbf{NOx Estimate} \\
\midrule
direct & 0.1 & NO\_NAME & -- & large facility, three large silos, warehouse, low office building & -- & industrial:logistics & -- & 15.000 \\
direct & 0.5 & NO\_NAME & -- & large facility, three large silos, warehouse, many containers & -- & industrial:logistics &
-- & 20.000 \\
steps & 0.1 & NO\_NAME & railway, grass field, road, storage area & several storage tanks, several containers, warehouse &
Storage and distribution of liquid and solid materials, with administrative activities. & industrial:liquid\_bulk & The parcel contains storage tanks and a warehouse, suggesting storage and distribution activities. The presence of an office building indicates administrative functions. The overall scale suggests moderate energy consumption, resulting in moderate NOx emissions. & 2000 \\
steps & 0.5 & NO\_NAME & railway, grass field, road & storage containers, trailers, warehouses, office building &
Storage and distribution of goods, with some administrative activities. & industrial:logistics &
The parcel is used for storage and distribution, with limited energy consumption beyond transportation and building operations. & 2000 \\
\bottomrule
\end{tabular}
\caption{VLM results on parcel 3910062270000 in Figure \ref{fig:vlm-example1} for both the 'steps' and 'direct' approach, and temperature 0,1 and 0,5.}
\label{tab:placeholder_label}
\end{sidewaystable}
Key changes:
- Replaced
\begin{sideways} with \begin{sidewaystable} (which is a float environment)
- Moved
\caption and \label inside the sidewaystable environment
- Added
\centering to center the table within the sideways page
- Removed the extra braces around
\small
The environment will automatically rotate the table 90 degrees and allow it to extend beyond normal margins.