摘录自https://stackoverflow.com/questions/60536106/create-a-bib-file-from-bibitem-thebibliography
问题
I have like 200 bibitem entry in the environment
\begin{thebibliography}
\bibitem{Bermudez} Berm\'udez, J.D., J. V. Segura y E. Vercher (2010). \emph{Bayesian forecasting with the Holt-Winters model}. Journal of the Operational Research Society, 61, 164-171.
\begin{thebibliography}
I want the resulting .bib file format
@article{bermudez2010bayesian,
title={Bayesian forecasting with the Holt--Winters model},
author={Berm{\'u}dez, Jos{\'e} D and Segura, Jos{\'e} Vicente and Vercher, Enriqueta},
journal={Journal of the Operational Research Society},
volume={61},
number={1},
pages={164--171},
year={2010},
publisher={Taylor \& Francis}
}
Is there a way I can do it without converting one by one
Regards
回复1
One possibility is to use https://text2bib.economics.utoronto.ca/ to convert the \bibitem
into bibtex format. Choosing Spanish as language, the output of the conversion is
@article{Bermudez,
author = {Berm\'udez, J. D. and J. V. Segura and E. Vercher},
journal = {Journal of the Operational Research Society},
pages = {164-171},
title = {{B}ayesian forecasting with the Holt-Winters model},
volume = {61},
year = {2010},
}
Some fields are missing, e.g. the publisher, because this information was not contained in your
\bibitem
回复2
You can use tex2bib, a tool based on text2bib, but migrated to a newest PHP version (PHP 7).
See an example of use
Input of text transformation:
\bibitem{Bermudez} Berm\'udez, J.D., J. V. Segura y E. Vercher (2010). \emph{Bayesian forecasting with the Holt-Winters model}. Journal of the Operational Research Society, 61, 164-171.
Output:
@article{bv10,
author = {Berm\'udez, J. D. and J. V. Segura y E. Vercher},
title = {Bayesian forecasting with the Holt-Winters model},
journal = {Journal of the Operational Research Society},
year = {2010},
volume = {61},
pages = {164-171},
}