Latex-在图形中插入参考';标题
在Latex中,我想在图例中添加一个参考,如:Latex-在图形中插入参考';标题,latex,figure,caption,Latex,Figure,Caption,在Latex中,我想在图例中添加一个参考,如: \begin{figure} ... \caption{This is the legend of this figure (reprinted from \cite{something}).} ... \end{figure} 但引文不允许放在标题中,只能放在正文中。 我的参考书目是在其他地方的文本 有什么建议吗 谢谢找到了解决方案:写\protect\cite{ref}而不是只写\cite{ref} 或者更简短一些:“{\c
\begin{figure}
...
\caption{This is the legend of this figure (reprinted from \cite{something}).}
...
\end{figure}
但引文不允许放在标题中,只能放在正文中。
我的参考书目是在其他地方的文本
有什么建议吗
谢谢找到了解决方案:写
\protect\cite{ref}
而不是只写\cite{ref}
或者更简短一些:“{\cite{ref}}”因为被接受的答案似乎很粗糙(而且对我来说也不起作用),我将发布我的问题解决方案:
\begin{figure}
...
\caption[Cap for listoffigures]{Cap below figure with cite \cite{source}}
...
\end{figure}
编译时不会出现错误和警告。我使用Xeletex编译,在标题中看不到引用。将它封装在
\protect{}
中也没有效果。我不知道PdfLaTeX,但这在xelatex
中不起作用。这确实解决了我使用PdfLaTeX
时的问题。对于我(PdfLaTeX),\protect起作用,但封装在{}中对超链接无效--\protect\hyperlink{supp1}{补充链接1}而不是\hyperlink{supp1}{Supplemental link 1}