> 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/vi/chu-de-khac/40-multibib.md).

# Multibib

Multibib là một gói LaTeX có thể dùng để tạo nhiều danh mục tài liệu tham khảo trong một bài viết. Nó hữu ích để tạo nhiều danh mục tài liệu tham khảo, ví dụ một danh mục chứa các bài báo tạp chí, một danh mục chứa các tài liệu tham khảo sách giáo khoa, và một danh mục khác chứa các tài liệu tham khảo về bằng sáng chế; v.v.

Gói này sử dụng lệnh \newcites để tạo nhiều tiêu đề và đặt các trích dẫn phù hợp dưới mỗi tiêu đề. Gói được gọi trong phần mở đầu bằng một lệnh tiêu chuẩn - trong trường hợp này là \usepackage{multibib}.

Tiếp theo là lệnh \newcites, một lần cho mỗi loại danh mục tài liệu tham khảo mong muốn.

Ví dụ, có thể tạo hai danh mục tài liệu tham khảo, một cho nguồn sách và một cho các bài báo tạp chí, bằng cách sử dụng chuỗi LaTeX sau trong phần mở đầu:

```latex
\usepackage{multibib}
\newcites{book}{Tài liệu tham khảo sách
\newcites{journal}{Tài liệu tham khảo tạp chí}
```

Trong ví dụ trên, đối số thứ nhất chỉ loại danh mục tài liệu tham khảo và đối số thứ hai tạo tiêu đề cho danh mục đó. Hai loại trích dẫn này sau đó có thể được dùng trong một hoặc nhiều câu. Ví dụ, tài liệu tham khảo sách và tạp chí có thể được đặt trong một câu như sau:

```latex
Câu này trích dẫn một cuốn sách ở đây \footcitebook{Walpol:2005} và trích dẫn một bài báo tạp chí \footcitejournal{Steinbeck:2013} ở đây.
```

Danh mục tài liệu tham khảo được tạo bằng cách đặt chuỗi sau ở cuối tài liệu hoặc ở cuối bất kỳ phần nào mong muốn:

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

Tiếp theo là chạy bibtex một lần cho mỗi danh mục tài liệu tham khảo cần tạo. Trong trường hợp này có hai danh mục, vì vậy bibtex sẽ được chạy hai lần như sau:

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

Cuối cùng,  `.tex` tệp phải được biên dịch, hai lần trong ví dụ này. *Overleaf sẽ tự động thực thi và lặp lại các bước này khi cần, vì vậy bạn sẽ không cần tự chạy chúng thủ công.*

Sau đây là một ví dụ về mã LaTeX hoàn chỉnh với hai danh mục tài liệu tham khảo:

```latex
\documentclass{article}
\usepackage{multibib}
\newcites{book}{Tài liệu tham khảo sách
\newcites{journal}{Tài liệu tham khảo tạp chí}

\begin{document}
Một trong những chuyên luận có thẩm quyền nhất về hiện tượng
cộng hưởng plasmon bề mặt được viết bởi \cite{Homola:2006}.
Một bài báo tạp chí về cùng chủ đề đã được xuất bản bởi \cite{Merwe:2012}.
```

## Đọc thêm

Để biết thêm thông tin, xem:

* [Ví dụ Multibib trong Thư viện Overleaf](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/vi/chu-de-khac/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.
