我有两个并排的图,每个图都有自己的标题。我想将图像源放在每个图的脚注中,并将脚注与所有其他脚注一起显示在页面底部。下面示例中使用的方法没有达到预期/想要的结果。有人知道有没有办法实现这个吗?
\begin{figure}[H]
\begin{minipage}{0.40\textwidth}
\centering
\includegraphics[width=0.75\textwidth]{images/picture1.jpg}
\caption[desc]{desc \footnote{source 1 url}}
\end{minipage}\hfill
\begin{minipage}{0.40\textwidth}
\centering
\includegraphics[width=0.75\textwidth]{images/picture2.jpg}
\caption[desc]{desc \footnote{source 2 url}}
\end{minipage}
\end{figure}
答案1
也许你喜欢以下解决方案:
\documentclass{article}
\usepackage{graphicx}
\usepackage[skip=1ex, font=small, labelfont=bf]{caption}
\usepackage{tabularx}
\usepackage{copyrightbox} % <---
\makeatletter
\renewcommand{\CRB@setcopyrightfont}{%
\footnotesize
\color{black!80!white} % <--- you can select black because
}
\makeatother
\usepackage{url}
\begin{document}
\begin{figure}[ht]
\centering
\begin{tabularx}{\linewidth}{XX}
\copyrightbox[b]{\includegraphics[width=\linewidth]{example-image-a}}
{source: \url{https://tex.stackexchange.com/questions/531908}}
& \copyrightbox[b]{\includegraphics[width=\linewidth]{example-image-b}}
{source: \url{https://tex.stackexchange.com/questions/531908}} \\
\caption[left]{description of the left figure}
& \caption[right]{description of the right figure}
\end{tabularx}
\end{figure}
\end{document}
答案2
类似这样的事情可能会有效:
\documentclass{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{subcaption}
\begin{document}
\begin{figure}[H]
\begin{minipage}[b]{0.40\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{example-image-a}
\end{minipage}\hfill
\begin{minipage}[b]{0.40\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{example-image-b}
\end{minipage}
\begin{minipage}[t]{0.40\textwidth}
\captionof{subfigure}[desc]{desc \protect\footnotemark[1]}
\end{minipage}\hfill
\begin{minipage}[t]{0.40\textwidth}
\captionof{subfigure}[desc]{desc \protect\footnotemark[2]}
\end{minipage}
\caption{Figure caption}
\end{figure}
\footnotetext[1]{source 1 url}
\footnotetext[2]{source 2 url}
\end{document}
附言:也许您应该使用\footnotetext
下一页中的另一页中的命令......