I've been trying to get these figures side by side, but they keep ending up as stacked. I've looked at a bunch of solutions, but none of them have helped me. Here's my code:
\begin{figure}[ht]
\centering
\begin{minipage}[b]{.5\linewidth}
\centering
\includegraphics[width=.5\linewidth]{actualcapacitor.jpg}
\end{minipage}
\hfill
\begin{minipage}[b]{.5\linewidth}
\centering
\includegraphics[width=.5\linewidth]{likecapacitor.jpg}
\end{minipage}
\end{figure}
0.4\linewidth. – Jesse Mar 01 '15 at 06:38%in the correct locations in order to make two.5\linewidths fit within the line. See What is the use of percent signs (%) at the end of lines?\hfillis not necessary here. – Werner Mar 01 '15 at 06:53