> 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-tw/zhi-shi-ku/147-using-the-file-outline-in-overleaf.md).

# 在 Overleaf 中使用檔案大綱

您可以檢視您的 `.tex` 檔案的邏輯結構，方法是使用我們的檔案大綱功能。這會在側邊欄中顯示大多數標準的 LaTeX 節標元素，讓您能快速導覽目前開啟的 `.tex` 檔案。檔案大綱顯示於左側窗格底部，而該窗格同時也包含檔案樹。

![檔案大綱概覽](/files/062b4d44cf33c0f52d7fbb54eed408835cf14a59)

這項功能會顯示您在編輯器中開啟的檔案大綱，而不是整個專案。如果您有多檔案專案，當您在編輯器中開啟不同檔案時，會顯示新的大綱。

相關地，請注意檔案大綱目前不會顯示透過 \input、\include 或 \import 指令包含的章節標題。這個問題的一個變通方法是在這些指令後面接上一個 [支援的標題命令](#supported-heading-commands)。例如，使用：

`\chapter{Chapter One}`

`\include{chapter1.tex}`

會在檔案大綱中顯示「Chapter One」，而不是只使用 `\include{chapter1.tex}`，因為它不會顯示在檔案大綱中。

## 展開與收合檔案大綱

使用檔案大綱左側的箭頭來展開或收合樹狀結構。您也可以點擊並向上或向下拖曳控制點來調整檔案大綱大小。

![展開與收合檔案大綱](/files/1bc1310b176274edee0b8610e4239e5c6983c937)

## 使用檔案大綱在您的檔案中導覽

對於較長的 `.tex` 檔案，您可能會想快速跳到檔案中的其他章節標題。檔案大綱功能可讓您這麼做。點擊您想跳轉至的標題，游標就會移動到編輯窗格中的該標題。所選取的標題會在檔案大綱清單中醒目顯示，以便您在編輯檔案時參考。

## 支援的標題命令

檔案大綱功能支援標準的 [LaTeX 節標題命令](/latex/zh-tw/wen-jian-jie-gou/01-sections-and-chapters.md#document-sectioning):

* `\book` （來自 memoir 文件類別）
* `\part` （用於 book 與 report 文件類別）
* `\chapter` （用於 book 與 report 文件類別）
* `\section`
* `\subsection`
* `\subsubsection`
* `\paragraph`
* `\subparagraph`

這些命令的加星號變體也支援無編號標題。

並非所有 `.tex` 檔案都會使用每個標題層級。如果您的檔案沒有包含所有這些層級，也沒問題。檔案大綱區域會根據我們在檔案中偵測到的標題層級，顯示您檔案的結構。

檔案大綱功能不會執行完整的 LaTeX 引擎，因此並非所有位於章節標題中的 LaTeX 命令都受支援。特別是，自訂巨集與數學模式內容的展開不會在檔案大綱清單中呈現。其他非標準用法，例如在一個節標命令後方有多個 `\label`s 接在節標命令之後，或跨越多個原始碼行的節標命令，在所有情況下也都不會被檔案大綱偵測到。


---

# 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-tw/zhi-shi-ku/147-using-the-file-outline-in-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.
