我正在使用最新版本的 MikTeX 和 TexMaker(大约两周前全新安装)。我非常沮丧,因为我完全无法在任何文档中使用 BibLatex。这是一个 MWE:
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[english]{babel}
\usepackage{csquotes,textcomp}
\usepackage{mathrsfs}
\usepackage[backend=biblatex,style=numeric]{biblatex}
\addbibresource{citelist.bib}
\title{An examination of two dimensional direct and indirect excitons}
\author{Matthew Brunetti}
\begin{document}
...
Words.~\cite{zaslow2d}
...
\printbibliography
\end{document}
我的 citelist.bib 具有正确的格式:
@article{zaslow2d,
author = "Zaslow, B.",
author = "Zandler, Melvin E.",
title = "Two-Dimensional Analog to the Hydrogen Atom",
journal = "Am. J. Phys.",
year = "1966"
}
....
还应该注意的是,输入\cite{
做使 TexMaker 调出一个自动完成表单,其中包含我在 citelist.bib 中找到的所有引文条目。此外,我尝试使用 biber 和 biblatex 后端,但没有成功。我使用 MikTex 包管理器安装和更新 Biblatex 包和 biber 包。
当我尝试使用 pdflatex + biblatex + pdflatex x2 构建 PDF 时,我收到了许多错误,包括在包含的行上“排序列表的使用与其定义不匹配”,在包含\end{abstract}
\begin{eqnarray}` 的行上出现多个“未定义的控制序列”,警告我的引用未定义(尽管正如我所说,TexMaker 知道它们在那里并提供自动完成功能给我),“警告:空参考书目”,等等。
Biblatex 是否与 Windows 10 上的 TexMaker 和 MikTex 不兼容?我该如何解决这个问题?
编辑:我已根据以下三条评论进行了更改,但仍无法编译该文档。以下是文档的开头:
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[english]{babel}
\usepackage{csquotes,textcomp}
\usepackage{mathrsfs}
\usepackage{multirow}
\usepackage[margin=0.75in]{geometry}
\usepackage{graphicx}
\graphicspath{ {images/} }
\usepackage[backend=biber,style=numeric,sortlist=nty]{biblatex}
\addbibresource{citelist.bib}
\title{(Title)}
\author{(name)}
\begin{document}
\nocite{*}
\maketitle
\begin{abstract}
在底部我有:
\printbibliography{citelist.bib} (line 315)
\end{document}
当我跑步时仅有的Biber,使用(此链接)中的说明[Biblatex 与 Biber:配置我的编辑器以避免未定义的引用,该过程正常运行。当我尝试使用 pdflatex + biblatex + pdf latex X2 快速构建时,我收到以下错误:package keyval error: sortlist undefined [many equation cross references undefined] line 315: empty bibliography please rerun biber on the file: (biblatex) "(name of this file)" (biblatex) and rerun latex subsequently
我仍然不明白我做错了什么,或者为什么会出现这些错误以及如何修复它们。请帮忙。我已经为此挣扎了将近一个星期,这让我抓狂不已。
编辑 2:当我运行以下 MWE 时,我的文档会编译并显示 PDF 输出sharelatex.com。我仍然收到有关 keyval 包的错误消息,这对我来说仍然毫无意义。
编辑 3:我将发布(我希望是)来自我的 .log 文件的相关数据,如下所示:
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/biblatex.sty
Package: biblatex 2016/03/03 v3.3 programmable bibliographies (PK/JW/AB)
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/biblatex_.sty
Package: biblatex_ 2016/03/03 v3.3 programmable bibliographies (biber) (PK/JW/A
B)
(c:/texlive/2015/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)
(c:/texlive/2015/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)
Package biblatex Info: Trying to load biblatex default data model...
Package biblatex Info: ... file 'blx-dm.def' found.
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/blx-dm.def)
Package biblatex Info: Trying to load biblatex style data model...
Package biblatex Info: ... file 'numeric.dbx' not found.
Package biblatex Info: Trying to load biblatex custom data model...
Package biblatex Info: ... file 'biblatex-dm.cfg' not found.
Package biblatex Info: Trying to load compatibility code...
Package biblatex Info: ... file 'blx-compat.def' found.
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/blx-compat.def
File: blx-compat.def 2016/03/03 v3.3 biblatex compatibility (PK/JW/AB)
)
Package biblatex Info: Trying to load generic definitions...
Package biblatex Info: ... file 'biblatex_.def' found.
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/biblatex_.def
File: biblatex_.def
\c@textcitecount=\count285
\c@textcitetotal=\count286
\c@textcitemaxnames=\count287
\c@biburlnumpenalty=\count288
\c@biburlucpenalty=\count289
\c@biburllcpenalty=\count290
\c@smartand=\count291
)
Package biblatex Info: Trying to load bibliography style 'numeric'...
Package biblatex Info: ... file 'numeric.bbx' found.
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
File: numeric.bbx 2016/03/03 v3.3 biblatex bibliography style (PK/JW/AB)
Package biblatex Info: Trying to load bibliography style 'standard'...
Package biblatex Info: ... file 'standard.bbx' found.
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/bbx/standard.bbx
File: standard.bbx 2016/03/03 v3.3 biblatex bibliography style (PK/JW/AB)
\c@bbx:relatedcount=\count292
\c@bbx:relatedtotal=\count293
))
Package biblatex Info: Trying to load citation style 'numeric'...
Package biblatex Info: ... file 'numeric.cbx' found.
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx
File: numeric.cbx 2016/03/03 v3.3 biblatex citation style (PK/JW/AB)
Package biblatex Info: Redefining '\cite'.
Package biblatex Info: Redefining '\parencite'.
Package biblatex Info: Redefining '\footcite'.
Package biblatex Info: Redefining '\footcitetext'.
Package biblatex Info: Redefining '\smartcite'.
Package biblatex Info: Redefining '\supercite'.
Package biblatex Info: Redefining '\textcite'.
Package biblatex Info: Redefining '\textcites'.
Package biblatex Info: Redefining '\cites'.
Package biblatex Info: Redefining '\parencites'.
Package biblatex Info: Redefining '\smartcites'.
)
Package biblatex Info: Trying to load configuration file...
Package biblatex Info: ... file 'biblatex.cfg' found.
(c:/texlive/2015/texmf-dist/tex/latex/biblatex/biblatex.cfg
File: biblatex.cfg
)
*File List*
biblatex.sty 2016/03/03 v3.3 programmable bibliographies (PK/JW/AB)
biblatex_.sty 2016/03/03 v3.3 programmable bibliographies (biber) (PK/JW/AB)
biblatex-dm.cfg
blx-compat.def 2016/03/03 v3.3 biblatex compatibility (PK/JW/AB)
biblatex_.def
最后编辑:感谢所有试图帮助我的人。我明白为什么这个问题应该关闭,因为我将我的 LaTeX 发行版从 miktex 更改为 texlive。我几乎放弃了 BibLaTeX,转而使用包amsrefs
和bibdiv
环境。它在我第一次尝试时没有出现任何问题,并且似乎具有与biblatex
声称相同的所有功能,特别是自包含的参考书目文件和带有简单参考键的组织引用条目。
再次感谢您的帮助。干杯!