I followed the instructions here to make subfigures http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Subfloats
However there were no space between the figure and I got double brackets for the captions. I cannot find any instruction on the Internet. I hope anyone can help me here.
My code is like this
\begin{figure}[H]
\centering
\subfloat[a]{\label{fig:a}\includegraphics[width=.5\textwidth,height=15em]{appendix/1.jpg}}
\subfloat[b]{\label{fig:b}\includegraphics[height=15em]{solution.jpg}}
\caption[The short caption]{The long caption}
\label{fig:preparation}
\end{figure}
------- Update --------
Problem solved! For the spacing I used \qquad and for double brackets, I found out that I have both packages subfigure and subfig enabled. I deleted package subfigure then I get single brackets as expected.
Thank you all for helping me solve this problem!


\hfillbetween the two figures. – Dror Oct 17 '11 at 12:29textwidthto\textwidthand addinggraphicxwith thedemooption (since I don't have your pictures) I get the following output: i.imgur.com/BwUIV.png , which seems fine to me. If there is a problem there, can you explain what it is? If not, there is a problem on your end that the example does not illustrate. – Roelof Spijker Oct 17 '11 at 12:35