My code is like this, but the title of subfigure is with line-break, which looks very ugly? How can I solve it?
\begin{figure}[!ht]
\centering
\subfloat[Subgraph]{
\label{fig:subg}
\includegraphics[width=0.2\textwidth]{subg.eps}
}\qquad
\subfloat[Induced subgraph]
{
\includegraphics[width=0.2\textwidth]{indsubg.eps}
}
\caption{Subgraph and induced subgraph.}
\label{fig:ind}
\end{figure}
Best Answer
You can make the figure a little wider by using some spaces to its left and right (I removed some spurious blank spaces from your code):
Another option is to use the
width
option for\captionsetup
: