gpt4 book ai didi

latex - 在 TeX 源中嵌入 BBL 文件内容

转载 作者:行者123 更新时间:2023-12-04 07:10:21 25 4
gpt4 key购买 nike

我需要将 .bbl 文件中的引用书目信息嵌入到 .tex 源文件中。根据 Google 的许多地方,这应该像将 .bbl 文件的内容复制到 .tex 文件一样简单,替换\bibliography{} 命令。

但是,当我这样做时,我收到以下错误:

./Witmer.tex:82: Undefined control sequence.
<argument> \@listctr

l.82 \bibitem{bhole-ner_over_time}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

./source.tex:82: You can't use `\relax' after \the.
<recently read> \c@

l.82 \bibitem{bhole-ner_over_time}

I'm forgetting what you said and using zero instead.

我现在不知道问题出在哪里。我包括了 cite 包,当我使用 .bbl 文件时一切都很好。

我正在用 bibtex 生成 bbl 文件。文件的相关部分:
\bibliographystyle{plain}
\begin{thebibliography}{9}
...trimmed for size...

\bibitem{geo-spatialexpressions}
Annette Herskovits.
\newblock {\em Representation and processing of spatial expressions}.
\newblock Lawrence Erlbaum Associates, Inc., Mahwah, NJ, USA, 1998.

\end{thebibliography}

更新:

这是问题和建议的修复:错误基本上意味着引用书目生成代码期望每个\bibitem 应该有一些参数:
\bibitem[\protect\citeauthoryear{Herskovits}{1998}]{geo-spatialexpressions}
Herskovits, A.
\newblock 1998.
\newblock {\em Representation and processing of spatial expressions}.
\newblock Mahwah, NJ, USA: Lawrence Erlbaum Associates, Inc.

我实际上是在尝试使用一个与\cite 的定义和引用书目生成混淆的样式文件。

最佳答案

你是对的,它应该可以正常工作。

我不认为 cite 包会影响这里的任何东西。有一个 post on comp.text.tex这提到了一个类似的错误,涉及使用没有适当引用书目风格的 jurabib,但我认为我们需要更多信息才能解决您的问题。

在您编辑后,我又看了一眼;根据您最初编写的内容,这可以正常工作:

\documentclass[12pt]{article}
\usepackage{cite}
\begin{document}
\bibliographystyle{plain}
\begin{thebibliography}{1}
\bibitem{geo-spatialexpressions}
Annette Herskovits.
\newblock {\em Representation and processing of spatial expressions}.
\newblock Lawrence Erlbaum Associates, Inc., Mahwah, NJ, USA, 1998.
\end{thebibliography}
\end{document}

因此,强调需要在问题中提供您正在加载的包以及您使用的书目风格。

无论如何,你已经设法解决了这个问题是件好事:)

关于latex - 在 TeX 源中嵌入 BBL 文件内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/464137/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com