导致缺少 }/$ 插入和额外 } 或忘记 $ 错误的参考书目条目

导致缺少 }/$ 插入和额外 } 或忘记 $ 错误的参考书目条目

我正在使用 Overleaf,当我将参考书目从其他项目复制并粘贴到新项目中时,我收到错误,无法找出问题所在。我收到的错误是全部Missing } inserted.Missing $ inserted.Extra }, or forgotten $.它们引用output.bbl文件中的某些行。

我迄今为止的尝试:我手动进行了排除过程,并将范围缩小到 4 个有问题的条目。我检查了下划线_,但它们都在 DOI/URL 字段中,并且我尝试检查是否缺少括号}。当我添加这个新的参考书目时,我得到了错误。我尝试逐一添加这些,但它们都单独导致错误。我注意到所有这些都是@incollection条目。

@incollection{old-nsf-proposal-1,
  doi = {10.1007/978-3-319-20681-3_29},
  url = {https://doi.org/10.1007/978-3-319-20681-3_29},
  year = {2015},
  publisher = {Springer International Publishing},
  pages = {307--318},
  author = {Nicoletta Adamo-Villani and Ronnie B. Wilbur},
  title = {{ASL}-Pro: American Sign Language Animation with Prosodic Elements},
  booktitle = {Universal Access in Human-Computer Interaction. Access to Interaction}
}

@incollection{old-nsf-proposal-44,
  doi = {10.1007/978-3-642-31534-3_32},
  url = {https://doi.org/10.1007/978-3-642-31534-3_32},
  year = {2012},
  publisher = {Springer Berlin Heidelberg},
  pages = {205--212},
  author = {Eleni Efthimiou and Stavroula-Evita Fotinea and Thomas Hanke and John Glauert and Richard Bowden and Annelies Braffort and Christophe Collet and Petros Maragos and Fran{\c{c}}ois Lefebvre-Albaret},
  title = {The Dicta-Sign Wiki: Enabling Web Communication for the Deaf},
  booktitle = {Lecture Notes in Computer Science}
}

@incollection{old-nsf-proposal-45,
  doi = {10.1007/978-3-642-02707-9_3},
  url = {https://doi.org/10.1007/978-3-642-02707-9_3},
  year = {2009},
  publisher = {Springer Berlin Heidelberg},
  pages = {21--30},
  author = {Eleni Efthimiou and Stavroula-Evita Fotinea and Christian Vogler and Thomas Hanke and John Glauert and Richard Bowden and Annelies Braffort and Christophe Collet and Petros Maragos and J{\'{e}}r{\'{e}}mie Segouat},
  title = {Sign Language Recognition,  Generation,  and Modelling: A Research Effort with Applications in Deaf Communication},
  booktitle = {Universal Access in Human-Computer Interaction. Addressing Diversity}
}

@incollection{old-nsf-proposal-46,
  doi = {10.1007/978-3-319-20681-3_33},
  url = {https://doi.org/10.1007/978-3-319-20681-3_33},
  year = {2015},
  publisher = {Springer International Publishing},
  pages = {351--361},
  author = {Eleni Efthimiou and Stavroula-Evita Fotinea and Theodore Goulas and Panos Kakoulidis},
  title = {User Friendly Interfaces for Sign Retrieval and Sign Synthesis},
  booktitle = {Universal Access in Human-Computer Interaction. Access to Interaction}
}

我检查了.bst我拥有的文件,进行搜索inproceedings并发现了以下内容:

FUNCTION { incollection }
{
  output.bibitem
  format.authors "author" output.check
  author format.key output       % added
  output.year.check              % added
  new.block
  format.articletitle "title" output.check
  new.block
  crossref missing$
    { format.in.ed.booktitle "booktitle" output.check
      new.sentence                % jtb: start a new sentence for series/volume
      format.bvolume output
      format.number.series output
      new.sentence
      publisher "publisher" output.check
      address "address" output.check      % jtb: require address
      format.bookpages output
      format.chapter.pages output % gnp - was special.output.nonnull
                                  % left out comma before page numbers
                                  % jtb: moved from before publisher
    }
    {
      format.incoll.inproc.crossref output.nonnull
      format.chapter.pages output
    }
  if$
  fin.block
  output.issue.doi.coden.isxn.lccn.url.note
  fin.entry
}

FUNCTION { inproceedings }
{
  output.bibitem
  format.authors "author" output.check
  author format.key output            % added
  output.year.check                   % added
  new.block
  format.articletitle "title" output.check
  howpublished output.dot.space
  crossref missing$
    {
      journal missing$          % jtb: proceedings appearing in journals
        { format.in.emphasize.booktitle "booktitle"  output.check.dot.space
          format.series output.removenospace
          format.editors.fml output % BV 2011/09/27 Moved dot to comma
          format.bvolume.noseries output
          new.sentence
          organization output
          publisher "publisher" output.check % jtb: require publisher (?)
          address "address" output.check  % jtb: require address
          format.bookpages output
        }
        {
           format.in.booktitle format.city "booktitle" output.check
           format.editors.fml output
           new.sentence
           format.journal.volume.number.day.month.year output
        }
      if$
      format.articleno output
      format.pages.check.without.articleno output
    }
    {
      format.incoll.inproc.crossref output.nonnull
      format.articleno output
      format.pages.check.without.articleno output
    }
  if$
  format.articleno.numpages output
  fin.block
  output.issue.doi.coden.isxn.lccn.url.note
  fin.entry
}

编辑:添加了 MWE 来重现错误:

SIGCHI-Reference-Format.bsthttps://controlc.com/6d1ed4fb

.tex文件:

\begin{filecontents*}{bib.bib}
@incollection{old-nsf-proposal-1,
  doi = {10.1007/978-3-319-20681-3_29},
  url = {https://doi.org/10.1007/978-3-319-20681-3_29},
  year = {2015},
  publisher = {Springer International Publishing},
  pages = {307--318},
  author = {Nicoletta Adamo-Villani and Ronnie B. Wilbur},
  title = {{ASL}-Pro: American Sign Language Animation with Prosodic Elements},
  booktitle = {Universal Access in Human-Computer Interaction. Access to Interaction}
}
\end{filecontents*}


\documentclass[letterpaper, 11pt, oneside, openright, draft]{book}

\usepackage{url}

% https://tex.stackexchange.com/questions/3802/how-to-get-doi-links-in-bibliography#3803
% https://tex.stackexchange.com/questions/3033/forcing-linebreaks-in-url
\PassOptionsToPackage{hyphens}{url}\usepackage[linktoc=all, pagebackref=true]{hyperref}
\hypersetup{%
  pdfdisplaydoctitle=true, % For Accessibility
  pdfstartview={FitH}, % https://tex.stackexchange.com/questions/3450/make-pdf-open-in-fill-window-mode-with-hyperref/7251
  colorlinks=true,
  pdflang={en},
  extension=pdf,
  plainpages=false,
  pdfpagelayout=SinglePage,
  bookmarksnumbered,
  breaklinks=true,
  hypertexnames=true,
  citecolor=blue, % TODO change to black for final version (this makes it easy to check for unfinished links
  filecolor=blue, % TODO change to black for final version (this makes it easy to check for unfinished links
  linkcolor=blue, % TODO change to black for final version (this makes it easy to check for unfinished links
  urlcolor=blue,
  final % to avoid draft mode for hyperref
}

\usepackage{doi} % this must be loaded AFTER hyperref!

\begin{document}

Testing... Citing \cite{old-nsf-proposal-1}.

\bibliographystyle{SIGCHI-Reference-Format}
\bibliography{bib}

\end{document}

答案1

感谢评论者!

我最终的做法是:我无法SIGCHI-Reference-Format.bst在网上找到该文件的良好来源,因此我将其ACM-Reference-Format.bst从 CTAN更改为这里

作为参考,我创建了一个 diffchecker 链接来比较我拥有的版本SIGCHI-Reference-Format.bst(2012 年 1 月 18 日)与当前版本ACM-Reference-Format.bst(撰写本文时,2017 年 6 月 14 日):https://www.diffchecker.com/m8087Izb

要使用该ACM-Reference-Format.bst文件,我必须添加\usepackage{natbib}序言。我还添加了\setcitestyle{numbers,square}使用方括号内的数字。

相关内容