哟,我在尝试加载包含网址的正确书目时遇到了问题。我试图将 biber 与 BibDesk 生成的输出一起使用。但我甚至无法正确运行 biber。
我也在使用 TexShop(MacTeX 中的那个),并且我已经通过在 TeXShop>Preferences>Engine 中将 BibTeX Engine 更改为 biber 来配置我的编辑器
BibDesk 生成的输出的一个示例是 HoTT.bib
@article{Kapulkin:2012rm,
Abstract = {In this largely expository paper, we construct and investigate a model of the Univalent Foundations of Mathematics in the category of simplicial sets.},
Author = {Chris Kapulkin and Peter LeFanu Lumsdaine},
Date-Added = {2017-02-05 09:31:04 +0000},
Date-Modified = {2017-02-05 09:31:04 +0000},
Eprint = {1211.2851},
Month = {11},
Title = {The Simplicial Model of Univalent Foundations (after Voevodsky)},
Url = {https://arxiv.org/abs/1211.2851},
Year = {2012},
Bdsk-Url-1 = {https://arxiv.org/abs/1211.2851}}
,从语法上看似乎是正确的。
我正在尝试编译文件 HoTT.tex。为了完整起见,我将列出我需要使用的所有包、文档类和 .tex 文件中的新命令。但我相信它们不是问题所在
\documentclass[12pt, a4 paper, twoside]{article}
\usepackage{amssymb, amsmath, amscd, amsthm}
\usepackage{mathrsfs}
\usepackage{indentfirst}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{matrix, arrows, decorations.pathmorphing}
\usepackage{tikz-cd}
\usepackage{fancyhdr}%preciso ver depois !!!%
\usepackage[letterpaper, margin=1in]{geometry}
\usepackage{enumitem}
\usepackage{authblk}
\usepackage[sort cites=true, backend=biber]{biblatex}
\providecommand{\keywords}[1]{\textbf{\textit{Keywords---}} #1}
\keywords{Homotopy Type Theory, Categorical Logic, Homotopy Theory, Quasi-categories, \ensuremath{(\infty,1)}-categories, Higher Elementary Topoi}
\begin{document}
\nocite{*}
\bibliography{HoTT}
\end{document}
当尝试运行 biber 时,我收到以下错误
INFO - This is Biber 2.7
INFO - Logfile is 'HoTT.blg'
ERROR - HoTT.bcf is malformed, last biblatex run probably failed. Deleted HoTT.bbl
INFO - ERRORS: 1
答案1
格式错误bcf
表示 pdflatex 运行有误。因此请检查是否存在错误。
一个明显的错误是放错了位置:在序言中始终 \bibliography
使用\addbibresource{HoTT.bib}
(或已弃用的) 与 biblatex。\bibliography