Answers for "images side by side latex"

-2

latex how to make two images side by side

documentclass{article}
usepackage[demo]{graphicx}
usepackage{caption}
usepackage{subcaption}	% You need this package for subfigures

begin{document}

begin{figure}
centering
begin{subfigure}{.5textwidth}
  centering
  includegraphics[width=.4linewidth]{image1}
  caption{A subfigure}
  label{fig:sub1}
end{subfigure}%
begin{subfigure}{.5textwidth}
  centering
  includegraphics[width=.4linewidth]{image1}
  caption{A subfigure}
  label{fig:sub2}
end{subfigure}
caption{A figure with two subfigures}
label{fig:test}
end{figure}
Posted by: Guest on March-25-2021

Code answers related to "images side by side latex"

Browse Popular Code Answers by Language