I followed a tutorial I saw on this website, but the captions don't look right because they are too long.
This is the code I used:
\begin{figure}[h]
\centering
\begin{minipage}{.5\textwidth}
\centering
\includegraphics[height=5cm,keepaspectratio]{figures/chapter_3/p_type_materials_2012.png}
\captionof{figure}{Figure of merit of p-type semiconductors}
\label{fig:p-type-zT}
\end{minipage}%
\begin{minipage}{.5\textwidth}
\centering
\includegraphics[height=5cm,keepaspectratio]{figures/chapter_3/n_type_materials_2012.png}
\captionof{figure}{Figure of merit of n-type semiconductors}
\label{fig:n-type-zT}
\end{minipage}
\end{figure}
How can I correct this? How can I add a space in between or, if not possible for instance, send the "semicon-" to the next line? Thanks in advance!


0.45\textwidthfor example) and add\hfillbetween them. – leandriis Mar 24 '20 at 16:47%should sufficient, no ? – BambOo Mar 24 '20 at 16:48\hfillthe cpations might still end up quite close to each other. – leandriis Mar 24 '20 at 16:50