> 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/tu-biao-he-biao-ge/03-lists-of-tables-and-figures.md).

# 表格和图形列表

## 简介

表格和图形的列表可以使信息保持有序，并便于快速访问某个特定元素。本文介绍如何创建图形列表、表格列表，以及如何更改它们默认标题。

让我们从一个基本示例开始：

```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/55ea81e6366d53cab2a567e676e2e1d3077ef036)

&#x20;[在 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=)

这些命令 `\listoffigures` 和 `\listoftables` 不言自明，第一个生成图形列表，第二个生成表格列表。在这个示例中，还有另外两个相关命令：

**\thispagestyle{empty}**

移除页码。

**\pagenumbering{arabic}**

使用阿拉伯数字重新开始页码编号。

## 更改名称

如下面的示例所示，默认标题“List of Tables”和“List of Figures”可以改为其他任意文本：

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

\renewcommand{\listfigurename}{图表列表}
\renewcommand{\listtablename}{表格}

\begin{document}

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

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

![Listoffiguresandtables.png](/files/e65da74f8f06700c7131afd518154a1b28ebfd14)

&#x20;[在 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=)

重写标题的命令是：

* `\renewcommand{\listfigurename}{图表列表}` 会将“List of Figures”写成“List of plots”。
* `\renewcommand{\listtablename}{表格}` 会将“List of Tables”写成“Tables”。

如果你在文档中使用 `babel` 包，并且需要使用前面的任何命令，请把它放在 `\addto\captionsenglish{ }`的大括号中。不要在 `english` 中的 `\captionenglish` 里写 english，而应写你在 babel 中设置的语言名称。

**注意**：你的文档可能需要编译两次，列表才能正确生成。

## 延伸阅读

更多信息请参见：

* [插入图片](/latex/zh-cn/geng-duo-zhu-ti/27-inserting-images.md)
* [表格](/latex/zh-cn/tu-biao-he-biao-ge/01-tables.md)
* [图片和表格的位置](/latex/zh-cn/tu-biao-he-biao-ge/02-positioning-images-and-tables.md)
* [章节和小节](/latex/zh-cn/wen-dang-jie-gou/01-sections-and-chapters.md)
* [目录](/latex/zh-cn/wen-dang-jie-gou/02-table-of-contents.md)
* [索引](/latex/zh-cn/wen-dang-jie-gou/04-indices.md)
* [术语表](/latex/zh-cn/wen-dang-jie-gou/05-glossaries.md)
* [页码编号](/latex/zh-cn/ge-shi-hua/03-page-numbering.md)
* [大型项目中的管理](/latex/zh-cn/wen-dang-jie-gou/07-management-in-a-large-project.md)
* [多文件 LaTeX 项目](/latex/zh-cn/wen-dang-jie-gou/08-multi-file-latex-projects.md)
* [计数器](/latex/zh-cn/ge-shi-hua/10-counters.md)
* [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/zh-cn/tu-biao-he-biao-ge/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.
