开发者

Latex: add figure to caption

开发者 https://www.devze.com 2023-01-31 10:47 出处:网络
I would like to know how I can add a figure to the caption of a figure. I want to keep the Figure number prefix.

I would like to know how I can add a figure to the caption of a figure. I want to keep the Figure number prefix.

I'm doing the following:

\begin{figure*}[!ht] 
\centerline{\includegraphics{results.pdf}}
\caption{Caption, \includegraphics{arrow.pdf} caption.}
\label{fig:01}
\end{figure*}

But latex does not allow \includegraphics in the开发者_运维技巧 caption.

Thanks for your help.

Cheers, ukrania


I just found the solution. It is necessary to use the \protect statement.

Like the following example:

 \begin{figure*}[!ht] 
 \centerline{\includegraphics{results.pdf}}
 \caption{Caption, \protect\includegraphics{arrow.pdf} caption.}
 \label{fig:01}
 \end{figure*}

Hope it helps other people with the same problem.

Cheers, ukrania

0

精彩评论

暂无评论...
验证码 换一张
取 消