如何在標題中插入圖像

如何在標題中插入圖像

我正在嘗試在標題中插入圖片來說明某些內容。我怎樣才能做到這一點?

目前,我使用以下程式碼,tex引擎提示不受控制的序列錯誤。

\caption{Some caption words. \raisebox{-0.4\height}{\includegraphics[width=1em]{fig}} some other caption words.}

答案1

您可能不希望圖像出現在表格清單中,因此請使用

\caption[short form]{long form with \includegraphics{...}}

脆弱的命令不會出現在用於目錄的「移動參數」中,並且錯誤將會消失。

相關內容