BibLaTeX - 仅可能存在 3 个参考

BibLaTeX - 仅可能存在 3 个参考

我正在使用 BibLaTeX 模板来制作参考书目,目前我一次只能在文章中显示 3 个参考文献。请问有人能告诉我为什么会这样,以及如何显示更多参考文献。

这是我的代码:

\usepackage[backend=biber,style=authoryear,natbib=true]{biblatex} 
\addbibresource{bibliography.bib} 

\begin{thebibliography}{1}

@booklet{Reference1,
    Author = {B.Cook},
    Title = {An alternative Model of Cosmology},
    Year = {2010}}

@book{Reference2,
    Author = {P.Coles},
    Title = {Cosmology: A very short introduction},
    Publisher = {UOP Oxford},
    Year = {2001}}

@book{Reference3,
    Author = {V.H.Ironside},
    Title = {Behold! I Teach You Superman},
    Publisher = {Malleus Maleficus},
    Year = {2010}}

@mastersthesis{Reference4,
    Author = {S.Bhargava},
    Title = {Type Ia Supernovae and Testing   Inhomogenious Models of Cosmology},
    School = {University College London},
    Year = {2016}}

\end{thebibliography}

\printbibliography[heading=bibintoc]

仅显示前 3 个参考。

答案1

我根据您提供的 rar 信息准备了一份 MWE。

请看下面的代码:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@booklet{Reference1,
  Author = {B. Cook},
  Title  = {An alternative Model of Cosmology},
  Year   = {2010},
}
@book{Reference2,
  Author = {P. Coles},
  Title = {Cosmology: A very short introduction},
  Publisher = {UOP Oxford},
  Year = {2001},
}
@book{Reference3,
    Author = {V.H. Ironside},
    Title = {Behold! I Teach You Superman},
    Publisher = {Malleus Maleficus},
    Year = {2010},
}
@mastersthesis{Reference4,
    Author = {S. Bhargava},
    Title = {Type Ia Supernovae and Testing   Inhomogenious Models of Cosmology},
    School = {University College London},
    Year = {2016},
}
@article{einstein,
    author =       "Albert Einstein",
    title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
    [{On} the electrodynamics of moving bodies]",
    journal =      "Annalen der Physik",
    volume =       "322",
    number =       "10",
    pages =        "891--921",
    year =         "1905",
    DOI =          "http://dx.doi.org/10.1002/andp.19053221004",
    keywords =     "physics",
}
@book{dirac,
    title={The Principles of Quantum Mechanics},
    author={Paul Adrien Maurice Dirac},
    isbn={9780198520115},
    series={International series of monographs on physics},
    year={1981},
    publisher={Clarendon Press},
    keywords = {physics},
}
\end{filecontents*}


\documentclass{article}

\usepackage[%
  backend=biber,
  style=authoryear,
  natbib=true
]{biblatex}
\addbibresource{\jobname.bib}


\begin{document}
Some \autocite{Reference4} text \cite{Reference4}.

\nocite{*} % <========== to call all uncited bib entrys to be added to bibliography
\printbibliography[heading=bibintoc]
\end{document}

为了获得正确的排序,您需要用空格分隔作者的名字和姓氏。我将其添加到您给定的 bib 条目中。例如:

@booklet{Reference1,
  Author = {B. Cook},
%             ^ added blank!
  Title  = {An alternative Model of Cosmology},
  Year   = {2010},
}

该环境thebibliography是由biblatexbiber在结果bbl文件中创建的,请勿在代码中自行使用它。

命令\nocites{*}添加全部未引用的书目条目到印刷书目中,这就是您想要和需要的......

此处仅使用软件包filecontents将 BiB 文件和 TeX 代码合并为一个编译 MWE。请不要在实际代码中使用它!

使用我给出的 MWE 进行编译后pdflatexbiber您将获得pdflatex以下pdflatex结果:

在此处输入图片描述

相关内容