BibTeX management references in latex

Source: Internet
Author: User

BibTeX is a kind of document management software, which is used to standardize the reference list, and defines a kind of general management document format for coordinating 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 {Label1,
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 {label2,
Author = "Author",
Year= "Year 2008",
Title= "title",
P lisher = "Publisher name"
}

Description

    1. The first line @article tells BibTeX that this is an article type of reference. There are other formats, such as article, book, booklet, Conference, Inbook, Incollection, inproceedings, man L, Misc, Mastersthesis, Phdthesis, Proceedings, Techreport, UNP lished and so on.
    2. BibTeX as a special kind of database, he also has his own keywords, that is, @article behind the Label1, also known as Bibkey, used to uniquely identify a reference document.
    3. 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. The other types include

    • unsrt– is basically the same as the plain type, except that the reference entries are numbered in the order of reference, rather than alphabetically 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
Divided into four steps below

    • Build your. tex file with Latex, which is generated by 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{LABEL1}\CITE{LABEL2}
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.

Compile sequentially in the following order:

Latex--bibtex--latex--latex

So you're done!

The above references the http://www.shamoxia.com/html/y2009/956.html, and has made the appropriate improvement. The above is about how to use BibTeX management reference in Latex, so how to make BibTeX reference database? I will do it alone Inductive Summary。 Accessories: 1. Huang Zhenghua, 2005, generates references 2 with BibTeX. Ki-joo Kim,2004,a BibTEX Guide via Examples3. Http://www.rhizobia.co.nz/latex/convert.html4. Latexst io,http://www.latexst io.cn/index.html

BibTeX management references in latex

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.