[Tex/LaTex] Subfigure problem caption

floatssubfloats

so I'm having this stupid problem with the subfigure captions.enter image description here

The code I'm using is:

  \usepackage{subfigure}
  \begin{document}

\begin{figure}[h!]
 \centering
  \subfloat[NACA airfoil 0012]{

    \includegraphics[width=0.15\textwidth]{12}}
  \subfloat[NACA airfoil 4420]{

    \includegraphics[width=0.15\textwidth]{4420}}
  \subfloat[NACA airfoil 4414]{

    \includegraphics[width=0.15\textwidth]{4414}}
      \subfloat[NACA airfoil 5122]{

    \includegraphics[width=0.15\textwidth]{5122}}
 \caption{QBlade wind turbine blades}

 \end{figure}
\end{document}

thanks everyone!

Best Answer

General comment: The subfigure package is deprecated. Don't use it! Instead, use the subfig package.

My main suggestion is that you use three \hfill directives to maximize the separation between the four subfigures.

enter image description here

\documentclass[twoside,twocolumn,11pt,demo]{article} 
    % remove 'demo' option in real document
\usepackage{graphicx} % for '\includegraphics' macro
\usepackage{subfig}   % for `\subfloat` macro

\begin{document}    
\begin{figure*}[h!]
  \subfloat[NACA airfoil 0012]{%
      \includegraphics[width=0.15\textwidth]{12}}\hfill
  \subfloat[NACA airfoil 4420]{%
      \includegraphics[width=0.15\textwidth]{4420}}\hfill
  \subfloat[NACA airfoil 4414]{%
      \includegraphics[width=0.15\textwidth]{4414}}\hfill
  \subfloat[NACA airfoil 5122]{%
      \includegraphics[width=0.15\textwidth]{5122}}

  \caption{QBlade wind turbine blades}

\end{figure*}
\end{document}