在杂项上执行 bib tex 时出错

在杂项上执行 bib tex 时出错

我正在编写 bib tex。执行代码时出现错误

@misc{link:group_thm,
title={MA426: Elliptic Curves},
author={Anni, Samuele},
year={2015},
publisher={April}
}

它给出错误信息

Database file #1: my_bib.bib
ptr=1, stack=
S.~Anni
---the literal stack isn't empty for entry link:group_thm
while executing---line 1435 of file abbrvnat.bst

请给我解决这个问题。

答案1

评论太长:

由于您没有提供 MWE,因此很难帮助您。要开始使用,请参阅以下 MWE(我filecontents仅使用包将 TeX 代码和 bib 文件放在可编译的 MWE 中)mwe.tex

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
@misc{link:group_thm,
  title     = {MA426: Elliptic Curves},
  author    = {Anni, Samuele},
  year      = {2015},
  publisher = {April},
}
\end{filecontents*}


\documentclass[10pt,a4paper]{article}

\usepackage{natbib}

\begin{document}

This is text with \cite{link:group_thm} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{abbrvnat} 

\bibliography{\jobname}

\end{document}

此 MWE 使用编译链pdflatex mwe.tex-- bibtex mwe-- pdflatex mwe.tex--进行编译pdflatex mwe.tex,无错误:

由此产生的书目

现在请将我给出的 MWE 与您的代码进行比较,并更改 mwe 以重现您的错误。顺便问一句:使用的样式文件是abbrvnat.bst标准文件吗?您是否加载了影响参考书目的其他包?如果是,请将它们添加到新的 mwe 并将此 mwe 添加到您的问题中!

相关内容