Graphics, Figures & Tables ⇒ Figure in a caption of a figure... is it possible?
Figure in a caption of a figure... is it possible?
is there a way to insert a figure in the caption of a figure?
It is not easy to do, but there must be a way...
Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Figure in a caption of a figure... is it possible?
figure
, because a figure
environment is a floating environment an a float inside the \caption
of a float does not make any sense. But you can use an image, e.g., \includegraphics
.If you need more specific help, please show us a


Figure in a caption of a figure... is it possible?
Thank you for your answer.Ijon Tichy wrote:Not afigure
, because afigure
environment is a floating environment an a float inside the\caption
of a float does not make any sense. But you can use an image, e.g.,\includegraphics
.
If you need more specific help, please show us aminimal working example and explain, what you are trying to do.
Yes, not a
figure
but an \includegraphics
.Is there a way to insert an
\includegraphics
in a caption? This is an example.Code: Select all
\begin{figure}[t]
\centering
\includegraphics[width=1\columnwidth,page=1]{the_main_figure.pdf}
\caption{
the figure is of type \includegraphics[scale=0.1]{a_second_figure.pdf}
}
\end{figure}
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Figure in a caption of a figure... is it possible?
But unfortunately not a complete/workable one: →Giaco_O wrote:This is an example.
Code: Select all
\begin{figure}[t] \centering \includegraphics[width=1\columnwidth,page=1]{the_main_figure.pdf} \caption{ the figure is of type \includegraphics[scale=0.1]{a_second_figure.pdf} } \end{figure}

This one does work using an up-to-date LaTeX and graphicx version:
\documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure} \centering \includegraphics[width=1\columnwidth,page=1]{example-image-a} \caption{% the figure is of type \includegraphics[scale=0.1]{example-image} } \end{figure} \end{document}
