How to make references in latex

Source: Internet
Author: User

first, Google to do latex bib file

1. Open scholar.google.com

2. Customizing scholar Preferences->bibliography Manager->show links to import citations int
o BibTeX (check this)

3. Search something like "multicast" in the scholar.google.com,
In the result list, kick "Import into BibTeX" Copy the text to BibTeX database directly,

4 go directly to compile, without any modification two,

Latex Tips 23:bibtex Making reference documents

BibTeX is a format and a program that coordinates the reference processing of latex.

BibTeX uses a database to manage references. The suffix name for the BibTeX file is. Bib. First look at an example

@article {name1,
Author = {Author, multiple authors are connected with and},
title = {Title},
Journal = {journal name},
Volume = {Volume 20},
Number = {Page #},
Year = {years},
Abstract = {Summary, this is mainly referred to by the time of its own reference, this line is not necessary}
}

@book {name2,
Author = "Author",
Year= "Year 2008″,
Title= "title",
Publisher = "Publisher Name"
}

Description: The first line of @article tells BibTeX that this is an article type of reference. There are other formats, such as article, book, booklet, Conference, Inbook, Incollection, inproceedings, Manual, Misc, Mastersthesis, phdthesis , Proceedings, Techreport, unpublished and so on. The next "Name1″" is the name of the item you are applying in the body. The other is the specific content in the reference document.

Using BibTeX in Latex
In order to use the BibTeX database in Latex, you must first do the following three things:

1) Set the type of reference (bibliography style). Standard for Plain:

/bibliographystyle{plain}

Place the above command behind the/begin{document} in the LaTeX document. Other types include unsrt– basically the same as the plain type, except that the reference entries are numbered in the order in which they are quoted, rather than in alphabetical order by the author. alpha– is similar to the plain type when the reference entry number is based on the author's name and the Order of the year of publication. abbrv– abbreviated format.

2) tag reference (make citations). When you want to use a reference in a document, insert the LaTeX command

/cite{referencing the article name}

"Reference article name" is the name that precedes the definition @article.

3) Tell Latex to generate a list of references. Enter before the end of LaTeX

/bibliography{bibfile}

Here Bibfile is your BibTeX database file bibfile.bib.

Run BibTeX
There are four steps to build your. tex file with Latex, which is to generate a. aux file, which tells BibTeX to use those apps. Compile the. bib file with BibTeX. Once again, build your. tex file with Latex, which already contains references in your document, but may not refer to the correct number at this time. Finally, build your. tex file with LaTeX, and if everything goes well, it's all the things that are normal.

Example: Save an example of the above BibTeX as a bibtex-example.bib.

/documentclass{article}
/USEPACKAGE{CJK}
/begin{document}
/begin{cjk}{utf8}{gkai}
% i was using latex under Linux, window users changed the previous line to/begin{cjk}{gbk}{kai}
Text/cite{name1}/cite{name2}
Chinese
To write the Reference in latex as a "reference" in Chinese
% if the document class is article or something, use the/renewcommand/refname{reference}
% if the document class is book or the like, use the/renewcommand/bibname{reference}
/renewcommand/refname{References}
/bibliographystyle{plain}
/bibliography{Bibtex-example.bib}
/END{CJK}
/end{document}

Save the above content as Bibtex-example.tex.

Latex compiled once, BibTeX compiled once, then Latex compiled two times will be done

Refer:http://www.shamoxia.com/html/y2009/956.html

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.