# Caption does not work with wrapfig

The following code does not output the caption correctly, font appears in normal size, and "Figure" is not boldfaced.

\begin{wrapfigure}{r}{0.5\textwidth}
\vspace{-50pt}
\begin{center}
\includegraphics[width=0.48\textwidth]{figure.png}
\end{center}
\caption{bla bla bla}
\vspace{-20pt}
\label{fig4}
\end{wrapfigure}


I use at the beginning

\documentclass{IOS-Book-Article}
\usepackage{times}
\normalfont
\usepackage[T1]{fontenc}

\usepackage{amsmath}
\usepackage{breqn}
\usepackage{graphicx}

\usepackage{float}
\usepackage{caption}
\usepackage{wrapfig}
\usepackage{algorithm}
\usepackage{algorithmic}

-
Please read section 3.1 of l2tabu-en. Thou shall not use center in float environments. –  Martin Schröder Jul 28 '11 at 21:13

The caption package does not change font size or series of captions and their labels by default. Specify formatting options as desired.

\documentclass{article}

\usepackage[font=small,labelfont=bf]{caption}
\usepackage{wrapfig}
\usepackage[demo]{graphicx}% Remove [demo] to show actual graphic

\usepackage[english]{babel}
\usepackage{blindtext}

\begin{document}

\blindtext

\begin{wrapfigure}{r}{0.5\textwidth}
\centering
\includegraphics[width=0.48\textwidth]{figure.png}
\caption{bla bla bla}
\end{wrapfigure}

\blindtext

\end{document}

-
where do oyu insert the figure here? –  flow Jul 28 '11 at 19:22
I use \rule as a placeholder for \includegraphics. –  lockstep Jul 28 '11 at 19:23
sorry, I am new to latex, could yo modify your magnificent example so that it includes also a figure loaded from disk? –  flow Jul 28 '11 at 19:34
@flow: Example edited. –  lockstep Jul 28 '11 at 19:39
yeah, now how can I tell caption to get the same samller font and boldfaced type for "Figure" as usual? –  flow Jul 28 '11 at 21:25