複雜網路雜誌 (OUP) 的 Natbib 錯誤

複雜網路雜誌 (OUP) 的 Natbib 錯誤

我正在向《複雜網路雜誌》(牛津大學出版社期刊)提交一篇論文。他們提供了他們的 LaTeX 類文件這一頁

我收到以下錯誤:

錯誤:套件 natbib 錯誤:參考書目與作者年份引用不相容。

問題 - 我似乎正在遵循他們提供的步驟。根據範例 .tex 檔案中的說明,我正在編譯:

\documentclass{comnet}

\begin{document}


\cite{Ahn1983}

\bibliographystyle{comnet}
\bibliography{sample}
%
% once the .bbl file has been generated then place the text in your article.

\end{document}

sample.bib在我上面給出的鏈接中提供)該.bbl文件只是

\begin{參考書目}{00}

\bibitem{Ahn1983} 亞歷山大,J.~C。 {\&} Auchmuty, G. (1983) 具有上限和下限的線性互補問題的迭代方法。 {\em 數學規劃},\textbf{26},265。

\end{參考書目}

按照說明,我將其複製並貼上並重新編譯

\documentclass{comnet}
\begin{document}

\cite{Ahn1983}

\begin{thebibliography}{00}

\bibitem{Ahn1983}
Alexander, J.~C. {\&} Auchmuty, G. (1983)  Iterative methods for linear
  complementarity problems with upperbounds and lowerbounds. {\em Mathematical
  Programming}, \textbf{26}, 265.

\end{thebibliography}

\end{document}

編譯,但給出錯誤:

錯誤:套件 natbib 錯誤:參考書目與作者年份引用不相容。

關於為什麼會出現此錯誤的任何想法,更重要的是,它是否可以修復?

答案1

文檔類文件comnet.cls包含以下指令,從第 1306 行開始:

\usepackage[sort&compress]{natbib}
\bibpunct{[}{]}{,}{a}{,}{;}

a第四個參數指示產生\bibpunct作者natbib年份風格的引用標註。但是,參考書目樣式文件comnet.bst不是與作者年份風格的引文標註相容。

a(旁白:我的直覺是,說明中的字母\bibpunct是錯誤選擇的。當然,「作者說明」明確指出應該使用數字式的引文標註。)

如果您需要使用comnet參考書目樣式並且可以使用數字樣式的引文標註,我建議您在文件的序言中提供以下說明:

\bibpunct{[}{]}{,}{n}{,}{;}

相關內容