Hi here,
I know this is not an auctex related problem, but I would like to see
some experience from others in solving this problem.
With the attached file as an example, I always encounter the following
error during compiling it:
ERROR: LaTeX Error: \caption outside float.
--- TeX said ---
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.9 \caption
{Caption to table}
--- HELP ---
>From the .log file...
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
But I really can't find a way to solve this problem gracefully. Any
tips will be appreciated.
Regards,
Zhao
--
Assoc. Prof. Hongsheng Zhao <[email protected]>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
\documentclass{iucr}
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true]
{hyperref}
\begin{document}
\begin{table}[h]
\caption{Caption to table}
\begin{tabular}{llcr} % Alignment for each cell: l=left, c=center, r=right
HEADING & FOR & EACH & COLUMN \\
\hline
entry & entry & entry & entry \\
entry & entry & entry & entry \\
entry & entry & entry & entry \\
\end{tabular}
\end{table}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: