Latex automatically generates documents

Source: Internet
Author: User

A database is used to manage reference programs. It is used to coordinate latex references.

 

The file suffix is. bib. Let's look at an example:

@ Article {gettys90,
Author = {Jim Gettys and Phil karlton and Scott McGregor },
Title = {the {x} window system, version 11 },
Journal = {software practice and experience },
Volume = {20 },
Number = {S2 },
Year = {1990 },
Abstract = {a technical overview of the X11 functionality. This is an update of the x10 tog paper by scheifler \ & Gettys .}
}

 

Note:

The first line @ article tells this is an article reference. There are other formats, such
Article, book, booklet, conference, inbook, incollection,
Inproceedings, manual, MISC, mastersthesis, phdthesis, proceedings,
Techreport, unpublished, etc.
The next "gettys90" is the name of the entry you reference in the body.
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}

Other types include unsrt-basically the same as the plain type, except that the numbers of reference entries are in reference order, 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}

"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.

 

The operation is divided into the following four steps:

1. Use latex to compile your. Tex file. This is to generate a. aux file, which indicates that the references will be used.
2. Compile the. bib file with an optional string.
3. Use latex to compile your. Tex file again. This file contains references, but the referenced numbers may be incorrect.
4. Finally, use latex to compile your. Tex file. If everything goes well, everything is normal.

Example: Save the preceding example as bibfile. bib.

\ Documentclass {Article}
\ Begin {document}
We cite \ cite {name1} And \ cite {name2 }.
\ Bibliography {bibfile}
\ Bibliographystyle {plain}
\ End {document}

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

Latex is compiled once. It is a compilation once, and latex is used for compilation twice!

 

Obtain bib files

You can use the following URL to convert the Springer document format:

Http://www.it.usyd.edu.au /~ NIU/cgi-bin/Springer. cgi

 

Document Type: (from the latex2e User Manual of texguru)
@ Article: an article in a journal or magazine.
Indispensable domain author, title, journal, year.
The fields volume, number, pages, month, and note can be omitted.

@ Article {Name,
Author = {a and B },
Title = {Title },
Journal = {journal name },
Volume = {42 },
Number = {1 },
Year = {2008 },
ISSN = {0110-0101 },
Pages = {1-8 },
Doi = {http://doi.xxx.org },
Publisher = {ACM },
Address = {New York, NY, USA },
};

The @ book entry is a book with a confirmation Publishing House.
Indispensable domain author or editor, title, publisher, year.
The domain volume or number, series, address, edition, month, and note can be omitted.

@ Booklet the entry is printed with a cover, but there is no name for the publisher or sponsor.
Title.
The fields author, howpublished, address, month, year, and note can be omitted.

@ Conference is the same as @ inproceedings below.

@ Inbook entries are part of a book (chapter, section, or some pages ).
The fields author or editor, title, chapter and/or pages, publisher, and year.
The domain volume or number, series, type, address, edition, month, and note can be omitted.

@ Incollection entries are part of a book with its own questions.
Indispensable domain author, title, booktitle, publisher, year.
The fields Editor, volume, number, series, type, chapter, pages, address, edition, month, and note can be omitted.

@ Inproceedings: an article in the proceedings of the meeting.
Indispensable domain author, title, booktitle, year.
The fields Editor, volume, number, series, pages, address, month,
Organization, publisher, note.

@ Inproceedings {b07name,
Author = {a and B },
Title = {Title },
Booktitle = {Proceedings of the Conference },
Address = {sysydney, Australia },
Month = Nov,
Year = 2008,
Pages = {1-2 },
Affiliation = {uni-name, country },
Url = {http: // URL /}
};

@ Manual the entry is a technical document.
Title.
The fields author, organization, address, edition, month, year, and note can be omitted.

@ Mastersthesis the entry is Master's thesis.
Indispensable domain author, title, school, year.
The field type, address, month, and note can be omitted.

@ MISC indicates that the entry is not of any other type.
The domain is not available.
The fields author, title, howpublished, month, year, and note can be omitted.

@ MISC {Name,
Author = "",
Title = "title ",
Howpublished = "website ",
Year = {2008 },
Note = {\ URL {https://www.mysite.org }}
};

@ Phdthesis: doctoral thesis.
Indispensable domain author, title, school, year.
The field type, address, month, and note can be omitted.

The @ proceedings entry is the proceedings of the meeting.
Title, year.
The field editor, volume or number, series, address, month,
Organization, publisher, note.

@ Techreport entries are reports printed by schools or other research institutions.
Indispensable domain author, title, institution, year.
Field type, number, address, month, note.

@ Techreport {Name,
Author = {a and B}
Title = {Title },
Institution = {institution RPT No .}
Year={ 2008}
};

 

@ Unpublished the entries are those with authors and titles that have not yet been published.
Indispensable domain author, title, note.
The month, year.
You can also omit the domain key and crossref in each entry.

 

 

The line of JavaScript that does not allow replication in shtml is not found.

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.