我已经使用过
\usepackage[style=mla,babel=hyphen,backend=biber]{biblatex}
这是我的ref.bib
文件
@BOOK{HK,
AUTHOR={H. Kopka and P. W. Daly},
TITLE={A Guide to LaTeX},
PUBLISHER={Addison-Wesley},
ADDRESS={Reading, MA},
YEAR=1999.
}
@misc{git1,
author = {Robert Kingston},
title = {A simple javascript multivariate testing framework},
year = {2013},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/jamesyu/cohorts}},
commit = {5d0f2cc8aa769ddb407869faac1ecf268677c6b9}
}
这是我的框架
\begin{frame}[fragile]{Implementation of Multivariate Testing}
\begin{itemize}
\item Need to specify variation of elements on a Page \footcite{git1}
\begin{minted}{javascript}
Cohorts.Options.debug = true;
font_test = new Cohorts.Test({
name: 'hello-goodbye',scope: 1,//Set the scope
sample: 1, cohorts: { hello: {
onChosen: function() {
$('p.message').html('Register');}},
goodbye: {
onChosen: function() {
$('p.message').html('Submit');}},},
\end{minted}
\item All results can be accessed from the Google Analytics dashboard
\end{itemize}
\end{frame}
唯一\footcite
显示的数字是 2
答案1
首先说明一下:请在您的第一个 bib 条目中更改YEAR=1999.
为YEAR=1999,
(将点更改为逗号)。
通过对您所用的其他样式进行一些测试,mla
可以清楚地发现样式本身mla
就是问题所在。
biblatex
例如,如果您改变样式style=authoryear-comp,
,一切都会顺利进行,并且您的足迹也会得到很好的展示。
结论:
这种风格biblatex-mla
有缺陷。我建议不要使用它(或者请维护者纠正它)。因为我不了解这种风格(也不想花时间研究它),所以我不能告诉你一种替代的风格。请查阅文档。
请尝试以下 MWE(并使用注释和取消注释两种风格):
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@BOOK{HK,
AUTHOR = {H. Kopka and P. W. Daly},
TITLE = {A Guide to LaTeX},
PUBLISHER = {Addison-Wesley},
ADDRESS = {Reading, MA},
YEAR = 1999,
}
@misc{git1,
author = {Robert Kingston},
title = {A simple javascript multivariate testing framework},
year = {2013},
publisher = {GitHub},
journal = {GitHub repository},
commit = {5d0f2cc8aa769ddb407869faac1ecf268677c6b9},
howpublished = {\url{https://github.com/jamesyu/cohorts}},
}
\end{filecontents*}
\documentclass{beamer}
\usepackage{lmodern}
\usepackage[%
style=authoryear-comp,
% style=mla,
autolang=hyphen,
backend=biber
]{biblatex}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
%\usepackage{hyperref}
\hypersetup{colorlinks=true}
\begin{document}
\begin{frame}[fragile]{Implementation of Multivariate Testing}
\begin{itemize}
\item Need to specify variation of elements on a Page\footcite{git1}
\item All results can be accessed from the Google Analytics dashboard
\end{itemize}
\end{frame}
\begin{frame}
\textcite{knuth:ct:e} \cite{git1} \textcite{git1}
\end{frame}
\begin{frame}
\frametitle{Bibliography}
\printbibliography
\end{frame}
\end{document}
结果如下: