# How to add a caption or description to a graphic

I'm writing a paper for one of my classes that requires me to include some graphs. I've been able to include the desired graphs without too much trouble, and I've been able to center them and size them the way I want without too much trouble either. The part that I can't figure out is how to add a description to each figure, preferably at the bottom of each one. I realize that the code is probably a mess overall and that there are probably much easier ways to do it, but I'm still very new at Latex and I basically have to look up how to do each step. If anyone could let me know how to add a caption to the bottom of each graphic and what package or packages I need to use to do that, it would be much appreciated. The code for the graphics is included below.

\begin{center}
\includegraphics[scale=.17]{First5CatalanNumbers.png}
\hspace{1.3cm}
\includegraphics[scale=.17]{First10CatalanNumbers.png}
\end{center}

\vspace{1cm}

\begin{center}
\includegraphics[scale=.17]{First15CatalanNumbers.png}
\hspace{1.3cm}
\includegraphics[scale=.17]{First20CatalanNumbers.png}
\end{center}

\vspace{1cm}

\begin{center}
\includegraphics[scale=.17]{First25CatalanNumbers.png}
\hspace{1.3cm}
\includegraphics[scale=.17]{First30CatalanNumbers.png}
\end{center}


If figure is used instead of center, then one simply can use \caption:

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\begin{figure}
\centering
\includegraphics[scale=.17]{example-image}
\hspace{1.3cm}
\includegraphics[scale=.17]{example-image}
\end{figure}

\begin{figure}
\centering
\includegraphics[scale=.17]{example-image}
\hspace{1.3cm}
\includegraphics[scale=.17]{example-image}
\end{figure}

\begin{figure}
\centering
\includegraphics[scale=.17]{example-image}
\hspace{1.3cm}
\includegraphics[scale=.17]{example-image}
\end{figure}

\end{document}


Alternatively the caption package and \captionof{}{}:

\documentclass{article}

\usepackage{caption}
\usepackage{graphicx}

\begin{document}

\begin{center}
\includegraphics[scale=.17]{example-image}
\hspace{1.3cm}
\includegraphics[scale=.17]{example-image}
\end{center}

\vspace{1cm}

\begin{center}
\includegraphics[scale=.17]{example-image}
\hspace{1.3cm}
\includegraphics[scale=.17]{example-image}
\end{center}

\vspace{1cm}

\begin{center}
\includegraphics[scale=.17]{example-image}
\hspace{1.3cm}
\includegraphics[scale=.17]{example-image}
\end{center}

\end{document}


Each image with its own caption:

\documentclass{article}

\usepackage{caption}
\usepackage{graphicx}

\begin{document}

\begin{minipage}{.4\textwidth}
\centering
\includegraphics[scale=.17]{example-image}
\end{minipage}
\hfill
\begin{minipage}{.4\textwidth}
\centering
\includegraphics[scale=.17]{example-image}
\end{minipage}

\begin{minipage}{.4\textwidth}
\centering
\includegraphics[scale=.17]{example-image}
\end{minipage}
\hfill
\begin{minipage}{.4\textwidth}
\centering
\includegraphics[scale=.17]{example-image}
\end{minipage}

\begin{minipage}{.4\textwidth}
\centering
\includegraphics[scale=.17]{example-image}
\end{minipage}
\hfill
\begin{minipage}{.4\textwidth}
\centering
\includegraphics[scale=.17]{example-image}

• @AlexAdinolfi Only seconds ago I wrote an answer how to place two things besides each other: tex.stackexchange.com/a/484408/185617 If you place each image in a separate minipage you can have a \captionof for each of them – user185617 Apr 11 at 20:40