我想在使用 Beamer 在幻灯片上引用时生成以下格式。
现在我正在手动生成这个,但我希望 latex+bibtex 自动完成。我该如何实现?
我的文件如下所示:
\documentclass[aspectratio=169]{beamer}
\usetheme[hideothersubsections]{Hannover}
\setbeamertemplate{bibliography item}{[\theenumiv]}
\defbeamertemplate{footline}{center page number}
{
\vspace{-12pt}
\hspace*{6.4cm}%
\usebeamercolor[fg]{page number in foot}%
\usebeamerfont{page number in foot}%
{\insertpagenumber\,/\,\insertpresentationendpage}
\hspace*{6cm}\vskip2pt
}
\begin{document}
\frame{
In addition, we provide guidance in the application of the method for experimental groups\cite{HarrisSongKiang2007,YuGuptaLiuEtAl2012,WedekindReguera2008}.
\footnotetext{\tiny\hspace{-16.5pt}\cite{HarrisSongKiang2007} N. C. Harries et al., Phys Rev Lett., 99,2007\\ \cite{YuGuptaLiuEtAl2012} H. Yu et al., Proc. Natl. Acad. Sci.,109, 2012.\\ \cite{WedekindReguera2008} J. Wedekind and D. Reguera. J. Phys. Chem. B, 112, 2008.\\ }
}
\section*{References}
\begin{multicols}{2}[
\frametitle{\insertsection}
\usebeamertemplate{frametitle}]
\tiny{\bibliographystyle{unsrt}}
\bibliography{BibliographyDataBase}
\end{multicols}
\end{document}
我尝试过 Natbib 和 BibLatex,但没有成功。
答案1
我使用 biblatex + 在序言中定义新命令来解决这个问题
\documentclass[aspectratio=169]{beamer}
\usetheme[hideothersubsections]{Hannover}
\usepackage[style=numeric-comp,backend=bibtex,url=false,isbn=false,sorting=none]{biblatex}
\addbibresource{Bibliography.bib}
\AtNextBibliography{\tiny}
\DeclareFieldFormat*{title}{#1}
\DeclareFieldFormat{author}{#1\addcomma}
\renewbibmacro{in:}{}
\DeclareFieldFormat{journaltitle}{#1\addcomma}
\DeclareFieldFormat{year}{#1}
\DeclareFieldFormat{pages}{}
\AtEveryBibitem{% suppress unnecessary fields
\clearfield{pages}%
\clearfield{number}
\clearfield{doi}%
\clearfield{url}%
\clearfield{eprint}%
\clearfield{abstract}
}
\defbeamertemplate{footline}{center page number}
{
\vspace{-12pt}
\hspace*{6.4cm}%
\usebeamercolor[fg]{page number in foot}%
\usebeamerfont{page number in foot}%
{\insertpagenumber\,/\,\insertpresentationendpage}
\hspace*{6cm}\vskip2pt
}
\setbeamertemplate{bibliography item}{\insertbiblabel}
% This comand extracts the info necesary from fields on citation
\newcommand{\fcite}[1]{\cite{#1}\, \citeauthor{#1}, \citefield{#1}{journaltitle}, \citeyear{#1}.}
\begin{document}
\frame{
In addition, we provide guidance in the application of the
method for experimental
groups\cite{HarrisSongKiang2007,YuGuptaLiuEtAl2012,WedekindReguera2008}
\footnotetext{\tiny\fcite{HarrisSongKiang2007}\fcite{YuGuptaLiuEtAl2012}\fcite{WedekindReguera2008}}.
}
\section*{References}
\begin{multicols}{2}[
\frametitle{\insertsection}
\usebeamertemplate{frametitle}]
\printbibliography
\end{multicols}
\begin{end}
结果是相同的,并且在格式化单个框架脚注时节省了大量的时间。