add references with bib files in latex
There are many ways to add references in Latex, one is \begin{thebibliography}...\end{thebibliography} \begin{thebibliography}...\end{ Thebibliography}
This type of reference is written directly in the. tex file in the format specified in the journal and directly \cite{the file at the reference.
Another type of citation I'm familiar with is to write references in the. bib file, and then put it in the same folder as. Tex, and. Tex directly references the references in the. Bib. This method is relatively simple, you do not need to change according to the format of the journal, you only need to find the relevant documents, in accordance with the BibTeX format into the. bib file, in the Tex file in accordance with the specified reference format reality. The next step is to introduce this approach:
1. First from Google academic or Baidu to find references to use, and then reference->bibtex, will display the following format:
@article {sniffen1992a,
Title={a net carbohydrate and protein system for evaluating cattle diets:ii. Carbohydrate and protein availability.},
Author={sniffen, J.T. and O ' Connor, J. Van Soest, P. J. and Fox, D. G. and Russell, J. B.,
Journal={journal of Animal Science},
VOLUME={70},
NUMBER={11},
PAGES={3562-77},
year={1992},
}
Explained as follows:
@article {name1,
title = {Header},
Author = {Author, multiple authors with and join}
Journal = {Periodical Name},
Volume = {Volume 20},
Number = {Page numbers},
pages={},
Year = {years},
2. Under the. Tex folder, create a new. bib file that copies the content to the. bib file. 3. References to documents in. Tex
Use \cite{name1} (name1 for reference BibTeX name) in the article to refer to the article
Set reference literature type such as \bibliographystyle{ieeetran}
Declare the reference document name at the end \bibliography{xx} is the name of the. bib file you built. 4. To compile. tex files and. bib files, the. tex file compiles as before,. Bib is compiled directly with BibTeX.
That's it, and you don't need to adjust every reference.