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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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}
