I have been trying to put side by side figures and have tried many options but couldn't get the success. I want to put 3 images as following attached image WITH CAPTIONS. If someone can help me, that would be awesome [I did try and search A LOT... Like REALLY A LOT]. Thanks.
Asked
Active
Viewed 743 times
1 Answers
3
Try the subcaption package. The following code produces the output below.
\documentclass{article}
\usepackage{tikz} % just for the boxes
\usepackage{subcaption}
\begin{document}
\begin{figure}\centering
\begin{subfigure}[b]{4.2cm}
\tikz\draw(0,0)rectangle(4,9);
\caption{Caption1}\label{fig:1}
\end{subfigure}
\quad
\begin{tabular}[b]{@{}c@{}}
\begin{subfigure}[b]{4.2cm}
\tikz\draw(0,0)rectangle(4,4);
\caption{Caption2}\label{fig:2}
\end{subfigure}\\
\begin{subfigure}[b]{4.2cm}
\tikz\draw(0,0)rectangle(4,4);
\caption{Caption3}\label{fig:3}
\end{subfigure}
\end{tabular}
\caption{Main caption}\label{fig:main}
\end{figure}
\end{document}
gernot
- 49,614
-
how should I install this package in Lyx? – bobsacameno Nov 22 '18 at 16:49
-
I don't use lyx, but you probably find information with google, like here: Use custom latex package in LyX – gernot Nov 22 '18 at 17:36

