> 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/hinh-va-bang/03-lists-of-tables-and-figures.md).

# Danh mục bảng và hình

## Giới thiệu

Một danh sách các bảng và hình ảnh giúp giữ thông tin được sắp xếp và cung cấp khả năng truy cập dễ dàng đến một mục cụ thể. Bài viết này giải thích cách tạo danh sách hình, danh sách bảng và cách thay đổi tiêu đề mặc định trong cả hai danh sách.

Hãy bắt đầu với một ví dụ cơ bản:

```latex
\documentclass{article}
\usepackage{graphicx}
\graphicspath{ {figures/} }
\usepackage{array}

\begin{document}

\thispagestyle{empty}
\listoffigures
\listoftables
\newpage
\pagenumbering{arabic}

Lorem ipsum dolor sit amet, consectetuer adipiscing
elit.  Etiam lobortisfacilisis...
\end{document}
```

![ListOfTablesAndFiguresEx1OLV2.png](/files/af19eca098f72d053d5265c93ffc7fc7bfcd41a6)

&#x20;[Mở một ví dụ trên Overleaf](https://www.overleaf.com/project/new/template/20148?id=68603601\&templateName=Lists+of+tables+and+figures\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=)

Các lệnh `\listoffigures` và `\listoftables` rất dễ hiểu, lệnh đầu tiên tạo danh sách hình và lệnh thứ hai tạo danh sách bảng. Trong ví dụ này còn có hai lệnh liên quan khác:

**\thispagestyle{empty}**

Xóa đánh số trang.

**\pagenumbering{arabic}**

Bắt đầu lại việc đánh số trang bằng chữ số kiểu Ả Rập.

## Thay đổi tên

Như được thể hiện trong ví dụ sau, các tiêu đề mặc định, "List of Tables" và "List of Figures", có thể được thay đổi thành bất kỳ văn bản nào khác:

```latex
\documentclass{article}
\usepackage{graphicx}
\usepackage{array}
\graphicspath{ {figures/} }

\renewcommand{\listfigurename}{List of plots}
\renewcommand{\listtablename}{Tables}

\begin{document}

\thispagestyle{empty}
\listoffigures
\listoftables
\clearpage
\pagenumbering{arabic}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Etiam lobortisfacilisis...
\end{document}
```

![Listoffiguresandtables.png](/files/3e711d1dc3facdb11b9fc1956fded3531e0da00c)

&#x20;[Mở một ví dụ trên Overleaf](https://www.overleaf.com/project/new/template/20148?id=68603601\&templateName=Lists+of+tables+and+figures\&latexEngine=pdflatex\&texImage=texlive-full%3A2020.1\&mainFile=)

Các lệnh viết lại tiêu đề là:

* `\renewcommand{\listfigurename}{List of plots}` sẽ viết "List of plots" thay vì "List of Figures".
* `\renewcommand{\listtablename}{Tables}` sẽ viết "Tables" thay vì "List of Tables".

Nếu bạn dùng gói `babel` trong tài liệu của mình và bạn cần dùng bất kỳ lệnh nào ở trên, hãy đặt nó bên trong dấu ngoặc nhọn của `\addto\captionsenglish{ }`. Thay vì `english` trong `\captionenglish` hãy viết tên ngôn ngữ bạn đã đặt trong babel.

**Lưu ý**: tài liệu của bạn có thể cần được biên dịch hai lần để các danh sách được tạo đúng cách.

## Đọc thêm

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

* [Chèn hình ảnh](/latex/vi/chu-de-khac/27-inserting-images.md)
* [Bảng](/latex/vi/hinh-va-bang/01-tables.md)
* [Định vị hình ảnh và bảng](/latex/vi/hinh-va-bang/02-positioning-images-and-tables.md)
* [Các phần và chương](/latex/vi/cau-truc-tai-lieu/01-sections-and-chapters.md)
* [Mục lục](/latex/vi/cau-truc-tai-lieu/02-table-of-contents.md)
* [Chỉ mục](/latex/vi/cau-truc-tai-lieu/04-indices.md)
* [Bảng thuật ngữ](/latex/vi/cau-truc-tai-lieu/05-glossaries.md)
* [Đánh số trang](/latex/vi/dinh-dang/03-page-numbering.md)
* [Quản lý trong một dự án lớn](/latex/vi/cau-truc-tai-lieu/07-management-in-a-large-project.md)
* [Các dự án LaTeX nhiều tệp](/latex/vi/cau-truc-tai-lieu/08-multi-file-latex-projects.md)
* [Bộ đếm](/latex/vi/dinh-dang/10-counters.md)
* [Phần giới thiệu không quá ngắn về LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)


---

# 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/hinh-va-bang/03-lists-of-tables-and-figures.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.
