Add references using bib files in latex __latex

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.