> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-pro.ayaka.space/latex/zh-tw/can-kao-wen-xian-yu-yin-wen/04-bibtex-bibliography-styles.md).

# BibTeX 參考書目樣式

## 簡介與範例

當使用 [BiBTeX](/latex/zh-tw/can-kao-wen-xian-yu-yin-wen/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}
%在目錄中加入「References」
\usepackage[nottoc]{tocbibind}

%文件的標題、日期與作者
\title{參考書目管理：BibTeX}
\author{Overleaf}

%文件的開始
\begin{document}

\maketitle

\tableofcontents

\medskip

\section{第一節}
本文件是使用 BibTeX 進行參考書目管理的範例。文中引用了三個項目：\textit{The \LaTeX\ Companion} 一書 \cite{latexcompanion}、愛因斯坦的期刊論文 \cite{einstein}，以及 Donald Knuth 的網站 \cite{knuthwebsite}。與 \LaTeX\ 相關的項目為 \cite{latexcompanion,knuthwebsite}。

\medskip

%將參考書目樣式設為 UNSRT，並匯入
%參考書目檔案「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 | output                                                                     |
| --------- | -------------------------------------------------------------------------- |
| `abbrv`   | ![BibtexStylesEx1.png](/files/7f655af199cebdfec222e7b20990a8f8a46f3724)    |
| `acm`     | ![BibtexStylesEx2.png](/files/b10af7ee79b4e5555025e729c6dba5861650b738)    |
| `alpha`   | ![BibtexStylesEx3.png](/files/d832434e8684e9e2f13376dc50f305af947eff60)    |
| `apalike` | ![BibtexStylesEx4.png](/files/99c8551cb20db16950ae53a49b39720f3012b3af)    |
| `ieeetr`  | ![BibtexStylesEx5.png](/files/f4a9fd6369d7f6c6593f6654df55311469fec7f1)    |
| `plain`   | ![BibtexStylesEx6new.png](/files/70811fc708b109340c8a8072eb0c5de0b8a01f66) |
| `siam`    | ![BibtexStylesEx7.png](/files/78550e4d9c6a484addad61cbdeb6655a5e247306)    |
| `unsrt`   | ![BibtexStylesEx8.png](/files/7fd0510fc1a96b8e71e6b12b352025a3a17d1909)    |

## 延伸閱讀

更多資訊請參見：

* [使用 bibtex 進行參考書目管理](/latex/zh-tw/can-kao-wen-xian-yu-yin-wen/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-tw/can-kao-wen-xian-yu-yin-wen/02-bibliography-management-with-natbib.md)
* [使用 biblatex 進行參考書目管理](/latex/zh-tw/can-kao-wen-xian-yu-yin-wen/03-bibliography-management-with-biblatex.md)
* [目錄](/latex/zh-tw/wen-jian-jie-gou/02-table-of-contents.md)
* [大型專案中的管理](/latex/zh-tw/wen-jian-jie-gou/07-management-in-a-large-project.md)
* [多檔案 LaTeX 專案](/latex/zh-tw/wen-jian-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://overleaf-pro.ayaka.space/latex/zh-tw/can-kao-wen-xian-yu-yin-wen/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.
