Graphics, Figures & Tables ⇒ Small Figure in another Figure's Caption
Small Figure in another Figure's Caption
i was wondering if there is an easy way to in insert a small figure (showing a symbol used in a diagram) in another figures caption?
Can anyone advise if there is a package that allows these type of things and how to?
Thanks
P
The \protect advise profes fine! 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
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: Small Figure in another Figure's Caption
If you want to include an image mid-text, you can use \includegraphics as usual; just don't put the usual centering tags around it and make sure your image is shorter than the height of the text.
Small Figure in another Figure's Caption
i'm trying to insert a picture mid-text in the \caption{text} and your suggestion works as long as it is not within the \caption{text} (see code bellow).
Code: Select all
\begin{figure} [t!b]
\centering
\includegraphics[scale=0.55]{mainfigure.pdf}
\caption{Text text and text (\includegraphics[scale=0.065]{symbolfigure2.png}) Text and further text}
\label{figtest}
\end{figure}
chapter5.tex:43: Undefined control sequence.
\hyper@makecurrent . . . hypertexnames \let \@number
\@firstofone \def \@fnsymb . . .
l.43 ....text text}
? chapter5.tex:43: Missing number, treated as zero.
<to be read again>
##
l.43 ....text text}
? chapter5.tex:43: Illegal parameter number in definition of \re
served@a.
<to be read again>
Thanks for further help or suggestions.
P
Small Figure in another Figure's Caption
Code: Select all
\documentclass{article}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure} [t!b]
\centering
\includegraphics[scale=0.55]{mainfigure.pdf}
\caption[Text text and text] % <= Alternative text for "List of Figures"
{Text text and text (\includegraphics[scale=0.065]{symbolfigure2.png}) Text and further text}
\label{figtest}
\end{figure}
\end{document}
Code: Select all
\documentclass{article}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure} [t!b]
\centering
\includegraphics[scale=0.55]{mainfigure.pdf}
\caption
{Text text and text (\protect\includegraphics[scale=0.065]{symbolfigure2.png}) Text and further text}
\label{figtest}
\end{figure}
\end{document}