Batch convert bibtex citation format of documents to bibitem format references

Many journals’ LaTeX templates require references to use the \bibitem format. You cannot put the references in the .bib file. Instead, use the \bibitem{} command (formal citations in curly braces), similar to the following figure. , Written in the .tex file of the paper. It is obviously not practical to add manually when there are many documents. The solution is to realize batch processing through bibtex.
Insert picture description here

first step

First put the bibtex references of all the documents in one file, named references.bib.
Insert picture description here

Second step

Create a new .tex file, the code is as follows:

\documentclass{
    
    article}
\begin{
    
    document}
\nocite{
    
    *}
\bibliography{
    
    references} %bibfile_name
\bibliographystyle{
    
    IEEEtran}
\end{
    
    document}

Explanation:

The function of \nocite{*} is not to cite documents, but to generate a list of documents.
\bibliography{references} is a .bib file created for reference.
Insert picture description here

third step

Run LaTeX or PDFLaTeX in the newly created .tex file, generate the .bbl file in the current directory, open the file, intercept the part between
\begin{thebibliography} and \end{thebibliography}
, and paste it into the text of LaTeX In the file.

Insert picture description here

Guess you like

Origin blog.csdn.net/zou_albert/article/details/115168644