[Tex/LaTex] minipage caption overrides

captionsfloatshorizontal alignment

I am using two mini pages side by side. The caption of both the figures are too long, that the caption of both the figures merges each other. I would like them to be separated by some space.enter image description here

*edited

\begin{figure}
\begin{minipage}{0.48\textwidth}
\includegraphics[width=0.97\linewidth]{a.eps}
\captionof{figure}{pectrogram of original speech signal (top), artificially bandlimited speech signal (middle), bandwidth extended speech (bottom)}
\end{minipage}
\begin{minipage}{0.48\textwidth}
\includegraphics[width=0.97\linewidth]{b.eps}
\captionof{figure}{pectrogram of original speech signal (top), artificially bandlimited speech signal (middle), bandwidth extended speech (bottom)}
\end{minipage}
\end{figure}

Any help would be appreciable

Best Answer

You don't need \captionof here. Add a \hfill in between two minipages.

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{kantlipsum}
\begin{document}
  \begin{figure}
  %\centering
\begin{minipage}{0.48\textwidth}
\centering
\includegraphics[width=0.97\linewidth]{a}
\caption{\kant*[1]}
\end{minipage}
\hfill
\begin{minipage}{0.48\textwidth}
\centering
\includegraphics[width=0.97\linewidth]{b}
\caption{\kant*[1]}
\end{minipage}
\end{figure}
\end{document}

enter image description here