I'm trying to insert a picture in the caption to illustrate something. How can I do that?
Currently, I use the following code, the tex engine prompts uncontrolled sequence error.
\caption{Some caption words. \raisebox{-0.4\height}{\includegraphics[width=1em]{fig}} some other caption words.}
\begin{document} \begin{figure} \caption{Some caption words. \protect\includegraphics[width=1em, height=2ex]{fig} some other caption words.} \end{figure} \end{document}
– Zarko Aug 16 '19 at 19:35(observe commandprotect`!)