我尝试将 URL 作为参考放在图片的标题中。但似乎会出现各种错误,例如:
! Argument of \@caption has an extra }.
! Paragraph ended before \contentsline was complete.
有没有什么办法可以让它工作?
\begin{figure}[]
\centering
\includegraphics[width=0.65\textwidth]{image}
\caption{
\footnote{\url{test.com}}
}
\label{fig:label1}
\end{figure}
答案1
您可以使用footnotemark
和的组合footnotetext
。以下是 MWE:
\documentclass[11pt]{article}
\usepackage[demo]{graphicx}
\usepackage{hyperref}
\begin{document}
\begin{figure}[htp]
\centering
\includegraphics[width=0.65\textwidth]{image}
\caption[Caption for LOC]{Real caption\footnotemark}
\label{fig:label1}
\end{figure}
Anywhere on page where float appears\footnotetext{\url{test.com}}
\end{document}