# Problem with figures captions

## Hello, it's me again :D

I have problem with figures captions.

I'd like to make my two figures nearby and the captions so that they do not overlap. But it all fell apart.

\documentclass[a4paper, 12pt, twoside]{mwrep}

\usepackage[cp1250]{inputenc}
\usepackage{polski}
\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage[font=small,labelfont=bf,labelsep=period,justification=centerlast]{caption}\usepackage{floatrow}

\begin{document}[h]
\begin{figure}

\ffigbox[\FBwidth]
\caption{Text}\label{...}

\includegraphics[width=0.4\textwidth]{2}
\end{figure}
\end{document}


• It should be

\begin{document}
\begin{figure}[h]


\begin{document}[h]
\begin{figure}

• It should be

\ffigbox[\FBwidth]
{\caption{Text}\label{...}}
{\includegraphics[width=0.4\textwidth]{2}}


\ffigbox[\FBwidth]

Notice the extra set of brackets {} around caption and includegraphics
• +1, however for float placement is better to use [ht] than [h] :-) – Zarko Jan 13 at 16:09
• @Zarko I agree =) However, the author used h so I kept his original version (even if I personally disagree) – N3buchadnezzar Jan 13 at 16:18