> 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/zhi-shi-ku/083-how-to-use-the-overleaf-layout-menu.md).

# 如何使用 Overleaf 布局菜单

本文介绍 Overleaf 的 **布局** 菜单，它提供 4 个选项来配置您的 Overleaf 工作区。这些选项各自都可用于特定场景，例如制作演示或 [在两个独立屏幕上使用 Overleaf](#pdf-in-a-separate-tab).

## 引言

下图显示了 **布局** 菜单，当前激活的选项旁有一个勾号；这里是默认设置 **编辑器和 PDF**:

![LayoutMenuDefault2.png](/files/385352bac65a4b022dcb48bf88ac924cca08bca4)

本文其余部分将演示这 4 个选项及其提供的功能。

## 编辑器和 PDF（默认）

此默认选项使用一个浏览器标签页显示 LaTeX 编辑器和 PDF 预览。如果您有一块大尺寸显示屏且有足够空间来安排工作，这种布局效果很好。如果您正在使用连接到大型外接屏幕的笔记本电脑， [在单独标签页中显示 PDF](#pdf-in-a-separate-tab) 选项，将 LaTeX 编辑器和 PDF 预览分别显示在不同的浏览器标签页中，可能是一种更方便的配置。

![LayoutDefault.png](/files/2a95369fd55341c4502700119312e541ed9c45a6)

## 仅编辑器（隐藏 PDF）和仅 PDF（隐藏编辑器）

如果您希望暂时隐藏 PDF 预览或 LaTeX 文本编辑器，可以使用 **仅编辑器（隐藏 PDF）** 或 **仅 PDF（隐藏编辑器）** 并按需在它们之间轻松切换。下面的短视频演示了这些模式的使用以及相互切换。

* **提示**：当处于 **仅编辑器（隐藏 PDF）** 模式时，可使用源代码窗口右侧的小箭头将隐藏的 PDF 预览窗格完全重新打开：视频中对此进行了演示。

{% embed url="<https://videos.ctfassets.net/nrgyaltdicpt/35KlXfeBzFafDkfgliOb9i/5015010ee6ba43cdc244073fbab0c054/OtherModes.mp4>" %}

## 在单独标签页中显示 PDF

此布局选项为 Overleaf 文本编辑器和 PDF 预览分别使用不同的浏览器标签页，因此可以在两块屏幕上使用 Overleaf；例如，在笔记本屏幕上查看 PDF 预览，而将 LaTeX 编辑器显示在第二块大得多的外接屏幕上——这为编辑 LaTeX 文本提供了一种便捷方式。

* **注意**：两个标签页都有一个 **重新编译** 按钮。
* **提示**：在视频演示期间，将 PDF 预览显示在单独的屏幕上会很有用，这样与会者可以专注于 PDF，而不会被位于另一块（未共享）屏幕上的源代码分散注意力。

下面的短视频演示了 **在单独标签页中显示 PDF** 布局：

{% embed url="<https://videos.ctfassets.net/nrgyaltdicpt/4DRSQm6aUYac4aIhesJig2/378ba1486657901fc1633664b3e08772/PDFdetachtutorial10.mp4>" %}

### 在单独标签页中跳转到代码或 PDF 位置

即使 PDF 预览和代码编辑器位于不同的标签页中，甚至可能分布在不同的屏幕上，您仍然可以使用“跳转到代码”位置或“跳转到 PDF”位置功能（由 [SyncTeX](/latex/zh-cn/geng-duo-zhu-ti/39-mltex-enctex-and-synctex-tex-extensions.md)）提供，如下面这段短视频所示：

{% embed url="<https://videos.ctfassets.net/nrgyaltdicpt/1Mk8JX5yXOOMKN5pHQGVEJ/e0f6e431f0b5a2d8d341a29088f089bb/SyncTeX.mp4>" %}


---

# 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/zhi-shi-ku/083-how-to-use-the-overleaf-layout-menu.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.
