I am trying to add a picture using:
\begin{figure}[!h!t]
\centering
\includegraphics[width=90mm]{Hollywood and Beverly Hills}
\caption{Hollywood and Beverly Hills}
\label{fig: h&bh}
\end{figure}
but am getting the error:
! Argument of \@xfloat has an extra }.
<inserted text>
\par
l.15 \begin{figure}[!h!t]
?
I want it so that the picture appears at the beginning of the document in a section that is not twocolumn, so I tried using two @columnfalse but I can't get it to work.
Here is a minimal example of my document:
\documentclass[twocolumn,12pt]{article}
\usepackage{graphicx}
\usepackage{setspace}
\doublespacing
\begin{document}
\pagestyle{plain}
\twocolumn[
\begin{@twocolumnfalse}
\begin{center}
\section*{Neighborhoods}
\end{center}
\begin{figure}[!h!t]
\centering
\includegraphics[width=90mm]{neighborhoods}
\caption{Hollywood and Beverly Hills}
\label{fig: hbh}
\end{figure}
\vspace{.25 in}
\end{@twocolumnfalse}]
\section*{Hollywood}
\section*{Beverly Hills}
\end{document}
Can someone help me fix this?
!
in the argument is an error really but the second is silently ignored, so that is not the problem. That particular error was quite common 20 years ago if code designed for latex209 was used with latex2e, but it is pretty rare these days,\begin{figure}
so TeX hasn't seen the graphic filename or label