I'm using beamer with subfigure. I would center it but doesn't work. Why? A MWE follows:
\documentclass{beamer}
\mode<presentation>
\usetheme{Warsaw}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{frame}
\begin{figure}\centering
\parbox{1.3in}{
A
}
\qquad
\begin{minipage}{1.3in}
B
\end{minipage}
\end{figure}
\end{frame}
\end{document}

\parboxdoesn't carry on the\centeringcommand and resets to justified text. – egreg May 8 '12 at 10:00%after the{behind\parbox, otherwise you the line break will be taken as a space which will effect the effective alignment. – Martin Scharrer♦ May 8 '12 at 10:58