我正在准备一个科学投影仪演示。一个要求是将编号参考资料与每张幻灯片放入脚注中。除了空间问题外,这还引发了许多问题:
- \footcite显然,无论在哪里使用,都会创建一个脚印。但由于我的引用应该与整个幻灯片相关,而不是某个要点,所以我想抑制脚印的出现。在这个问题中,使用\脚注文本已经提出,但这能对 BibLaTeX 有帮助吗?\footcite命令,还是我们需要某种解决方法?
- 理想情况下,我希望脚注的形式为“[X]完整参考“,所以我们再次需要删除前面的脚注标记。“X”是与引用顺序相对应的数字。实现这一点的一个想法可能是使用数字样式引用一次,使用详细样式引用第二次。但是,如何摆脱脚注标记呢?
正如所希望的,这是一个最小的例子:
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamerfont{footnote}{size=\tiny}
\usepackage{filecontents}
\begin{filecontents}{test-bib.bib}
@online{firstSource,
title = "This is my first source",
author = "Robert Petersson",
url = "https://www.my-new-website.org/firstSub/secondSub/thirdSub.htm", % As to simulate realistically long URLs
}
@article{secondSource,
author = "Peter Parker",
title = "Another Source",
journaltitle = "Unknown Journal",
date = "2012-12-21",
url = "https://www.example.org",
urldate = "2012-12-30"
}
@image{anImageSource,
author = "Image Creator",
title = "Paper in which image was found",
date = "2013-04-05"}
\end{filecontents}
\usepackage[
sorting=none, % Use citation order
style=numeric % Primarily cite numbers
% style=verbose % Primarily cite full reference
]{biblatex}
\addbibresource{test-bib.bib}
\begin{document}
\begin{frame}{My test frame}
\footnotetext[1]{\cite{firstSource} \fullcite{firstSource}}
\footnotetext[2]{\cite{secondSource} \fullcite{secondSource}}
\footnotetext[3]{\cite{anImageSource} \fullcite{anImageSource}}
\begin{figure}
\includegraphics[width=.3\linewidth]{example-image-a}
\caption{Example Image A\footnotemark[3]}
\end{figure}
\end{frame}
\end{document}
简而言之:如何实现“[X]”形式的脚注完整参考“,完全抑制脚注中通常会产生的所有小数字?\全引Marijn 的建议已经非常接近了。现在该如何去掉脚注标记呢?
答案1
我现在想出了以下解决方法:
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamerfont{footnote}{size=\tiny}
\usepackage{filecontents}
\begin{filecontents}{test-bib.bib}
@online{firstSource,
title = "This is my first source",
author = "Robert Petersson",
url = "https://www.my-new-website.org/firstSub/secondSub/thirdSub.htm", % As to simulate realistically long URLs
}
@article{secondSource,
author = "Peter Parker",
title = "Another Source",
journaltitle = "Unknown Journal",
date = "2012-12-21",
url = "https://www.example.org",
urldate = "2012-12-30"
}
@image{anImageSource,
author = "Image Creator",
title = "Paper in which image was found",
date = "2013-04-05"}
\end{filecontents}
\usepackage[
sorting=none, % Use citation order
style=numeric % Primarily cite numbers
% style=verbose % Primarily cite full reference
]{biblatex}
\addbibresource{test-bib.bib}
\usepackage{tabularx}
\newcommand*{\doublecite}[1]{\cite{#1}&\fullcite{#1}\\}
\newcommand*{\fakefootnotes}[1]{%
\vfill
\rule{.5\linewidth}{.5pt}\\[.5em]
{\tiny
\begin{tabularx}{\linewidth}{@{}l@{\hspace{1mm}}X}
#1
\end{tabularx}
}
}
\begin{document}
\begin{frame}{My test frame}
\begin{figure}
\includegraphics[width=.3\linewidth]{example-image-a}
\caption{Example Image A \cite{anImageSource}}
\end{figure}
\fakefootnotes{
\doublecite{anImageSource}
\doublecite{firstSource}
\doublecite{secondSource}
}
\end{frame}
\end{document}
我没有真正使用 LaTeX 的脚注机制,而是只是模拟了它们。事实上,我甚至认为这个表格解决方案看起来相当不错。它只有一个问题:
虽然脚注可能按照预期浮动到文本区域的底部,但其下方仍有很多空间(与问题中给出的 MWE 相反,脚注占用了所有底部空间)。我假设保留的空间是页脚。在我的特定情况下,这不会成为问题,因为我的演示文稿中使用了页脚。一个问题可能是\vfill强制所有上方的文字顶部对齐。