Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Avoid paragraph due to trailing empty line in standalone file
How to make a standalone document with one equation?

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}
\addlinespace
\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?

Using TexnicCenter and MikTeX, latest versions.

share|improve this question

marked as duplicate by percusse, egreg, Paulo Cereda, barbara beeton, Claudio Fiandrino Jul 12 '12 at 12:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Also related : algorithmicx crashes standalone –  percusse Jul 12 '12 at 11:12
    
@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

Browse other questions tagged or ask your own question.