LaTeX Guide

LaTeX Figure Caption

\caption inside figure. Convention: caption BELOW figures, ABOVE tables. \label for cross-referencing. caption package for styling.

The basic pattern

\begin{figure}[t]
  \centering
  \includegraphics[width=0.8\textwidth]{architecture.png}
  \caption{Overall system architecture.}
  \label{fig:architecture}
\end{figure}

% Reference in body:
% "Our architecture is shown in Figure~\ref{fig:architecture}."
% Or with hyperref's \autoref:
% "See \autoref{fig:architecture}." → "See Figure 1."

Caption position: figures vs tables

ElementCaption position
figureBELOW (after \includegraphics)
tableABOVE (before \begin{tabular})

Customize with the caption package

\usepackage{caption}

% Global caption settings
\captionsetup{
  font=small,           % smaller than body text
  labelfont=bf,         % bold "Figure 1:"
  format=hang,          % hanging indent for long captions
  labelsep=colon,       % "Figure 1: caption"
  justification=justified,
}

% Different settings for figures vs tables
\captionsetup[figure]{font=small, labelfont=bf}
\captionsetup[table]{font=small, labelfont=bf, position=top}

Common labelsep options

OptionOutput
colonFigure 1: caption (default)
periodFigure 1. caption
spaceFigure 1 caption
newlineFigure 1 [break] caption
endashFigure 1 – caption

Short caption for List of Figures

\caption[Short version]{
  This is the long version of the caption that appears
  under the figure but the short version goes in the
  List of Figures.
}

Unnumbered caption

\usepackage{caption}

\begin{figure}
  \centering
  \includegraphics{example.png}
  \caption*{This caption has no "Figure N:" prefix.}
\end{figure}

Common mistakes

  • Caption ABOVE the figure (or BELOW the table). Wrong by convention. Captions go below figures, above tables.
  • Forgetting \label. Without it, you can't reference the figure. Add \label{fig:name} right after \caption.
  • Using \ref alone. Produces just '1'. Use \autoref (with hyperref) or write 'Figure~\ref' for the full form.
  • Multiple \caption in one figure. Use subcaption package or sub-environments instead.
  • Caption without figure environment. \caption needs a float environment. For inline numbering use \captionof{figure}{...}.
Typst captions: figure() argument
#figure(
  image("architecture.png", width: 80%),
  caption: [Overall system architecture.]
) <arch>

// Reference: see @arch
Try TypeTeX free

Frequently Asked Questions

How do I caption a figure in LaTeX?

Inside a figure environment, add \caption{Your caption text} after \includegraphics. Convention: figures get captions BELOW the image, tables get captions ABOVE the data. Add \label{fig:name} after the caption to enable cross-referencing with \ref{fig:name}.

Should the caption go above or below the figure?

Convention: figures BELOW, tables ABOVE. This is consistent across most journal styles. Place \caption after \includegraphics for figures, and BEFORE the tabular environment for tables. Some templates override; follow the template's convention.

How do I customize the caption font and alignment?

Load the caption package: \usepackage{caption}. Then \captionsetup{font=small, labelfont=bf, format=hang, justification=justified}. font=small makes the caption smaller than body; labelfont=bf makes 'Figure 1:' bold; format=hang indents continuation lines under the start of the caption text.

How do I change the caption separator (Figure 1: vs Figure 1.)?

\captionsetup{labelsep=colon} for 'Figure 1: text' (default). labelsep=period for 'Figure 1. text'. labelsep=space for 'Figure 1 text'. labelsep=newline puts the caption on a new line below the label. APA prefers newline; IEEE prefers colon.

How do I make a multi-line caption?

Long captions automatically wrap. To control: \captionsetup{format=hang, indention=2em} hangs continuation lines indented. For very long captions, consider \caption[Short version for List of Figures]{Long version for the figure itself}.

Can I have a caption without a number?

Use \caption*{Your caption} (with the caption package). Produces caption without 'Figure N:' prefix and doesn't increment the figure counter. Useful for example figures or one-off illustrations that don't need formal cross-referencing.

How do I put captions side-by-side with the figure?

Use a minipage or wrapfig: minipage gives explicit control, wrapfig (from wrapfigure package) wraps body text around the figure. For caption beside (not above/below) the image, use a sidecap (sidecaption) package.

How do I cross-reference a figure?

Add \label{fig:architecture} after \caption inside the figure. Then \ref{fig:architecture} produces just '1'. \autoref{fig:architecture} (with hyperref) produces 'Figure 1' with a clickable link. Most authors use \autoref or 'Figure~\ref{fig:architecture}' for the explicit form.

Why is my caption misaligned (centered/left-aligned wrong)?

Default caption alignment is centered for short captions, justified for long. To force: \captionsetup{justification=centering} for always centered, justification=raggedright for left-aligned. Some journals require specific alignment — check the call for papers.

More LaTeX guides