The following is an example of a caption inside a figure environment: begin{ figure } [h!] caption{ A picture of the universe! } includegraphics[width=0.5 extwidth]{ universe } end{ figure } The caption may be put either before or after the image in the figure.
We can simply add the following command to the figure environment: We do not need to include the figure number inside the caption, because LaTeX automatically keeps track of the numbering of the figures, and it’ll display it while displaying the caption.
We can simply add the following command to the figure environment: We do not need to include the figure number inside the caption, because LaTeX automatically keeps track of the numbering of the figures, and it’ll display it while displaying the caption. The following is an example of a caption inside a figure environment: