In the preparation of latex files, the reference is a headache problem, used to write their own always use
\begin{thebibliography}
\bibitem author,article, Year, vol,
\end{thebibliography}
I want to say this method is too amateur, now want to take you Niaoqianghuanpao!
Here is the BibTeX, it can be written in your good reference files automatically inserted into the Tex file, the formation of professional reference format!
So let's start by understanding a few basic concepts, namely, several file types:
Tex---is Tex file, this earth people know
Bib---reference documents
BST---reference style file
Here, sometimes it is important to note the abbreviations, and it is easy to find problems, bst=bibliography style
Down to start editing these three files, in general, BST is provided by the system, so do not need to write, but when you publish a journal, the journal will generally provide style documents to you, after all, the various periodicals on the reference requirements are not the same, the domestic has not seen such periodicals, and international integration will take time.
\documentclass[a4paper, 11pt]{article}
%===================package area==================%
\usepackage[top=1.5cm, bottom=2cm, left=1cm, right=1cm]{geometry}
\USEPACKAGE{CJK}
\usepackage{indentfirst}
\usepackage{textcomp}
\usepackage{latexsym}
\USEPACKAGE{AMSSYMB}
\usepackage{amsmath}
\USEPACKAGE[DVIPS]{GRAPHICX}
\usepackage{flafter}
\usepackage{booktabs, longtable}
\usepackage{caption2}
\usepackage{pxfonts}
\usepackage{cite}
\usepackage{enumerate}
%===============end Package area==================%
\begin{document}
\begin{cjk*}{gbk}{song}
\cjkindent
%------------Chinese Settings--------------------------
\makeatletter% The citations appear as superscript, adding parentheses,
\def\ @cite #1#2{\textsuperscript{[{#1 \[email protected], #2 \fi}]}}
\makeatother
\renewcommand{\refname}{\centerline{references}}
\renewcommand{\tablename}{Table}
\renewcommand{\captionlabeldelim}{\quad}
%===================image settings========================%
\renewcommand{\figurename}{Diagram}
\renewcommand{\captionlabeldelim}{\quad}%NEED Caption2 Macro Package
%===============end Image settings========================%
%-----------Chinese Settings--------------------------
\title{bibtex test File}
\AUTHOR{XXX}
\date{\today}
\maketitle
This is a reference to the book \cite{plain:mybook}
This is the article reference \cite{plain:myarticle}
\bibliographystyle{plain}
\bibliography{bibitex_test}
\end{cjk*}
\end{document}
This is my own writing template, so the macro package is more, and here about CJK and cite, one is to support Chinese, there is a support reference superscript, the rest should be removed. Look at the text of the two cite, is two references to the place, how to refer to the following description, and finally \end{cjk*} before the style and external references to the reference document, this practice is somewhat similar to the C language of the # include directive
Finally edit a bib file, where the file name and \bibliography{xxx} in the name of XXX, with bib as the extension, in \bibliography do not need to load the extension.
What about the bib writing format?
View
@ Document Type ={reference name,
Each field, separated by commas, after the last one does not need to append a comma, the content is enclosed in double quotation marks.
};
Note here: Each reference is preceded by @, the comma is not comma-delimited, with a half-width comma, each reference is to end, similar to the definition of a C + + class.
Example
Book{plain:mybook,
Author = "Nan Yan",
Editor = "Nan Yan",
Year = "2006",
title = "Book Test",
Publisher = "Wiley"
};
@article {plain:myarticle,
Author = "Houston",
title = "Teach You and use article reference",
jounal = "IEEE Trans. On typeset",
Year = "2006"
};
There are many types of references, such as: article, article, booklet, Conference, Inbook, Incollection, inproceedings, Manual, Misc, Mastersthesis, Phdthesis, Proceedings, Techreport, unpublished, each reference also has a variety of fields, some must be written, not written will give a warning, and some are optional, but as far as possible to provide detailed information.
Finally, there are a few things to note, that is, when writing the reference name, to bring the style, the specific format is
Style: Reference name
The same is true in the text, and the BST file is best placed in the same directory as the Tex file, or in the <texmf>/bibtex/bst
For example, I installed in the C:\CTeX\, that is C:\CTeX\texmf\bibtex\bst, and so on, each time the system will automatically load this style file, if it is placed in the same directory with Tex, it can only use the current file.
Finally, the compilation process:
Run command
$ latex Yourfile.tex
$ BibTeX Your_ref.bib
$ latex Yourfile.tex
$ latex Yourfile.tex
Finally, you have to run latex two times to get the right results.
From:http://blog.sina.com.cn/s/blog_6a4b2dea0100l45n.html
How to use Latex reference documents