> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/zh-cn/tu-xing-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}{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/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 plots}` 将写入“List of plots”而不是“List of Figures”。
* `\renewcommand{\listtablename}{Tables}` 将写入“Tables”而不是“List of Tables”。

如果你在文档中使用 babel 包，并且需要使用前面的任何命令，请将其放在以下命令的花括号内： `babel` 包，并且需要使用前面的任何命令，请将其放在 `\addto\captionsenglish{ }`。不要在 `english` 中写 `\captionenglish` ，而要写入你在 babel 中设置的语言名称。

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

## 更多信息请参见：

Overleaf 画廊中的 Multibib 示例

* [插入图片](/latex/zh-cn/geng-duo-zhu-ti/27-inserting-images.md)
* [表格](/latex/zh-cn/tu-xing-he-biao-ge/01-tables.md)
* [图片和表格的定位](/latex/zh-cn/tu-xing-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://ayakaleaf-pro.ayaka.space/latex/zh-cn/tu-xing-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.
