Caption refuses to go above the table, even when it is called before tabular environment. A similar issue is mentioned in threads elsewhere, and it has been mentioned in the chemstyle documentation that the package makes the positioning of the caption itself irrelevant. It offers two fixes, depending on whether one uses float or floatrow. Neither work, and in any event my caption is stuck below the table, whereas the examples in the chemstyle documentation indicate that the caption should be stuck above the table, and offer solutions to move it below:
9.2 Captions above floats
The scheme float type is generated using either the float or floatrow package. This has the side-effect that the placement of captions for floats does not depended on where the
\captioncommand comes inside the floating environment. If you wish to alter the placement of captions, the mechanism of the underlying package will be needed. There are some subtle differences between the two: although floatrow provides the float macros, they are not all 100 % compatible. This document is compiled using floatrow, and so to fix the position of captions the following code is appropriate.\begin{table}[ht] \fbox{First float contents} \caption{A caption below the float contents in the source.} \end{table} \floatsetup[table]{style=plain} \begin{table}[ht] \fbox{Second floatcontents} \caption{A second caption below the float contents in the source.} \end{table}Using the float package, the same effect is achieved using:
\begin{table}[ht] \fbox{First float contents} \caption{A caption below the float contents in the source.} \end{table} \floatstyle{plain} \restylefloat{table} \begin{table}[ht] \fbox{Second float contents} \caption{A second caption below the float contents in the source.} \end{table}
My document:
\documentclass{book}
\usepackage{floatrow}
\usepackage{caption}
\usepackage{chemstyle}
\begin{document}
\chapter{Introduction}
\begin{table}[ht]
\caption{Blah.}
\begin{tabular}{c}
\hline\noalign{\smallskip}
\hline\noalign{\smallskip}
Heading\\[1ex]
\hline\noalign{\smallskip}
Stuff\\
\hline
\end{tabular}
\label{meh}
\end{table}
\end{document}
Removing the chemstyle package fixes the problem... but obviously I'm using it for other things.
\listfilesoutput) to understand this issue. – Joseph Wright♦ Oct 3 '11 at 11:24