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.

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

1 Answer 1

up vote 4 down vote accepted

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}
share|improve this answer
    
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
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.