> 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/geng-duo-zhu-ti/40-multibib.md).

# Multibib

Multibib 是一個 LaTeX 套件，可用於在論文中建立多個參考文獻列表。它適合用來建立數個參考文獻列表，例如一個包含期刊文章、一個包含教科書參考文獻，還有另一個包含專利引用；依此類推。

此套件使用 \newcites 指令來建立多個標題，並將適當的引用放在各個標題下。套件是在導言區使用標準指令載入的——在此例中為 \usepackage{multibib}。

接著使用 \newcites 指令，每種所需的參考文獻列表各用一個實例。

例如，可以在導言區使用下列 LaTeX 序列建立兩個參考文獻列表，一個用於書籍來源，另一個用於期刊文章：

```latex
\usepackage{multibib}
\newcites{book}{書籍參考文獻}
\newcites{journal}{期刊參考文獻}
```

在上述範例中，第一個引數是指參考文獻列表的類型，第二個引數則建立該參考文獻列表的標題。之後這兩種引用可用於一個或多個句子中。例如，書籍與期刊參考文獻可如下放在句子中：

```latex
這個句子在此處引用了一本書 \footcitebook{Walpol:2005}，並在此處引用了一篇期刊文章 \footcitejournal{Steinbeck:2013}。
```

建立參考文獻列表時，請在文件結尾或任何所需章節的結尾放入下列序列：

```latex
\bibliographystylebook{plain}
\bibliographybook{all}
\bibliographystylejournal{plain}
\bibliographyjournal{all}
```

接著需要為每一個要建立的參考文獻列表執行一次 bibtex。在這個例子中有兩個，因此 bibtex 需執行兩次，如下所示：

```latex
% bibtex book
% bibtex journal
```

最後， `.tex` 檔案必須編譯；在此範例中需編譯兩次。 *Overleaf 會自動執行並在需要時重複這些步驟，因此您不需要自行手動執行。*

以下是一個包含兩個參考文獻列表的完整 LaTeX 程式碼範例：

```latex
\documentclass{article}
\usepackage{multibib}
\newcites{book}{書籍參考文獻}
\newcites{journal}{期刊參考文獻}

\begin{document}
關於這種現象最具權威性的論述之一是由
surface plasmon resonance 一文由 \cite{Homola:2006} 撰寫。
同一主題的期刊文章則由 \cite{Merwe:2012} 發表。
```

## 延伸閱讀

更多資訊請參閱：

* [Overleaf 圖庫中的 Multibib 範例](https://www.overleaf.com/latex/examples/multiple-bibliographies-with-multibib/fzmrrgbcvqhf)


---

# 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/geng-duo-zhu-ti/40-multibib.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.
