所有 BiBTeX 密钥均提供相同的引用

所有 BiBTeX 密钥均提供相同的引用

我目前正在制作一个包含引文的演示文稿,在某些时候,LaTeX(或者更确切地说是 BiBTeX)将所有 BibTeX 键链接到同一个参考文献,所以现在它看起来像这样:

在此处输入图片描述

显然,这些参考文献中只有一个应该是 Carvalho et al. 2010,其他所有参考文献都有其他 bibtex 条目,这些条目具有唯一且不同的 bibtex 键。事实上,即使我重新编译一些一周前编译得很好的旧演示文稿,这种行为现在也很奇怪。这是一个 MWE:

\documentclass[t,aspectratio=169]{beamer}
%% PACKAGES
\usepackage{graphicx}
\usepackage{array,multirow}
\usepackage{float}
\usepackage{xcolor}
\usepackage{amsbsy}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{natbib}
\usepackage{bbm}

%\usetheme[style=free]{wu}

\title[Title]{\textbf{Title}\\ Subtitle}
\author[Author]{Mr Author}
\date{June 26, 2020}
\institute[]{University}

\beamerdefaultoverlayspecification{<+->}
\begin{document}
    \begin{frame}
        \titlepage
    \end{frame}

    \section{Statistical model and shrinkage estimation}
    \begin{frame}
        \frametitle{Shrinkage methods}
        \begin{itemize}
            \item Many options for shrinkage priors: Bayesian Lasso \citep{Park2008}, spike-and-slab (two-component discrete mixture prior by \cite{Mitchell1988} and \cite{George1993}), Normal-Gamma prior \citep{Griffin2010}, Horseshoe \citep{Carvalho2010}, \cite{Piironen2017}
        \end{itemize}
    \end{frame}
            
    \beamerdefaultoverlayspecification{<.->}
    \begin{frame}[allowframebreaks]
        \frametitle{References}
        \scriptsize
        \bibliographystyle{apa}
        \bibliography{BE_I_Bib}
        \normalsize
    \end{frame}
\end{document}

相应的.bib 文件(BE_I_Bib.bib)如下所示:

% Encoding: UTF-8

@Article{Park2008,
  author       = {Trevor Park and George Casella},
  journal      = {Journal of the American Statistical Association},
  title        = {The Bayesian Lasso},
  year         = {2008},
  number       = {482},
  pages        = {681-686},
  volume       = {103},
  date         = {2008},
  journaltitle = {Journal of the American Statistical Association},
}

@Article{George1993,
  author  = {George, E. I. and McCulloch, R.E.},
  journal = {Journal of the American Statistical Association},
  title   = {Variable selection via Gibbs sampling},
  year    = {1993},
  number  = {423},
  pages   = {881-889},
  volume  = {88},
}

@Article{Mitchell1988,
  author    = {T. J. Mitchell and J. J. Beauchamp},
  journal   = {Journal of the American Statistical Association},
  title     = {Bayesian Variable Selection in Linear Regression},
  year      = {1988},
  issn      = {01621459},
  number    = {404},
  pages     = {1023--1032},
  volume    = {83},
  publisher = {[American Statistical Association, Taylor & Francis, Ltd.]},
  url       = {http://www.jstor.org/stable/2290129},
}

@Article{Griffin2010,
  author    = {Griffin, Jim E. and Brown, Philip J.},
  journal   = {Bayesian Anal.},
  title     = {Inference with normal-gamma prior distributions in regression problems},
  year      = {2010},
  month     = {03},
  number    = {1},
  pages     = {171--188},
  volume    = {5},
  doi       = {10.1214/10-BA507},
  fjournal  = {Bayesian Analysis},
  publisher = {International Society for Bayesian Analysis},
  url       = {https://doi.org/10.1214/10-BA507},
}

@Article{Carvalho2010,
  author    = {Carlos M. Carvalho and Nicholas G. Polson and James G. Scott},
  journal   = {Biometrika},
  title     = {The horseshoe estimator for sparse signals},
  year      = {2010},
  issn      = {00063444},
  number    = {2},
  pages     = {465--480},
  volume    = {97},
  url       = {http://www.jstor.org/stable/25734098},
}

@Article{Piironen2017,
  author    = {Piironen, Juho and Vehtari, Aki},
  journal   = {Electron. J. Statist.},
  title     = {Sparsity information and regularization in the horseshoe and other shrinkage priors},
  year      = {2017},
  number    = {2},
  pages     = {5018--5051},
  volume    = {11},
  doi       = {10.1214/17-EJS1337SI},
  fjournal  = {Electronic Journal of Statistics},
  publisher = {The Institute of Mathematical Statistics and the Bernoulli Society},
  url       = {https://doi.org/10.1214/17-EJS1337SI},
}

@Comment{jabref-meta: databaseType:bibtex;}

我尝试了所有简单的方法:设置一个新的演示文稿和新的 bibtex 文件,更新所有软件包,在不同的软件(TeXStudio 和 TeXworks)甚至不同的操作系统(Windows 和 Linux)中进行编译,但没有任何效果,只要至少有两个参考文献,所有引用都会与同一参考文献相关联,无论使用什么 Bibtex 键。我只找到了一种手动解决问题的方法,即更改 .aux 文件中的以下部分:

\bibstyle{apa}
\bibdata{BE_I_Bib}
\bibcite{Carvalho2010}{{1}{2010}{{Carvalho et~al.}}{{}}}
\bibcite{George1993}{{2}{2010}{{Carvalho et~al.}}{{}}}
\bibcite{Griffin2010}{{3}{2010}{{Carvalho et~al.}}{{}}}
\bibcite{Mitchell1988}{{4}{2010}{{Carvalho et~al.}}{{}}}
\bibcite{Park2008}{{5}{2010}{{Carvalho et~al.}}{{}}}
\bibcite{Piironen2017}{{6}{2010}{{Carvalho et~al.}}{{}}}

问题显然出在这里,但我不知道为什么。我手动将错误分配的“Carvalho et~al.”替换为每个 bibtex 键对应的正确作者姓名。这在一次编译中有效,但只要我更改某些内容,所有内容都会再次被错误分配,我必须从头开始。任何帮助都非常感谢!

相关内容