foo.tex

foo.tex

我使用 Zotero 来查找参考文献,在某个时候,一整套 JSTOR ID 开始出现在我的 biber 参考书目中。我使用 pdflatex 和 biber 进行编译。

JSTOR ID 显示在参考书目中

我该如何摆脱这些丑陋的 JSTOR 引用?我认为这与Zotero 附加到我的条目的eprinttype和字段有关。eprint


foo.tex

\documentclass{article} 
\usepackage[backend=biber,doi=false,url=false,isbn=false,
    style=authoryear, maxcitenames=2,
    uniquename=false]{biblatex}
\AtEveryBibitem{% Get rid of the unwanted "note" field
  \clearfield{note}%
  \clearlist{language}%
}
\addbibresource{foo.bib}

\begin{document}
    \textcite{krugman_scale_1980-2} 
    \printbibliography
\end{document}


foo.bib

@article{krugman_scale_1980-2,
  eprinttype = {jstor},
  eprint = {1805774},
  title = {Scale {{Economies}}, {{Product Differentiation}}, and the {{Pattern}} of {{Trade}}},
  volume = {70},
  issn = {0002-8282},
  number = {5},
  journaltitle = {The American Economic Review},
  date = {1980},
  pages = {950--959},
  keywords = {dixit-stiglitz-ces},
  author = {Krugman, Paul},
  file = {/home/rob/Zotero/storage/VD5MZDJM/Krugman - 1980 - Scale Economies, Product Differentiation, and the .pdf}
}

答案1

做这件事有很多种方法。

  1. 选项eprint=false。这将禁用所有eprints,而不仅仅是 JSTOR。特别是,这还会抑制对流行的 arXiv 的引用。
  2. 摆脱eprintJSTOR\AtEveryBibitem

    \AtEveryBibitem{%
      \iffieldequalstr{eprinttype}{jstor}
        {\clearfield{eprint}}
        {}}
    
  3. 使用 Biber 的源映射来定位 JSTOR

    \DeclareSourcemap{
       \maps[datatype=bibtex]{
         \map{
           \step[fieldsource=eprinttype, match={jstor}, final]
           \step[fieldset=eprint, null]
         }
       }
     }
    

相关内容