调整perl脚本将bibibitem转换为BibTeX

2024-09-29 19:31:05 发布

您现在位置:Python中文网/ 问答频道 /正文

不久前我写了一篇日志文章,幸运的是,被录取了。出版商好心地寄给我从文章衍生的乳胶文件。我现在想在我的博士论文中加入乳胶代码。除了参考书目外,这本书是完全有效的。出版商将书目包含在\thebibliography环境中,并为每个条目使用\bibitem。参考书目的格式如下:

\begin{thebibliography}{}

\bibitem{}
{\AA}gren, A., Buffam, I., Berggren, M., Bishop, K., Jansson, M., and Laudon,
H.: Dissolved organic carbon characteristics in boreal streams in a
forest-wetland gradient during the transition between winter and summer, J.
Geophys. Res.-Biogeo., 113, G03031, \href{http://dx.doi.org/10.1029/2007JG000674}{doi:10.1029/2007JG000674}, 2008.

\bibitem{}
Alewell, C., Lischeid, G., Hell, U., and Manderscheid, B.: High temporal
resolution of ion fluxes in semi-natural ecosystems -- gain of information or
waste of resources? Biogeochemistry, 69, 19--35,
\href{http://dx.doi.org/10.1023/B:BIOG.0000031029.46798.7f}{doi:10.1023/B:BIOG.0000031029.46798.7f}, 2004.

\end{thebibliography}

现在我想用BibTeX/biblattex将参考书目包括在我的论文中。因此,我需要将每个\bibiitem转换成一个.bib文件。我已经尝试过text2bib的网站转换器,但它给了我很多错误(无法识别作者和出版年份)。我还运行了tex2bib Perl脚本,但没有成功。在

如何调整Perlscript或使用Python、Awk或Sed编写新的导入器?我在使用Awk和Sed方面没有太多经验,但他们应该能够做到这一点。Here,可以找到一些示例数据。在

几个小时的googlefu都没有用。我非常感谢任何直接的帮助或指向正确的帖子/链接。在


Tags: and文件ofinorghttp文章doi

热门问题