I'm writing a document that has a lot of figures, and as a result is quickly growing in size. I want to bring the page count down if possible, and I'd like to do it by placing the figures side by side.
I know I can do it manually by using two minipages inside a figure, but I want latex to place them for me, since I don't really care what figures are placed side by side.
Setting width=0.45\textwidth
made it smaller, but it didn't get the figures to go side by side, even without centering them.
Is there any way to set this up by default?
The environment I'm using:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[htbp]
\includegraphics[width=0.45\textwidth]{example-image-a}
\end{figure
\end{document}
I don't want someone to write code for me, I just need a starting point for where to look.
subfigure
environment from thesubcaption
package, if the figures side by side are to be considered as subfigures of a main figure. If they're supposed to be independent figures, there's thefloatrow
package.example-image
s so it saves us some work.