> 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-cn/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}
关于这一现象最权威的论著之一是
由 \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-cn/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.
