1

Currently using Texmaker and using this line of code:

\begin{figure}[h!]
\includegraphics[scale=.5]{Figures/Blah}
\caption{\label{Blah} BLAH BLAH}
\end{figure}

Everything worked with several other figures until I tried to add a new figure. Now I get these error messages for every figure despite deleting the new figure I added.

! LaTeX Error: Not in outer par mode.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... \begin{figure}[h!]
! Undefined control sequence.\@xfloat@LaTeX ...f \fi \global \setbox \@currbox\color@vbox \normalcolor \... \begin{figure}[h!]
! Missing number, treated as zero

\documentclass[aps, prl, twocolumn, floatfix, final, letterpaper, citeautoscript, superscriptaddress]{revtex4} 
\usepackage{graphicx} 
\usepackage{subfigure} 
\usepackage{natbib} 
\usepackage{amsmath} 
6
  • are you using the package float or subfloat?
    – dustin
    May 5, 2013 at 18:38
  • 1
    Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – jub0bs
    May 5, 2013 at 18:47
  • \documentclass[aps, prl, twocolumn, floatfix, final, letterpaper, citeautoscript, superscriptaddress]{revtex4} \usepackage{graphicx} \usepackage{subfigure} \usepackage{natbib} \usepackage{amsmath} May 5, 2013 at 18:50
  • @StevenButton remove subfigure and add float and subfloat. I believe subfigure will complain when used with float. You can have subfig and wrapfig with then though.
    – dustin
    May 5, 2013 at 18:51
  • No change when including float and subfloat May 5, 2013 at 18:56

0

Browse other questions tagged .