overleaf side by side figures code example
Example: figures in latex side by side
\documentclass{article}\usepackage{graphicx}\begin{document}\begin{figure}[!tbp] \centering \begin{minipage}[b]{0.4\textwidth} \includegraphics[width=\textwidth]{flower1.jpg} \caption{Flower one.} \end{minipage} \hfill \begin{minipage}[b]{0.4\textwidth} \includegraphics[width=\textwidth]{flower2.jpg} \caption{Flower two.} \end{minipage}\end{figure}\end{document}