> 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/wen-yu-da/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.md).

# 在 IEEE 論文範本中，我想使用 bibtex 來處理參考文獻

許多使用 IEEE 期刊範本的作者，都會請求協助，教他們如何使用 bibtex 加入參考文獻。特別是，在將 IEEEexample.bib 和 IEEEabrv.bib 檔案上傳到 bibtex/bib 資料夾之後，要讓文件順利編譯可能會有點棘手。以下是我們解答的彙整，希望在你遇到類似情況時能有所幫助；最後還附上一個範例，你可以把它當作範本開始使用。

首先，如果你已上傳 IEEEtran.cls 和 IEEEtran.bst 檔案，建議把它們刪除，因為它們其實已內建於 writeLaTeX——你不需要把它們包含在專案中，而且通常最好使用內建版本。

如果你需要建立 bibtex/bib 資料夾，可以透過編輯器中的 Project 選單來完成——打開選單後，建立資料夾和檔案的圖示會在右上角。

由 bibtex 產生的參考書目來自 \bibliography 和 \bibliographystyle 指令，而且假設你使用的是 bibtex/bib 資料夾中的 IEEEexample.bib 和 IEEEabrv.bib 檔案，這些指令應改為：

```latex
\bibliography{bibtex/bib/IEEEabrv.bib,bibtex/bib/IEEEexample.bib}{}
\bibliographystyle{IEEEtran}
```

這會告訴 bibtex 載入這兩個 .bib 檔案，並使用 IEEEtran 參考書目樣式來格式化參考文獻。

注意：範本中的原始指令是：

```latex
\bibliography{mybib.bib}{}
\bibliographystyle{plain}
```

這表示你希望 bibtex 使用名為 mybib.bib 的檔案來撰寫參考文獻，並採用 plain（內建）樣式。

最後，在完成所有設定後常見的一個錯誤，是文件中沒有任何 \cite 指令引用 bib 檔案中的任何記錄。以下範例中，我們從 IEEEexample.bib 加入了一筆：

```latex
\cite{IEEEhowto:IEEEtranpage}
```

讓它能夠編譯。等你開始加入自己的引用之後，就會想把它刪掉。

[這裡是 Overleaf 上的範例，已準備好可供使用。](https://www.overleaf.com/latex/templates/ieee-for-journals-template-with-bibtex-example-files-included/hjbyjvncdmpx)

如需更多關於 bibtex 的資訊，我們推薦 LaTeX wikibook \[[參考文獻管理章節](http://en.wikibooks.org/wiki/LaTeX/Bibliography_Management)].


---

# 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/wen-yu-da/69-in-the-ieee-for-journals-template-i-m-trying-to-use-bibtex-for-my-references.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.
