Sunday, October 21, 2018

How to add Sub-figure in Latex

Latex is a great tool to document the research papers. Although it struggles with some manual function coding but still is wonderful to maintain formatting of the document better than MS Word and other similar editors. This post talks about adding subfigures in the figure tab (acc. to following example) of the Latex.


\begin{figure}[b!]
\centering

\begin{subfigure}{0.3\textwidth}
\includegraphics[width=\linewidth]{ar1.jpg}
\caption{Forged Image}
\end{subfigure}

\begin{subfigure}{0.29\textwidth}
\includegraphics[width=\linewidth]{ar2.jpg}
\caption{Original Image}
\end{subfigure}

\caption{Another example of Digital Image Forgery}
\label{fig:figex2}

\end{figure}

The code will make the things possible by using \begin{subfigure}------\end{subfigure} block. you can even create reference to a particular sub figure in the image. i have mentioned that in my another post.

Happy Latexing........