I wrote a journal article some time ago that, luckily, was accepted. The publisher kindly sent me the LaTeX file derived from the article. I now want to include the LaTeX code into my PhD thesis. It is fully working except for the bibliography. The publisher included the bibliography in an \thebibliography
environment and used \bibitem
for each entry. The bibliography has the following format:
\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}
I now want to include the bibliography into my thesis using BibTeX/BibLaTeX. Therefore, I need to convert each \bibitem into one .bib
file. I already tried the website converter at text2bib but it gave me a lot of errors (not recognizing author and year published). I also ran the tex2bib-Perl script without any success.
How can I adapt the Perl script or writing some new importer using Python, Awk or Sed? I don't have much experience in using Awk and Sed but they should be able to do the trick. Here, you can find some example data.
A few hours of searching was to no avail.