> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/latex/zh-cn/can-kao-wen-xian-he-yin-yong/04-bibtex-bibliography-styles.md).

# Bibtex 参考文献样式

## 简介和示例

使用时 [BibTeX](/latex/zh-cn/can-kao-wen-xian-he-yin-yong/01-bibliography-management-with-bibtex.md)，参考文献样式已设置，并使用以下两个命令导入参考文献文件：

```latex
  \bibliographystyle{stylename}
  \bibliography{bibfile}
```

其中 `bibfile` 是参考文献 `.bib` 文件的名称，不包含扩展名，且 `stylename` 是下面 [表中所示的值之一](#table-of-stylename-values).

下面是一个你可以在 Overleaf 中打开的示例—— `.bib` 文件已为你创建：

```latex
\documentclass[a4paper,10pt]{article}
\usepackage[english]{babel}
%Includes "References" in the table of contents
\usepackage[nottoc]{tocbibind}

%Title, date an author of the document
\title{Bibliography management: BibTeX}
\author{Overleaf}

%Begining of the document
\begin{document}

\maketitle

\tableofcontents

\medskip

\section{First Section}
本文档是一个在参考文献管理中使用 BibTeX 的示例。引用了三项内容：\textit{The \LaTeX\ Companion} 书籍 \cite{latexcompanion}、Einstein 期刊论文 \cite{einstein}，以及 Donald Knuth 的网站 \cite{knuthwebsite}。与 \LaTeX\ 相关的项目有 \cite{latexcompanion,knuthwebsite}。

\medskip

%Sets the bibliography style to UNSRT and imports the
%bibliography file "sample.bib".
\bibliographystyle{unsrt}
\bibliography{sample}
\end{document}
```

[在 Overleaf 中打开（会生成一个合适的 .bib 文件）](<https://www.overleaf.com/docs?engine=\&snip_name\[]=main.tex\&snip\[]=\documentclass\[a4paper,10pt]{article}&#xA;\usepackage\[english]{babel}&#xA;%Includes+"References"+in+the+table+of+contents&#xA;\usepackage\[nottoc]{tocbibind}&#xA;&#xA;%Title,+date+an+author+of+the+document&#xA;\title{Bibliography+management:+BibTeX}&#xA;\author{Overleaf}&#xA;&#xA;%Begining+of+the+document&#xA;\begin{document}&#xA;&#xA;\maketitle&#xA;&#xA;\tableofcontents&#xA;&#xA;\medskip&#xA;&#xA;\section{First+Section}&#xA;This+document+is+an+example+of+BibTeX+using+in+bibliography+management.+Three+items+are+cited:+\textit{The+\LaTeX\\+Companion}+book+\cite{latexcompanion},+the+Einstein+journal+paper+\cite{einstein},+and+the+Donald+Knuth's+website+\cite{knuthwebsite}.+The+\LaTeX\\+related+items+are+\cite{latexcompanion,knuthwebsite}.+&#xA;&#xA;\medskip&#xA;&#xA;%Sets+the+bibliography+style+to+UNSRT+and+imports+the+&#xA;%bibliography+file+"sample.bib".&#xA;\bibliographystyle{unsrt}&#xA;\bibliography{sample}&#xA;\end{document}\&snip_name\[]=sample.bib\&snip\[]=@article{einstein,&#xA;++author+=+++++++"Albert+Einstein",&#xA;++title+=++++++++"{Zur+Elektrodynamik+bewegter+K{\\"o}rper}.+({German})&#xA;+++++++++++++++++\[{On}+the+electrodynamics+of+moving+bodies]",&#xA;++journal+=++++++"Annalen+der+Physik",&#xA;++volume+=+++++++"322",&#xA;++number+=+++++++"10",&#xA;++pages+=++++++++"891--921",&#xA;++year+=+++++++++"1905",&#xA;++DOI+=++++++++++"http://dx.doi.org/10.1002/andp.19053221004"&#xA;}&#xA;&#xA;@book{latexcompanion,&#xA;++++author++++=+"Michel+Goossens+and+Frank+Mittelbach+and+Alexander+Samarin",&#xA;++++title+++++=+"The+\LaTeX\\+Companion",&#xA;++++year++++++=+"1993",&#xA;++++publisher+=+"Addison-Wesley",&#xA;++++address+++=+"Reading,+Massachusetts"&#xA;}&#xA;+&#xA;@misc{knuthwebsite,&#xA;++++author++++=+"Donald+Knuth",&#xA;++++title+++++=+"Knuth:+Computers+and+Typesetting",&#xA;++++url+++++++=+"http://www-cs-faculty.stanford.edu/\\~{}uno/abcde.html"&#xA;}\&main_document=main.tex>)

## stylename 值表

| stylename | 输出                                                                         |
| --------- | -------------------------------------------------------------------------- |
| `abbrv`   | ![BibtexStylesEx1.png](/files/96930acb78c42ca7c50e97cb4d0d4ebccbd1ce65)    |
| `acm`     | ![BibtexStylesEx2.png](/files/d990cb8a9f3fb7c469d28b1b7b18828a3c5c1f35)    |
| `alpha`   | ![BibtexStylesEx3.png](/files/c6acb68e1064c6b8afc16c68e786e04e7301dd44)    |
| `apalike` | ![BibtexStylesEx4.png](/files/bb3de6f7cefe0bf6af49f1e39fe07aaef58b97c9)    |
| `ieeetr`  | ![BibtexStylesEx5.png](/files/e93bb7e1d246ec437c69e8fbf7e3436291b14d8f)    |
| `plain`   | ![BibtexStylesEx6new.png](/files/dbe71e33c3055e397d1e39a99d40bfee26e2700f) |
| `siam`    | ![BibtexStylesEx7.png](/files/b1112281f058b15712c76324777f8e90dfcb7a87)    |
| `unsrt`   | ![BibtexStylesEx8.png](/files/a1b503269a77b021c05b3e8d209b765709a70c15)    |

## 进一步阅读

更多信息请参见：

* [使用 bibtex 管理参考文献](/latex/zh-cn/can-kao-wen-xian-he-yin-yong/01-bibliography-management-with-bibtex.md)
* [CTAN 网站上的 BibTeX 文档](http://www.ctan.org/tex-archive/biblio/bibtex/contrib/doc/)
* [tocbind 宏包文档](ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/tocbibind/tocbibind.pdf)
* [使用 natbib 管理参考文献](/latex/zh-cn/can-kao-wen-xian-he-yin-yong/02-bibliography-management-with-natbib.md)
* [使用 biblatex 管理参考文献](/latex/zh-cn/can-kao-wen-xian-he-yin-yong/03-bibliography-management-with-biblatex.md)
* [目录](/latex/zh-cn/wen-dang-jie-gou/02-table-of-contents.md)
* [大型项目中的管理](/latex/zh-cn/wen-dang-jie-gou/07-management-in-a-large-project.md)
* [多文件 LaTeX 项目](/latex/zh-cn/wen-dang-jie-gou/08-multi-file-latex-projects.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/latex/zh-cn/can-kao-wen-xian-he-yin-yong/04-bibtex-bibliography-styles.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
