ConText 不显示任何 BibTex 引用

ConText 不显示任何 BibTex 引用

在路径中使用有效的 myrefs.bib,我尝试了以下最小示例(其中两个带有注释)

\setupbibtex[database=myrefs]
\starttext
\completepublications
%\completepublications[criterium=all] 
%\placepublications[criterium=all] 
\stoptext

此示例生成一个空的 pdf,当我取消注释(一次一个)时,上下文似乎阻塞了其他两个

关于版本号:

man 上下文末尾给出的版本:版本 0.60 01-01-2015 mtx-context(1)

上下文--版本的输出:

mtx-context     | ConTeXt Process Management 0.61
mtx-context     |
mtx-context     | main context file: /usr/share/texmf/tex/context/base/context.mkiv
mtx-context     | current version: 2015.05.18 12:26

从上一个 .log 开始

open source     > 1 > 1 > /usr/share/texmf/tex/context/base/cont-yes.mkiv
ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2016.7.5  int: english/english

对于我的数据库的内容:我的 .bib 文件相当长,这里是第一个和最后一个条目(这个短的 .bib 文件也失败了):

% IMPORTANT: The following is UTF-8 encoded.  This means that in the presence
% of non-ASCII characters, it will not work with BibTeX 0.99 or older.
% Instead, you should use an up-to-date BibTeX implementation like “bibtex8” or
% “biber”.

@ARTICLE{Kampmann:966,
      author       = {Kampmann, R and Deriglazov, V and Haese-Seiller, M and
                      Marmotti, M and Tristl, M and Sackmann, E},
      title        = {{REFSANS}: a novel reflectometer for analyses of liquid and
                      soft surfaces at the new research reactor {FRM}-{II} in
                      {M}unich/{G}ermany},
      journal      = {Physica / B},
      volume       = {276-278},
      issn         = {0921-4526},
      address      = {Amsterdam},
      publisher    = {North-Holland Physics Publ.},
      pages        = {212-213},
      year         = {2000},
      ddc          = {530},
      cid          = {I:(DE-MLZ)4109},
      experiment   = {EXP:(DE-MLZ)REFSANS-20140101},
      typ          = {PUB:(DE-HGF)16},
      UT           = {WOS:000086413000088},
      doi          = {10.1016/S0921-4526(99)01294-6},
      url          = {https://impulse.mlz-garching.de/record/966},
}

@ARTICLE{Hexemer:174106,
      author       = {Hexemer, Alexander and Müller-Buschbaum, Peter},
      title        = {{A}dvanced grazing-incidence techniques for modern
                      soft-matter materials analysis},
      journal      = {IUCrJ},
      volume       = {2},
      number       = {1},
      issn         = {2052-2525},
      address      = {Chester},
      publisher    = {International Union of Crystallography (IUCr)},
      reportid     = {IMPULSE-2016-00077},
      pages        = {106 - 125},
      year         = {2015},
      ddc          = {530},
      cid          = {I:(DE-MLZ)4109 / I:(DE-MLZ)4024 / I:(DE-MLZ)4058},
      experiment   = {EXP:(DE-MLZ)REFSANS-20140101},
      typ          = {PUB:(DE-HGF)16},
      doi          = {10.1107/S2052252514024178},
      url          = {https://impulse.mlz-garching.de/record/174106},
}

答案1

你运行的是哪个版本?此代码为我提供了预期的结果:

\setupbibtex [database=mytest.bib]

\starttext

\placepublications [criterium=all]

\stoptext

或者,如果您想使用新的界面(仍在开发中并且还没有适当的文档):

\usebtxdataset [default] [mytest.bib]

\starttext

\placelistofpublications [default] [method=dataset]

\stoptext

这两个文件都排版了整个 bib 文件。如果你使用新方法,你应该会看到类似这样的消息

 publications    > adding bib data to set 'default' from source 'mytest.bib'

在您的日志文件中显示您的 bib 文件已被找到并可以加载/

答案2

经过大量实验,包括升级 TeXLive,我最终删除了所有 LaTeX 和 ConTeX 安装,并重新安装了 ConTeX。简短的 bib 起作用了。所以最初的问题解决了,但看来我真的需要全新安装。

为了记录,运行我的完整 bib 文件导致(摘录):

....
close source    > 3 > 9 > testbibtex.bbl
publications    > placing all entries, use 'text' to be more selective

tex error       > tex error on line 36 in file testbibtex.tex: ! Misplaced alignment tab character &

<recently read> &

\@@pb@journal ->Nuclear Instruments $\&
                                   $ Methods in Physics Research A

所以我只需删除有问题的 $&$(这对于 LaTeX 来说似乎没问题!),我的整个参考书目就排版得非常完美了。

相关内容