> 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/ja/narejjibsu/147-using-the-file-outline-in-overleaf.md).

# Overleafのファイルアウトラインを使う

あなたの論理構造を表示できます `.tex` ファイルは、File Outline 機能を使って表示できます。この機能は、標準的な LaTeX のセクション区切り要素のほとんどをサイドバーに表示し、開いている `.tex` ファイル内でのすばやい移動を可能にします。File Outline は、左ペインの下部に表示され、そこにはファイルツリーも含まれます。

![File Outline の概要](/files/480c378b7afa48d67500636fdc6b2620346c9ded)

この機能は、プロジェクト全体ではなく、エディタで開いているファイルのアウトラインを表示します。複数ファイルのプロジェクトの場合、エディタで別のファイルを開くと新しいアウトラインが表示されます。

関連して、ファイルアウトラインは現在、\input、\include、または \import コマンドで含まれたセクション見出しを表示しない点にご注意ください。これに対する回避策の一つは、これらのコマンドを [対応する見出しコマンド](#supported-heading-commands)の後に使うことです。たとえば、次のようにすると:

`\chapter{Chapter One}`

`\include{chapter1.tex}`

を使う代わりに、ファイルアウトラインに「Chapter One」と表示されます。 `\include{chapter1.tex}`は、ファイルアウトラインには表示されません。

## ファイルアウトラインの展開と折りたたみ

ファイルアウトラインの左側にある矢印を使って、ツリーを展開または折りたたみます。また、ハンドルを上下にクリックしてドラッグすることで、ファイルアウトラインのサイズを変更することもできます。

![ファイルアウトラインの展開と折りたたみ](/files/788612099cf3034737fccbf9753f2ce03d46e759)

## ファイルアウトラインを使ってファイル内を移動する

長い `.tex` ファイルでは、ファイル内の別のセクション見出しへすばやく移動したくなることがあります。File Outline 機能を使えばそれができます。移動したい見出しをクリックすると、カーソルが編集ペインのその見出しへ移動します。選択した見出しは、ファイルを編集している間の参照用としてファイルアウトライン一覧で強調表示されます。

## サポートされている見出しコマンド

File Outline 機能は、標準の [LaTeX のセクション見出しコマンド](/latex/ja/wen-shu-gou-zao/01-sections-and-chapters.md#document-sectioning):

* `\book` (memoir ドキュメントクラスのもの)
* `\part` (book および report ドキュメントクラス用)
* `\\chapter` (book および report ドキュメントクラス用)
* `\section`
* `\subsection`
* `\subsubsection`
* `\paragraph`
* `\subparagraph`

番号なし見出し用の、これらのコマンドの星付きバリアントもサポートされています。

すべての `.tex` ファイルがすべての見出しレベルを使用するわけではありません。ファイルにこれらのレベルがすべて含まれていなくても問題ありません。ファイルアウトライン領域には、ファイル内で検出した見出しレベルに応じて、ファイルの構造が表示されます。

File Outline 機能は完全な LaTeX エンジンを実行するわけではないため、セクション見出し内のすべての LaTeX コマンドがサポートされるわけではありません。特に、カスタムマクロの展開や数式モードの内容は File Outline 一覧には描画されません。複数の `\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/ja/narejjibsu/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.
