怎么给图片添加脚注呢?
#877
Replies: 3 comments
-
就我的了解而言,目前对于浮动体环境没有太好的做法,大概只能 \documentclass{sjtuthesis}
\usepackage{hyperref}
\begin{document}
\begin{figure}
\begin{subfigure}{0.45\textwidth}
\caption{特斯拉自动驾驶汽车\protect\footnotemark}
\end{subfigure}
\end{figure}
\footnotetext{\url{https://www.tesla.cn/drive}}
\end{document} 这个例子将脚注写在了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
当然我更推荐的一种做法是将图片引用信息写在参考文献中。 \documentclass{sjtuthesis}
\usepackage[style=gb7714-2015]{biblatex}
\addbibresource{ref.bib}
\begin{document}
\begin{filecontents}{ref.bib}
@misc{tesla,
title = {Tesla},
url = {https://www.tesla.cn/drive},
}
\end{filecontents}
\begin{figure}[h]
\begin{subfigure}{0.45\textwidth}
\caption{特斯拉自动驾驶汽车\cite{tesla}}
\end{subfigure}
\end{figure}
\printbibliography
\end{document} |
Beta Was this translation helpful? Give feedback.
0 replies
-
谢谢
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年12月29日(周四) 上午10:58
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [sjtug/SJTUThesis] 怎么给图片添加脚注呢? (Discussion #877)
就我的了解而言,目前对于浮动体环境没有太好的做法,大概只能 \footnotemark 和 \footnotetext 分开,将 \footnotetext 写在想要出现页的文字位置。
\documentclass{sjtuthesis} \usepackage{hyperref} \begin{document} \begin{figure} \begin{subfigure}{0.45\textwidth} \caption{特斯拉自动驾驶汽车\protect\footnotemark} \end{subfigure} \end{figure} \footnotetext{\url{https://www.tesla.cn/drive}} \end{document}
这个例子将脚注写在了 \caption 里,需要加 \protect 保护。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我这样写了它只显示标号,用footnotemark和footnotetext的形式,图和文本不在一页。
\begin{figure}[!hbtp]
\centering
\subcaptionbox{谷歌自动驾驶汽车}%
{\includegraphics[width=0.4\textwidth]{figures/waymo.png}}
\hspace{1cm}
\subcaptionbox{特斯拉自动驾驶汽车}%
{\includegraphics[width=0.4\textwidth]{figures/tesla.jpg}}
\hspace{1cm}
\subcaptionbox{百度自动驾驶汽车}%
{\includegraphics[width=0.4\textwidth]{figures/baidu.png}}
\hspace{1cm}
\subcaptionbox{小马自动驾驶汽车}%
{\includegraphics[width=0.4\textwidth]{figures/pony.jpg}}
\bicaption{不同厂商的自动驾驶汽车产品}
{Self-driving car products from different manufacturers}
\label{fig:self-driving car products}
\footnote{hhhh}
\footnote{\url{https://waymo.com/intl/zh-cn}}
\footnote{\url{https://www.tesla.cn/drive}}
\footnote{\url{https://www.apollo.auto}}
\footnote{\url{https://www.pony.ai}}
\end{figure}
Beta Was this translation helpful? Give feedback.
All reactions