> 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/co-so-tri-thuc/145-using-bibliographies-on-overleaf.md).

# Sử dụng thư mục tài liệu tham khảo trên Overleaf

## Giới thiệu

Có thể chèn tài liệu tham khảo trong Overleaf bằng tất cả các chương trình quản lý thư mục tài liệu tham khảo chính của LaTeX: biblatex, natbib và bibtex. Bài viết này giải thích cách:

* tạo thủ công một tệp mới `.bib` để lưu trữ cơ sở dữ liệu thư mục tài liệu tham khảo của bạn
* tải lên một `.bib` tệp hiện có vào dự án Overleaf của bạn
* tạo một `.bib` tệp bắt đầu từ một mẫu Overleaf.

**Lưu ý**: Người dùng có tài khoản trả phí có thể truy cập các tính năng cao cấp cho phép họ liên kết [Mendeley](/latex/vi/co-so-tri-thuc/070-how-to-link-mendeley-to-your-overleaf-account.md), [Zotero](/latex/vi/co-so-tri-thuc/073-how-to-link-zotero-to-your-overleaf-account.md), và [Papers](/latex/vi/co-so-tri-thuc/071-how-to-link-papers-to-your-overleaf-account.md) với tài khoản Overleaf của họ. Bằng cách kết nối các trình quản lý tài liệu tham khảo này, bạn có thể dễ dàng tạo `.bib` các tệp bằng cách nhập hàng loạt các thư viện tham khảo hoặc sử dụng [tìm kiếm nâng cao](/latex/vi/co-so-tri-thuc/076-how-to-search-for-references-in-an-overleaf-project.md) để tìm và nhập từng tài liệu tham khảo riêng lẻ.

## Tạo cơ sở dữ liệu thư mục tài liệu tham khảo của bạn

Để tạo một tệp thư mục tài liệu tham khảo mới trong dự án Overleaf của bạn, trong trình soạn thảo, hãy nhấp vào **Tệp mới** biểu tượng:

![Biblio1OLV2.png](/files/ef0bbd7a0a17cc3ffa087446ef5d25477b45e386)

Một hộp nhập sẽ xuất hiện để bạn đặt tên cho tệp mới. Tệp nên có `.bib` phần mở rộng, trong ví dụ này nó được gọi là `mybibliography.bib`. Bây giờ hãy nhấp vào **Tạo**.

![Biblio2OLV2.png](/files/fffebdea80bae719a4f03a826d4d126d72b83dfa)

Một tệp mới sẽ xuất hiện trong bảng bên trái, hãy nhấp vào đó để chỉnh sửa nội dung. Thêm các mục tài liệu tham khảo của bạn ở đó. ![Biblio3OLV2.png](/files/ce15744cd4b1b3a1c4f4dc6335f6e2973268c6c6)

Bây giờ bạn có thể nhập `.bib` tệp này vào `.tex` tệp chính. Xem ví dụ tiếp theo.

```latex
\documentclass{article}

\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}

\addbibresource{mybibliography.bib}

\title{Quản lý thư mục tài liệu tham khảo: gói \texttt{biblatex}}
\author{Share\LaTeX}
\date{ }

\begin{document}

\maketitle

\section{Mục đầu tiên}

Dùng \texttt{biblatex}, bạn có thể hiển thị thư mục tài liệu tham khảo được chia thành các phần,
tùy theo loại trích dẫn.
Hãy trích dẫn! Bài báo tạp chí của Einstein \cite{einstein} và bài
sách của Dirac \cite{dirac} là các mục liên quan đến vật lý.
Tiếp theo, cuốn sách \textit{The \LaTeX\ Companion} \cite{latexcompanion},
trang web của Donald Knuth \cite{knuthwebsite}, \textit{The Comprehensive
Tex Archive Network} (CTAN) \cite{ctan} là các mục liên quan đến \LaTeX\; nhưng
còn các mục khác của Donald Knuth \cite{knuth-fa,knuth-acp} thì dành riêng
cho lập trình.

\medskip

\printbibliography
\end{document}
```

![Biblio4OLV2.png](/files/480e5f9eea912f79331b8034110a8af7823db26d)

![Biblio5OLV2.png](/files/09597379462d55e50ba55145c73b4d79b14b3969)

Lệnh `\addbibresource{mybibliography.bib}` thêm tệp thư mục tài liệu tham khảo đã tạo vào tài liệu để bạn có thể sử dụng các tài liệu tham khảo đó. Xem [Quản lý thư mục tài liệu tham khảo trong LaTeX](/latex/vi/chu-de-khac/05-bibliography-management-in-latex.md) để biết thêm thông tin về quản lý thư mục tài liệu tham khảo.

## Tải lên cơ sở dữ liệu thư mục tài liệu tham khảo của bạn

Nếu bạn đã có một tệp thư mục tài liệu tham khảo cần dùng trong một dự án Overleaf, bạn có thể tải nó lên. Nhấp vào **Tải lên** biểu tượng ở phía trên bảng bên trái.

![Biblio6OLV2.png](/files/06c98a7d85d8e1144363b0c72ca60673fe75e4aa)

Một hộp thoại sẽ xuất hiện, bạn có thể kéo và thả `.bib` các tệp, hoặc chọn **chọn từ máy tính của bạn** để tải tệp lên từ thiết bị của bạn.

![Biblio7OLV2.png](/files/9d421933b3bc3d9c0bfd5992570d9b14df419f06)

Khi quá trình tải lên hoàn tất, bạn có thể chèn `.bib` tệp vào tài liệu chính `.tex` tài liệu.

## Sử dụng một mẫu

Tính năng [Thư viện Overleaf](https://www.overleaf.com/gallery) cung cấp một bộ sưu tập lớn các mẫu, bao gồm một số [liên quan đến thư mục tài liệu tham khảo](https://www.overleaf.com/gallery?addsearch=Bibliographies) mẫu:

![Biblio8OLV2.png](/files/30dd690d9dbc810dcc9c99f09514eac3c32cb98a)

Ví dụ, khi tìm kiếm trong Gallery sẽ liệt kê mục [Nhiều thư mục tài liệu tham khảo với bibunits](https://www.overleaf.com/latex/examples/multiple-bibliographies-with-bibunits/ktgbztpwjnpb) trong đó minh họa cách tạo nhiều thư mục tài liệu tham khảo/danh sách tài liệu tham khảo trong cùng một tài liệu:

![Biblio9OLV2.png](/files/423d103750bf6453639758d17cd5559fe260806c)

Nếu bạn chọn "Open as Template", Overleaf sẽ tạo một dự án mới mà bạn có thể chỉnh sửa và dùng làm nền tảng cho công việc của mình:

![Biblio10OLV2.png](/files/01b2819ead6fc2c1b308cc07dbb080ed850f1a80)

## Các gói quản lý thư mục tài liệu tham khảo được hỗ trợ

Để biết thêm thông tin về quản lý thư mục tài liệu tham khảo trong LaTeX, xem.

* [Quản lý thư mục tài liệu tham khảo trong LaTeX (sử dụng biblatex)](/latex/vi/chu-de-khac/05-bibliography-management-in-latex.md)
* [Quản lý thư mục tham khảo với natbib](/latex/vi/tai-lieu-tham-khao-va-trich-dan/02-bibliography-management-with-natbib.md)
* [Quản lý danh mục tài liệu tham khảo với bibtex](/latex/vi/tai-lieu-tham-khao-va-trich-dan/01-bibliography-management-with-bibtex.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/vi/co-so-tri-thuc/145-using-bibliographies-on-overleaf.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.
