# Selecting and managing files

You can view the logical structure of your `.tex` file using our File Outline feature. This displays most standard LaTeX sectioning elements in a sidebar to allow quick navigation within the open `.tex` file. The File Outline is displayed at the bottom of the left pane, which also contains the file tree.

![File Outline overview](/files/O3VDGYT7P05e8XEqS25h)

This feature displays the outline for the file you have open in the editor, not your entire project. If you have a multi-file project, a new outline will be displayed when you open a different file in the editor.

Related to this, please note that the file outline does not currently display section headings included via \input, \include or \import commands. One workaround for this is to use these commands after a [supported heading command](#supported-heading-commands). For example, using:

`\chapter{Chapter One}`

`\include{chapter1.tex}`

will display "Chapter One" in the file outline, instead of just using `\include{chapter1.tex}`, which is not displayed in the file outline.

## Expanding and collapsing the file outline

Use the arrow to the left of the file outline to expand or collapse the tree. You can also resize the file outline by clicking and dragging the handle up or down.

![Expanding and collapsing the file outline](https://www.filepicker.io/api/file/l9pyxwa7QrKFFddfLfar)

## Navigating within your files using the file outline

With longer `.tex` files, you may want to quickly jump to another section heading within the file. The File Outline feature allows you to do this. Click on the heading you'd like to jump to, and the cursor will move to that heading in the editing pane. The selected heading will be highlighted in the file outline list for reference as you're editing the file.

## Supported heading commands

The File Outline feature supports the standard [LaTeX section heading commands](https://www.overleaf.com/learn/latex/Sections_and_chapters#Document_sectioning):

* `\book` (from the memoir document class)
* `\part` (for book and report document classes)
* `\chapter` (for book and report document classes)
* `\section`
* `\subsection`
* `\subsubsection`
* `\paragraph`
* `\subparagraph`

Starred variants of these commands for unnumbered headings are also supported.

Not all `.tex` files will use every heading level. If your file doesn't contain all these levels, that's no problem. The file outline area will display your file's structure according to the heading levels that we detect within the file.

The File Outline feature does not run a full LaTeX engine, so not all LaTeX commands within section headings are supported. In particular, the expansion of custom macros and math mode content will not be rendered in the File Outline list. Other non-standard usages, like multiple `\label`s following a sectioning command, or sectioning commands broken across multiple source lines, also will not be detected by the file outline in all situations.


---

# Agent Instructions: 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:

```
GET https://docs.overleaf.com/navigating-in-the-editor/selecting-and-managing-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
