# Standalone package errors when creating table [duplicate]

Below is a MWE of a table that keeps outputting errors although it does display but not correctly.

\documentclass{standalone}
\usepackage{booktabs}
\begin{document}
\begin{table}[htbp]
\caption{An Tabl\'a Shiompal}
\begin{tabular}{rrrr}
\toprule
A     & B     & C     & D \\
\midrule
1     & x     & j     & suas \\
2     & y     & k     & s\'ios \\
3     & z     & l     & deis \\
4     & u     & m     & cl\'e \\
\bottomrule
\end{tabular}
\end{table}
\end{document}


When I replace Standalone with article it works ok. Am I missing something for the standalone usage?

@percusse thanks for that. [preview] option with standalone fixes it. I was getting the same errors as in the 2nd link above –  Leeser Jul 12 '12 at 11:40