Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

关于如何在图片标题上加入参考文献上标的解决方法 #6

Closed
ShevonKuan opened this issue May 20, 2024 · 0 comments
Closed

Comments

@ShevonKuan
Copy link
Owner

原因

latex默认限制在\footnote, \chapter, \section以及\caption等位置使用\cite\footnote等产生脚标或上标的命令当然可以使用\protect来绕过该限制,如

\caption{\protect\overcite{}}

但是该方法会导致目录中也出现上下标因此有如下解决方法

最佳解决实践

感谢 @Dora0529 提出的解决方法。

\begin{figure}[htbp]
    \centering
    \includegraphics[width=1\linewidth]{image/<image_name>.png}
    \caption[<显示在目录的标题名称>]{<显示在正文的标题名称>\protect\overcite{<参考文献>}}
\end{figure}
@ShevonKuan ShevonKuan pinned this issue May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant