在 overleaf 中基于 MNRAS 模板构建的项目中,“编译错误”消息的来源是什么?

在 overleaf 中基于 MNRAS 模板构建的项目中,“编译错误”消息的来源是什么?

我正在尝试使用蒙古纳什维尔核电站模板Overleaf 网站。一旦我将所有参考资料添加到。围兜文件并将文件添加到我的项目中,我注意到有一个

编译错误

给我以下信息:

./mn2e.bbl:22: 失控的论点?\protect \citeauthoryear {{Betoule}, {Kessler}, {Guy}, {Mosher}, {Har\ETC. 段落在 \@lbibitem 完成之前结束。\par l.22

尽管我可以继续输入我的文章,但由于此错误消息,文档未更新。我非常感谢您的帮助,以找出可行的解决方案。我也可以分享我的。围兜文件以及乳胶日志如果您认为这可能有助于找到解决方案,请提交文件。

真挚地,

在这条线下面你可以看到一个工作示例.tex文件后跟。围兜文件。 ________________________________(.tex)___________________________________

\documentclass[useAMS,usenatbib]{mn2e}
\usepackage{graphicx}
\usepackage{float}

\def\aap{Astronomy \& Astrophysics}
\def\apj{The Astrophysical Journal}
\def\mnras{Monthly Notices of the Royal Astronomical Society}

\title[]{Title}

\author[]{A. Lastname1$^{1}$\thanks{E-mail: Email1}, D. Lastname2$^{1}$\thanks{E-mail: Email2} and P. Lastname3$^{1}$\thanks{E-mail: Email3}\\
$^{1}$Department of Astronomy, Official Name of the University\\}

\begin{document}
\date{Accepted . Received ; in original form }
\pagerange{\pageref{firstpage}--\pageref{lastpage}} \pubyear{2016}
\maketitle
\label{firstpage}

\begin{abstract}

\end{abstract}

\begin{keywords}
supernovae:general, cosmology:observation
\end{keywords}

\section{Introduction}

\section{Methodology}

\section{Data Acquisition}

\section{Analaysis}

\section{Results}

\section{Discussion}

\section{Conclusions}

\begin{itemize}
\item{Item 1}
\item{Item 2}
\item{Item 3}
\end{itemize}

\section*{Acknowledgments}

\nocite{*}
\bibliographystyle{mn2e}
\bibliography{references}
\label{lastpage}
\end{document} 

_____________________________(。围兜)____________________________________

@Article{2014A&A...568A..22B,
  author =        {{Betoule}, M. and {Kessler}, R. and {Guy}, J. and {Mosher}, J. and {Hardin}, D. and {Biswas}, R. and {Astier}, P. and {El-Hage}, P. and {Konig}, M. and {Kuhlmann}, S. and {Marriner}, J. and {Pain}, R. and {Regnault}, N. and {Balland}, C. and {Bassett}, B.~A. and {Brown}, P.~J. and {Campbell}, H. and {Carlberg}, R.~G. and {Cellier-Holzem}, F. and {Cinabro}, D. and {Conley}, A. and {D'Andrea}, C.~B. and {DePoy}, D.~L. and {Doi}, M. and {Ellis}, R.~S. and {Fabbro}, S. and {Filippenko}, A.~V. and {Foley}, R.~J. and {Frieman}, J.~A. and {Fouchez}, D. and {Galbany}, L. and {Goobar}, A. and {Gupta}, R.~R. and {Hill}, G.~J. and {Hlozek}, R. and {Hogan}, C.~J. and {Hook}, I.~M. and {Howell}, D.~A. and {Jha}, S.~W. and {Le Guillou}, L. and {Leloudas}, G. and {Lidman}, C. and {Marshall}, J.~L. and {M{\"o}ller}, A. and {Mour{\~a}o}, A.~M. and {Neveu}, J. and {Nichol}, R. and {Olmstead}, M.~D. and {Palanque-Delabrouille}, N. and {Perlmutter}, S. and {Prieto}, J.~L. and {Pritchet}, C.~J. and {Richmond}, M. and {Riess}, A.~G. and {Ruhlmann-Kleider}, V. and {Sako}, M. and {Schahmaneche}, K. and {Schneider}, D.~P. and {Smith}, M. and {Sollerman}, J. and {Sullivan}, M. and {Walton}, N.~A. and {Wheeler}, C.~J.},
  title =         {{Improved cosmological constraints from a joint analysis of the SDSS-II and SNLS supernova samples}},
  journal =       {\aap},
  year =          {2014},
  volume =        {568},
  pages =         {A22},
  month =         aug,
  adsnote =       {Provided by the SAO/NASA Astrophysics Data System},
  adsurl =        {http://adsabs.harvard.edu/abs/2014A%26A...568A..22B},
  archiveprefix = {arXiv},
  doi =           {10.1051/0004-6361/201423413},
  eid =           {A22},
  eprint =        {1401.4064},
  keywords =      {cosmology: observations, distance scale, dark energy}
}

答案1

运行 BibTeX 时,会出现两个警告

Warning--you've exceeded 250, the entry-string-size, for entry 2014A&A...568A..22B
while executing--line 1183 of file mn2e.bst
*Please notify the bibstyle designer*
Warning--you've exceeded 250, the entry-string-size, for entry 2014A&A...568A..22B
while executing--line 1222 of file mn2e.bst
*Please notify the bibstyle designer*

问题在于样式文件使用在运行时根据以下值初始化的mn2e.bst内部变量:entry.max$texmf.cnf

776 % BibTeX only (max_strings also determines hash_size and hash_prime).
777 ent_str_size =  250
778 glob_str_size = 20000
779 max_strings.bibtex = 35307

(为方便起见添加了行号)。

确实,如果我bibtex从命令行调用

ent_str_size=2000 bibtex benjamin

我可以获得.bbl正确的结果,因为分配覆盖了默认值。

其他natbib兼容样式不使用 的值entry.max$,因此它们没有问题。

我不知道如何用 Overleaf 改变这种情况;问题似乎出在函数中presort,而且bib.sort.order 这些函数在基于 APA 的 bib 样式中似乎很常见。标准文件中plainnat.bst没有提到该函数,但确实生成了一个工作文件。entry.max$bib.sort.order.bbl


另一方面,如果我使用mnras类和mnras.bst样式文件,则不会出现任何错误;条目的排版为

在此处输入图片描述

请注意mn2e.clsmn2e.bst不再在 TeX Live 中分发(它们位于doc树中的子目录中legacy),这似乎意味着皇家天文学会认为它们已经过时了。

相关内容