Sér*_*gio 27 latex caption figure
在Latex中,我想在图形的图例中添加一个引用,如:
\begin{figure}
...
\caption{This is the legend of this figure (reprinted from \cite{something}).}
...
\end{figure}
Run Code Online (Sandbox Code Playgroud)
但引文不允许放在标题中,仅在文本中.我的参考书目正在研究文本的任何其他地方.
有什么建议怎么做?
谢谢
Sér*_*gio 50
找到解决方案:写\protect\cite{ref}而不是仅仅\cite{ref}
甚至更短:'{\ cite {ref}}'
由于公认的答案似乎很hacky(并且对我也不起作用),我将针对该问题发布我的解决方案:
\begin{figure}
...
\caption[Cap for listoffigures]{Cap below figure with cite \cite{source}}
...
\end{figure}
Run Code Online (Sandbox Code Playgroud)
编译时不会出现错误和警告。