Answers for "two figures next to each other latex"

11

latex two figure side by side

documentclass[10pt,a4paper]{article}
usepackage[demo]{graphicx}
usepackage{subfig}
begin{document}
begin{figure}
    centering
    subfloat[label 1]{{includegraphics[width=5cm]{img1} }}
    qquad
    subfloat[label 2]{{includegraphics[width=5cm]{img2} }}
    caption{2 Figures side by side}
    label{fig:example}
end{figure}
end{document}
Posted by: Guest on April-10-2020
0

figures next to eatch other latex

% By using subfigure this is ashived 

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 October-12-2021

Code answers related to "two figures next to each other latex"

Browse Popular Code Answers by Language