我在 Bib.bib 中有以下引用
@article{abramov_gordon_feldman_chavarga,
title={Sex \& vision I: Spatio-temporal resolution},
volume={3},
DOI={10.1186/2042-6410-3-20},
number={1},
journal={Biology of Sex Differences},
author={Abramov, Israel and Gordon, James and Feldman, Olga and Chavarga, Alla},
year={2012},
pages={20}
}
我的幻灯片如下:
然而,footcite 并没有显示报纸的年份,2012
我查阅了其他几篇文章,但它们不是关于 footcite 的,而是关于创建自定义引用的,而且方法通常很复杂。
是否可以对下面的代码进行简单的修改,使我能够使用 footcite 生成脚注中的年份信息?
\documentclass{beamer}
\usepackage[style=authortitle,backend=bibtex]{biblatex}
\addbibresource{bib.bib}
\usepackage{bibentry}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{transparent}
%Information to be included in the title page:
\title{Sample title}
\author{Anonymous}
\institute{ShareLaTeX}
\date{2017}
\begin{document}
\setbeamercovered{transparent}
\frame{\titlepage}
\begin{frame}
\frametitle{Unbeatable Slide}
\begin{itemize}
\item<1-> My First Citation \footcite{abramov_gordon_feldman_chavarga}
\end{itemize}
\end{frame}
\end{document}
答案1
您可以修补cite
宏以添加日期:
\usepackage{xpatch}
\xpatchbibmacro{cite}
{\usebibmacro{cite:title}}
{\usebibmacro{cite:title}%
\setunit{\addcomma\space}%
\usebibmacro{date}}
{}
{}
完整 MWE:
\documentclass{beamer}
\usepackage[style=authortitle,backend=bibtex]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{abramov_gordon_feldman_chavarga,
title={Sex \& vision I: Spatio-temporal resolution},
volume={3},
DOI={10.1186/2042-6410-3-20},
number={1},
journal={Biology of Sex Differences},
author={Abramov, Israel and Gordon, James and Feldman, Olga and Chavarga, Alla},
year={2012},
pages={20}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\usepackage{xpatch}
\xpatchbibmacro{cite}
{\usebibmacro{cite:title}}
{\usebibmacro{cite:title}%
\setunit{\addcomma\space}%
\usebibmacro{date}}
{}
{}
\begin{document}
\begin{frame}
\frametitle{Unbeatable Slide}
\begin{itemize}
\item<1-> My First Citation \footcite{abramov_gordon_feldman_chavarga}
\end{itemize}
\end{frame}
\end{document}