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.

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} 
share|improve this question

closed as too localized by Heiko Oberdiek, Stefan Kottwitz May 5 '13 at 19:27

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
are you using the package float or subfloat? –  dustin May 5 '13 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}. –  Jubobs May 5 '13 at 18:47
    
\documentclass[aps, prl, twocolumn, floatfix, final, letterpaper, citeautoscript, superscriptaddress]{revtex4} \usepackage{graphicx} \usepackage{subfigure} \usepackage{natbib} \usepackage{amsmath} –  Steven Button May 5 '13 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 '13 at 18:51
    
No change when including float and subfloat –  Steven Button May 5 '13 at 18:56

Browse other questions tagged or ask your own question.