How to create references in latex

Source: Internet
Author: User

I. Use Google for the latex bib File

1. Open scholar.google.com

2. Customize scholar preferences-> bibliography Manager-> Show links to import citations int
O-// select this option)

3. Search something like "multicast" in the scholar.google.com,
In the result list, kick "import into an entry" copy the text to a database directly,

4. Compile directly without any modification

II,

Latex tips 23: Creating references

 

A format and a program are used to coordinate latex references.

-Use the database method to manage reference files. The extension name of the file is. bib. Let's look at an example.

@ Article {name1,
Author = {author, multiple authors connected with and },
Title = {Title },
Journal = {journal name },
Volume = {VOLUME 20 },
Number = {page number },
Year = {year },
Abstract = {abstract, which is referenced by myself. This line is not required}
}

@ Book {name2,
Author = "author ",
Year = "Year 2008 ″,
Title = "title ",
Publisher = "publisher name"
}

Note:

  1. The first line @ article tells this is an article reference. there are other formats, such as article, book, booklet, conference, inbook, incollection, inproceedings, manual, MISC, mastersthesis, phdthesis, Proceedings, techreport, unpublished, and so on.
  2. The following "name1" is the name of the entry you applied in the body.
  3. Others are the specific content in the references.

Use in latex
To use a database in latex, you must first do the following:

1) set the reference type (bibliography style). The standard is plain:

/Bibliographystyle {plain}

Put the above command behind/begin {document} in the latex document. Other types include

  • Unsrt-basically the same as the plain type, except that the numbers of reference entries are in the order of reference, rather than in the alphabetic order of the author.
  • Alpha-similar to plain type, when the number of entries in the reference document is based on the order of the author's name and year of publication.
  • Abbrv-abbreviated format.

2) Make citations. When you want to use the reference in the document, insert the latex command

/CITE {reference document name}

The reference document name is the name after the definition @ Article.

3) Tell latex to generate a reference list. Enter

/Bibliography {bibfile}

Here, bibfile is your database file bibfile. bib.

Running
The steps are as follows:

  • Use latex to compile your. Tex file. This is to generate a. aux file, which indicates which applications will be used.
  • Compile the. bib file.
  • Use latex to compile your. Tex file again. This file contains references, but the referenced numbers may be incorrect.
  • Finally, use latex to compile your. Tex file. If everything goes well, everything is normal.

Example: Save the preceding example as a bibtex-example.bib.

/Documentclass {Article}
/Usepackage {CJK}
/Begin {document}
/Begin {CJK} {utf8} {gkai}
% I used latex in Linux. The window user changed the previous line to/begin {CJK} {GBK} {Kai}
Text/CITE {name1}/CITE {name2}
Chinese
Write the reference in latex as a Chinese reference"
% If the document class is article, use/renewcommand/refname {references}
% If the document class is book or something, use/renewcommand/bibname {references}
/Renewcommand/refname {references}
/Bibliographystyle {plain}
/Bibliography {bibtex-example.bib}
/End {CJK}
/End {document}

Save the content above as a bibtex-example.tex.

Latex is compiled once, and it is compiled once, and then twice with latex.

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.