【问题标题】:BibTeX You can't pop an empty literal stackBibTeX 你不能弹出一个空的文字堆栈
【发布时间】:2020-11-28 15:40:43
【问题描述】:

我只知道乳胶的基本知识,我在参考书目文件iet.bst 中遇到了一个错误,这是一个由 IET 修改并提供为乳胶文件以编写要发表的论文的参考书目文件。 错误出现在@webpage 参考书目条目类型中,正如我已经搜索过的那样,我认为它是关于一些应该是可选的字段,之后,可能错误地弹出,错误出现。

iet.bst 的第 1838 行是这样的:

ITERATE {call.type$}

网页入口类型的代码是这样的:

% Title and url fields required;
% author, note, year, month, and lastchecked fields optional
STRINGS {database}
FUNCTION {webpage}
{ output.bibitem
  author empty$
    { editor empty$
        'skip$  % author and editor both optional
        { format.editors output.nonnull }
      if$
    }
    { editor empty$
        { format.authors output.nonnull }
        { "can't use both author and editor fields in " cite$ * warning$ }
      if$
    }
  if$
%  author empty$
%    'skip$
%    { format.authors output.nonnull }
%  if$
  new.block
  format.title "title" output.check
  journal empty$
    {
      format.type "type" output.check
      publisher empty$
        'skip$
        { format.publisher.address output }
      if$
      "database on the Internet" 'database :=
      type database =
        { format.journal.date "year" output.check }
        { format.date "year" output.check }
      if$
      lastchecked empty$
        'skip$
        { format.lastchecked output }
      if$
      new.block
      part empty$
        'skip$
        { part output }
      if$
      pages empty$
        'skip$
        { pages bracket.check output }
      if$
    }
    { journal
      remove.dots
      "journal" bibinfo.check
      "journal" output.check
      format.type "type" output.check
      format.journal.date "year" output.check
      lastchecked empty$
        'skip$
        { format.lastchecked output
      ";" no.blank.or.punct output
    }
      if$
      no.blank.or.punct format.vol.num output
      pages empty$
        'skip$
    { ":" no.blank.or.punct output
      no.blank.or.punct pages bracket.check output
    }
      if$
      new.block
    }
  if$
  format.url "url" output.check
  new.block
  note output
  fin.entry
}
% ...urlbst to here

指出我错误的原因在于那部分,是因为当我从main.tex 中删除Arduino:2020 的条目@webpage referent 时,错误消失了,但正如我已经说过的,我只知道乳胶的基本知识:( 奇怪的是,即使出现此错误,pdf 的渲染显然也没有问题。 如果有人帮助我,我很感激。 谢谢

【问题讨论】:

    标签: latex pdflatex bibtex bibliography biblatex


    【解决方案1】:

    @article 条目类型出现了同样的错误。 就我而言,似乎当字段“volume={volume number}”和“number={issue number}”尽管是可选的,但没有添加到文章的条目中时,会弹出此错误。将上述字段添加到我的条目后,错误消失了。尝试将相关的可选字段添加到您的条目中。此外,也许将您的条目更改为其他条目类型(例如“misc”)可以解决您的问题。

    【讨论】:

    • 可以确认在为 PNAS 准备论文时遇到了同样的问题。上面的解决方案解决了它。
    猜你喜欢
    • 1970-01-01
    • 2019-08-08
    • 2010-12-12
    • 2013-03-20
    • 1970-01-01
    • 1970-01-01
    • 2014-06-25
    • 2014-12-18
    • 1970-01-01
    相关资源
    最近更新 更多