I am using the following code to list 3 figures in one line. It is working well and showing the figure if I remove the \subcaption
for each figure. However, when I include the (\subcaption
)s, it shows the figure with the subcaptions but with error shown in the image below. Any suggestion(s)?
\begin{figure}[H]
%A
\centering
\begin{minipage}[t]{\dimexpr.355\textwidth-1em} % 0.335 represents the horizontal spacing
\centering
\includegraphics[width=\textwidth]{Fig14_VOL1_Annotated}
\subcaption{ CA $ < \ang{90}$}
\label{Fig14:A}
\end{minipage}\hfill
%B
\begin{minipage}[t]{\dimexpr.355\textwidth-1em}
\centering
\includegraphics[width=\textwidth]{Fig14_volumegreater90Annotated}
\subcaption{CA $ > \ang{90}$}
\label{Fig14:B}
\end{minipage}\hfill
%C
\begin{minipage}[t]{\dimexpr.355\textwidth-1em}
\centering
\includegraphics[width=\textwidth]{Fig14_vmiddlev1withannotation}
\subcaption{CA $=\ang{90}$}
\label{Fig14:C}
\end{minipage}\hfill
\caption{Volume and contact angle calculations according to CA value }
\label{Fig.14}
\end{figure}
Best Answer
Try the following: