Latex - 在图形标题中插入引用
在Latex中,我想在图例中添加引用,例如:
\begin{figure}
...
\caption{This is the legend of this figure (reprinted from \cite{something}).}
...
\end{figure}
但引用不允许放置在标题中,只能放置在文本中。 我的参考书目正在研究文本的任何其他地方。
有什么建议如何做到这一点?
谢谢
In Latex, I want to add a reference in the legend of a figure, like:
\begin{figure}
...
\caption{This is the legend of this figure (reprinted from \cite{something}).}
...
\end{figure}
but the citation is not allowed to be placed in the the caption, only in the text.
My bibliography is working on any other places of the text.
Any suggestions how to do this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到的解决方案:编写
\protect\cite{ref}
而不是仅仅\cite{ref}
或者甚至更短: '{\cite{ref}}'
Solution found: write
\protect\cite{ref}
instead of just\cite{ref}
Or even shorter: '{\cite{ref}}'
由于接受的答案似乎相当hacky(并且对我来说也不起作用),我将发布我的问题解决方案:
编译时没有错误和警告。
As the accepted answer seems rather hacky (and also didn't work for me) I will post my solution for the problem:
This compiles without errors and warnings.