Latex-quoted literature automatic arranging zzz__ thesis writing by quoting order

Source: Internet
Author: User



Article reproduced from: http://blog.sina.com.cn/s/blog_7e4ac8b50102uxlg.html

Http://blog.sina.com.cn/s/blog_4fa881040100wtty.html


BibTeX is a format and a program used to coordinate the processing of latex reference documents.

BibTeX the use of a database to manage references. The BibTeX file has a suffix named. Bib. Let's take a look at an example

@article {name1,
Author = {Author, multiple authors with and join}
title = {Header},
Journal = {Periodical Name},
Volume = {Volume 20},
Number = {Page numbers},
Year = {years},
Abstract = {Abstract, this is mainly referred to the time of their own reference, this line is not necessary}
}

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

Description: The first line @article tells BibTeX this is an article type 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 that you apply this entry to in the body. The other is the specific contents of the reference document.

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

1 set the type of reference (bibliography style). The standard is 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 of reference, rather than according to the author's alphabetical order. alpha– is similar to the plain type, when the reference entries are numbered based on the author's name and the Order of the published year. abbrv– abbreviated format.

2) tag reference (make citations). Insert the LaTeX command when you want to use a reference in the document

\cite{reference article name}

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

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

\bibliography{bibfile}

Here Bibfile is your BibTeX database file bibfile.bib.

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

Example: Save the example of the above BibTeX as Bibtex-example.bib.

\documentclass{article}
\USEPACKAGE{CJK}
\begin{document}
\begin{cjk}{utf8}{gkai}
% i use Latex under Linux, window user will change the previous line to \begin{cjk}{gbk}{kai}
Text\cite{name1}\cite{name2}
Chinese
Write the Reference in Latex into Chinese "references"
% if the document class is article or something, use \renewcommand\refname{reference}
% if the document class is book or something, use the \renewcommand\bibname{reference}
\renewcommand\refname{Reference}
\bibliographystyle{plain}
\bibliography{Bibtex-example.bib}
\END{CJK}
\end{document}

Save the above contents as Bibtex-example.tex.

Latex compile once, BibTeX compile once, and then compile with latex two times it's done.


Complete process
1. Run Latex:latex finds the references that are cited in the, Tex file and the declaration of the Bibliography style fil E (. BST) and bibliography database (. bib) and records them in the. aux file.
2. Run Bibtex:bibtex reads the aux file to determine what cited entries to pull from what files, bib and formats The cited references according to the rules in the. BST file, and write the. bbl file.
3. Run Latex Again:latex now finds the. bbl file and'll read it and write cross reference data to the. aux file.
4. Run Latex Once More:latex now finds the cross reference of data for the citations in the. aux file and would resolve the C Itations.
5. Run Latex for one of last time (not always needed): Sometimes step 4 causes changes on line or page breaks that affect CRO SS Refence data for page or section links; This is final pass through LaTeX should resolve those changes.


Automatically sort the document number according to cite order, using \BIBLIOGRAPHYSTYLE{UNSRT}

Several others are as follows [turn]:

You can do this by setting up BibliographyStyle, BibTeX you have the ability to sort, and you can choose the sort you want. BibTeX has 8 styles, respectively, as follows (excerpt from the LaTeX Newsroom):

1. Plain, in alphabetical order, relative order to author, year and title

2. UNSRT, style with plain, just sort by reference

3. Alpha, with the author's first letter + year after the two digits as a label, sorted in alphabetical order

4. ABBRV, similar to plain, the whole month to the abbreviation, more compact:

5. IEEETR, International Institute of Electrical and Electronic Engineers journal style:

6. ACM, American Computer Society journal Style:

7. Siam, American Institute of Industrial and Applied Mathematics Journal style:

8. Apalike, American Society of Psychology journal Style:

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.