biblatex 和 biber 的问题

biblatex 和 biber 的问题

我曾尝试让 biber 在我的计算机上运行,​​但没有成功。我到处搜索,并阅读了所有与 biblatex-biber 相关的帖子,但似乎没有什么能奏效。这是一个最小(不工作)的示例:

\documentclass[12pt]{article}
\usepackage[style=numeric,backend=biber]{biblatex}
\addbibresource{../../bibliographies/example}


\begin{document}
let's cite \cite{ho1995}

\printbibliography
\end{document}

当我尝试使用 TexShop 通过执行 Latex -> Bibtex -> Latex 常用路径(我之前将“首选项”->“Bibtex”引擎从 bibtex 修改为 biber)来编译它时,我收到以下消息:

dhcp109128:myfolder Laura$ biber exampleBiber
INFO - This is Biber 1.6
INFO - Logfile is 'exampleBiber.blg'
INFO - Reading 'exampleBiber.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file '../../bibliographies/example' for section 0
ERROR - Cannot find '../../bibliographies/example'!
INFO - ERRORS: 1

但是,如果我将后端从 biber 更改为 bibtex 并再次更改首选项,我会得到一个完好无损的文件。如果我尝试在终端窗口中运行它,我会遇到同样的问题,而且,如果我运行 bibtex 而不是 biber(每次都更改后端),它运行得非常好

我尝试过的事情:

-我尝试通过在最顶部添加行 % !BIB TS-program = biber 来修改上面的文件,但什么也没发生……

-我尝试更新我的软件包(正如之前建议的那样):我正在运行 TexLive 2013、biber 1.6、texshop 3.26,我正在使用 bibdesk 1.6.1。

我认为 bibdesk 保存参考书目的方式可能存在问题。为了参考,我将 bib 文件放在最后。有什么想法吗?提前致谢

%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/

%% Saved with string encoding Unicode (UTF-8) 



@article{ho1995,
Abstract = {Treatment of infected patients with ABT-538, an inhibitor of the protease of human immunodeficiency virus type 1 (HIV-1), causes plasma HIV-1 levels to decrease exponentially (mean half-life, 2.1 +/- 0.4 days) and CD4 lymphocyte counts to rise substantially. Minimum estimates of HIV-1 production and clearance and of CD4 lymphocyte turnover indicate that replication of HIV-1 in vivo is continuous and highly productive, driving the rapid turnover of CD4 lymphocytes.},
Address = {Aaron Diamond AIDS Research Center, NYU School of Medicine, New York 10016.},
Author = {Ho, D D and Neumann, A U and Perelson, A S and Chen, W and Leonard, J M and Markowitz, M},
Cin = {Nature. 1995 May 18;375(6528):193. PMID: 7746311; Nature. 1995 May 18;375(6528):193-4; author reply 198. PMID: 7746312; Nature. 1995 May 18;375(6528):194; author reply 198. PMID: 7746313; Nature. 1995 May 18;375(6528):194-5; author reply 198. PMID: 7746314; Nature. 1995 May 18;375(6528):195; author reply 198. PMID: 7746315; Nature. 1995 May 18;375(6528):195-6; author reply 198. PMID: 7746316; Nature. 1995 May 18;375(6528):196; author reply 198. PMID: 7746317; Nature. 1995 May 18;375(6528):197; author reply 198. PMID: 7746319; Nature. 1995 May 18;375(6528):197-8; author reply 198. PMID: 7746320; Nature. 1995 May 18;375(6528):198; author reply 198. PMID: 7746321; Nature. 1995 Jan 12;373(6510):102. PMID: 7816085; Nature. 1995 May 18;375(6528):197; author reply 198. PMID: 7605485},
Crdt = {1995/01/12 00:00},
Da = {19950203},
Date = {1995 Jan 12},
Date-Added = {2013-09-05 18:53:13 +0000},
Date-Modified = {2013-09-05 18:53:13 +0000},
Dcom = {19950203},
Doi = {10.1038/373123a0},
Edat = {1995/01/12},
Issn = {0028-0836 (Print); 0028-0836 (Linking)},
Jid = {0410462},
Journal = {Nature},
Jt = {Nature},
Language = {eng},
Lr = {20061115},
Mh = {Antiviral Agents/therapeutic use; CD4 Lymphocyte Count/drug effects; CD4-Positive T-Lymphocytes/cytology/*virology; HIV Infections/drug therapy/immunology/*virology; HIV Protease Inhibitors/therapeutic use; HIV-1/*physiology; Humans; Kinetics; Ritonavir; Viremia/drug therapy/*virology; Virion/physiology; *Virus Replication},
Mhda = {1995/01/12 00:01},
Month = {Jan},
Number = {6510},
Own = {NLM},
Pages = {123--126},
Pl = {ENGLAND},
Pmid = {7816094},
Pst = {ppublish},
Pt = {Journal Article; Research Support, Non-U.S. Gov't; Research Support, U.S. Gov't, P.H.S.},
Rn = {0 (Antiviral Agents); 0 (HIV Protease Inhibitors); 0 (Ritonavir)},
Sb = {IM; X},
Status = {MEDLINE},
Title = {{Rapid turnover of plasma virions and CD4 lymphocytes in HIV-1 infection.}},
Volume = {373},
Year = {1995},
Bdsk-Url-1 = {http://dx.doi.org/10.1038/373123a0}}

答案1

因为\addbibresource中的命令biblatex实际上可以打开 .bib文件以外的其他类型的资源(最值得注意的是 URL、实验性的RIS和一些 XML 格式),所以文件扩展名.bib是必需的。这与\bibliography它所取代的命令完全不同,在命令中扩展名是隐式的。

因此,解决您的问题的方法是使用:

\addbibresource{<your-bib-file>.bib}

相关内容