[Tex/LaTex] TeXnicCenter, the placement specifier shows up in printed pdf

floatspositioning

I am using the jfm document class, and I tried to use a placement specifier to adjust my figure as follows.

\begin{figure}[ht]

\centerline{\includegraphics[scale=0.11]{figure3.eps}}

\caption{Averaged streamwise velocity field of (a) 0.2$\delta$ case and (b) 0.4$\delta$ case, normalized by \emph{U}$_\infty$=0.508 m s$^{-1}$. Blue is slow, white is fast.}

\label{fig:48d}

\end{figure}

However, the [ht] keeps showing up in the printed pdf right in front of the figure.

enter image description here

Could anyone tell me why this is happening?? Thanks! ;D

Best Answer

The figure environment in the jfm document class does not appear to accept optional positioning arguments. If you include them, they end up typeset as part of the figure.

\documentclass{jfm}
\begin{document}
\begin{figure}[ht]
\rule{4cm}{4cm}
\end{figure}
\end{document}

figure

An old set of guidelines for jfm.cls said the following.

The JFM class will cope with most figure positioning problems and you should not normally use the optional positional qualifiers 't', 'b', 'h' on the figure environment, as this would override these decisions.

The current version of the guidelines doesn't appear to mention this, but it is noticeable that none of the figures in jfm-instructions.tex uses optional positioning arguments. Therefore it is probably best to avoid them.

Related Question