views:

179

answers:

1

Hello,

I have a latex document, which works fine but when ever I try to add in an image with a figure caption it gives me an error saying there are to many }'s.

\begin{figure}[h!]
  \caption{A picture of a gull.}

  \includegraphics[width=0.5\textwidth]{uml-usecase/overview.png}
\end{figure}

My current packages are:

\usepackage{amsfonts}

\usepackage{amssymb,amsmath}


\usepackage{amsthm}

\usepackage{newlfont}

%\usepackage{graphicx}

\usepackage{tabularx}

\usepackage{longtable}

\usepackage{lscape}

\usepackage{rotating}

\usepackage{latexsym}

\usepackage{natbib}

\usepackage{geometry}

\usepackage{fancyhdr}

\usepackage{xthesis}

\usepackage{xtocinc} %Include Table of Contents as the first entry in TOC

\usepackage{subfigure}

\usepackage{times}

\usepackage{hyperref}

\usepackage{xcolor}

\usepackage[dvips]{graphicx}

\bibpunct[, ]{(}{)}{;}{a}{,}{,}

As far as I can see its right, can anyone figure out where I am going wrong?

Thanks

A: 

The solution to this problem was the package "rotation" when removed, allowed the figure caption to work.

Thanks for all the help!

Kyle
Because `rotation` loads `graphicx` if not loaded yet. You can also put `\usepackage[dvips]{graphicx}` before `\usepackage{rotation}`. But what has this to do with "too many }'s"???
Meinersbur