# Editor & PDF layout and sizing

## Layout options

The following image shows the Layout options menu with a checkmark next to the currently active option; here, it is the default setting of **Split view**:

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FAIhxIM5rI8sMAhVI3kRT%2FLayoutOptions-Dark-NewEditor.png?alt=media&#x26;token=cc8a77ab-656d-4600-b5c1-c6ea3e82ebbb" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FSQPJPpOYNJsa5NXZhQlH%2FLayoutOptions-Light-NewEditor.png?alt=media&#x26;token=1286f54e-ed62-4896-a51b-4fa6264f1982" alt="Image of Layout options menu in the top-right corner of the editor" width="188"></picture><figcaption></figcaption></figure>

The remainder of this article demonstrates each of the four options and the functionality they provide.

### Split View (the default)

This default option uses a single browser tab to display the LaTeX editor and PDF preview. This arrangement works well if you have a large display screen with sufficient space to organize your work. If you are using a laptop connected to a large external screen, the [#open-pdf-in-a-separate-tab](#open-pdf-in-a-separate-tab "mention") option, displaying the LaTeX editor and PDF preview in separate browser tabs, can be a more convenient configuration.<br>

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FX6gpLrjVebwBBfKqQMuC%2FLayoutOptionsDark-NewEditor.png?alt=media&#x26;token=174d80c8-8923-4078-9730-d158790ab18e" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FPSS7pUr6d77Seao7bUyN%2FLayoutDefault-Light-NewEditor.png?alt=media&#x26;token=e2aecfb9-2cd0-4eb2-ac1a-88c3a104a783" alt="Image of the default layout of the editor of the editor and PDF preview in the same browser tab"></picture><figcaption><p>Layout default</p></figcaption></figure>

### Editor only and PDF only

If you wish to temporarily hide the PDF preview or LaTeX text editor, you can use the layout modes of Editor only or PDF only and easily switch between them as required.

Besides the [#layout-options](#layout-options "mention") menu, there are other ways to switch between the **Split view**, **Editor only**, and **PDF only** modes, depending on your current mode.

#### Small arrow

<table data-header-hidden><thead><tr><th width="484.4609375"></th><th></th></tr></thead><tbody><tr><td>In <strong>Split view</strong>, you can hide the PDF (switch to <strong>Editor only</strong>) using the small arrow to the right of the source code.</td><td><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FQrpbBrjQRR2oZTfWdJ05%2FHideThePDF-Dark-NewEditor.png?alt=media&#x26;token=28ffd12a-7723-4f5a-9f36-b9d1e61b720f" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FVmtkZiXv7YLwPWTU3fbh%2FHideThePDF-Light-NewEditor.png?alt=media&#x26;token=45ee784e-f26f-4e6e-9904-0ac0cc7916a5" alt="Image of the &#x22;Click to hide the PDF&#x22; button"></picture></td></tr><tr><td>In <strong>Editor only</strong>, you can show the PDF (switch to <strong>Split view</strong>) using the same small arrow:</td><td><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2F8BPgFuzukrfdnXb1B6Qu%2FShowThePDF-Dark-NewEditor.png?alt=media&#x26;token=b08932bd-8279-4282-8beb-ee8aaab4f6de" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FGGs2TGGpgbmmL4Cv4R7Y%2FShowThePDF-Light-NewEditor.png?alt=media&#x26;token=60df4bd7-d560-4f6a-ad9b-71696200595c" alt="Image of the &#x22;Click to show the PDF&#x22; button"></picture></td></tr></tbody></table>

#### Switch modes button

<table data-header-hidden><thead><tr><th width="479.73828125"></th><th></th></tr></thead><tbody><tr><td>In <strong>PDF only</strong>, you can switch to <strong>Editor only</strong> using the button in the top-right corner of your screen.</td><td><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FJFzpsn3GutFINoFEJOI2%2FSwitchToEditor-Dark-NewEditor.png?alt=media&#x26;token=2dfee6b2-8478-4890-85d1-f277f9ce69c5" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2Fq9ICM3e5qq2QzcaTvn9Y%2FSwitchToEditor-Light-NewEditor.png?alt=media&#x26;token=5ea1964c-6bac-4cee-99c4-d16a9589fd36" alt="Image of the &#x22;Switch to editor&#x22; button"></picture></td></tr><tr><td>In <strong>Editor only</strong>, you can switch to <strong>PDF only</strong> using the button in the top-right corner of your screen.</td><td><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FiX2DalUQXbonVvCRQ4mM%2FSwitchToPDF-Dark-NewEditor.png?alt=media&#x26;token=7bfab64e-db8a-4fbe-b7dc-12224bed1554" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FP8vbHgXQH4FaWCe4Diy6%2FSwitchToPDF-Light-NewEditor.png?alt=media&#x26;token=d1903990-cd8e-4206-8e86-ed2b121d1cc1" alt="Image of the &#x22;Switch to PDF&#x22; button"></picture></td></tr></tbody></table>

### "Open PDF in a separate tab"

This layout option uses separate browser tabs for the Overleaf text editor and PDF preview, making it possible to work with Overleaf on two screens; for example, viewing the PDF preview on a laptop screen with the LaTeX editor displayed on a second, much larger, external screen—providing a convenient way to edit the LaTeX text.

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FvQj7qy3uM1N0EaDbXEqO%2FPDFSeparateTab-Dark-NewEditor.jpg?alt=media&#x26;token=b67cfe5d-4d7f-475a-a497-063db3e21d58" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FnZnBdPMAguuc0QiPsCcn%2FPDFSeparateTab-Light-NewEditor.jpg?alt=media&#x26;token=a59b9d4d-43eb-466e-a991-503f9ac48556" alt="Image of PDF in different tab and the &#x22;Open PDF in separate tab&#x22; layout option selected" width="375"></picture><figcaption></figcaption></figure>

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FtfRn4zG57S1a7XzGjpp3%2FPDFNewTab-Dark-NewEditor.jpg?alt=media&#x26;token=783614e7-930a-44c5-9d7d-81135f98f734" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2F6vvfIwwlG9aQzhIe81tJ%2FPDFTab-Light-NewEditor.jpg?alt=media&#x26;token=9a225ec3-0e1b-4acd-b4b8-fad90b1eb4bf" alt="Image of PDF in the selected tab with the Recompile button still visible" width="375"></picture><figcaption></figcaption></figure>

{% hint style="success" %}
Tip: Having the PDF preview displayed on a separate screen can be useful during video presentations, enabling attendees to focus on the PDF without becoming distracted by the source code, which is on another (unshared) screen.
{% endhint %}

#### Jumping to the code or PDF location in separate tabs

Even with the PDF preview and code editor in separate tabs, perhaps on separate screens, you can still use the “Show in Code” location or “Show in PDF” location features (provided by [SyncTeX](https://learn.overleaf.com/learn/MLTeX_EncTeX_and_SyncTeX_TeX_extensions)).

#### To jump to PDF location:

1. In the code editor tab, select "Show in PDF".

   <figure><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2Fx3u01M6IIIW6g2BqOQGf%2FEditorScrollToPDF-Light-NewEditor.jpg?alt=media&#x26;token=5e05f985-97b9-40c1-bd14-317739ada181" alt="" width="375"><figcaption></figcaption></figure>

2. Navigate to your PDF tab to see the content scroll to the corresponding location.

   <figure><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FpgiAou9EVALk7gzy2acv%2FPDFScrollToPDF-NewEditor.gif?alt=media&#x26;token=288f2ea9-5ff7-4528-9cd9-161d0df82ab4" alt="GIF of PDF scrolling to code location" width="375"><figcaption></figcaption></figure>

#### **To jump to code location:**

1. In the PDF tab, either select "Show in code" or double-click the content.

   <figure><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2F2bLL8JMJrk9nzBWtgMfa%2FPDFShowinCodeButton-NewEditor.jpg?alt=media&#x26;token=1ba96eb6-f040-4f49-93f6-a2de01700643" alt="Image of Show in Code button in PDF" width="375"><figcaption></figcaption></figure>

2. Navigate to your code editor tab to see the content scroll to the corresponding location.

   <figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FIVDn43q6FCe4ofziMJ5Z%2FShowinCodeButton-Dark-NewEditor.gif?alt=media&#x26;token=b07eee7d-f642-4fc0-90c3-1573323c68bf" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2F3YApcQQ9fvrVMomaTELN%2FShowinCodeButton-Light-NewEditor.gif?alt=media&#x26;token=be3ea6d1-ea94-492c-9862-83f07adf1f05" alt="" width="375"></picture><figcaption></figcaption></figure>

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Note that the location is more accurate by double-clicking instead of selecting the "Show in code" button. In this example, double-clicking correctly highlights the chapter title "Background" in the LaTeX code, versus the subsequent content.</p><p align="center"> <picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FfqEKWAHZhFDz7Ttu3R3I%2FShowinCodeDoubleClick-Dark-NewEditor.gif?alt=media&#x26;token=8aaf83e5-4043-4ca6-bc50-30fec10bab80" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2F7RpK1vCGnOXDJwdSlvNd%2FShowinCodeDoubleClick-Light-NewEditor.gif?alt=media&#x26;token=a7f5bd04-2bfc-4b53-a414-3694100f9811" alt="GIF of scroll to code location from double-clicking" data-size="original"></picture></p></div>

## Resizing&#x20;

To hide the file list or preview panes altogether, click on the thin panels at the side of the vertical divider bars. You can restore the file list and preview panels by clicking on the respective arrow buttons again.

<figure><picture><source srcset="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FQY1LaZa2T25IOSj5vHIm%2FResizing-Dark-NewEditor.gif?alt=media&#x26;token=0397f99a-f764-44c2-a043-7b7802182221" media="(prefers-color-scheme: dark)"><img src="https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FuQStmeQFfba1YvXfbpLv%2FResizing-Light-NewEditor.gif?alt=media&#x26;token=99a85a82-328e-4ced-90b1-94b0884c726f" alt="GIF of resizing options"></picture><figcaption><p>Resizing, hiding and restoring the file list, source code and preview panels</p></figcaption></figure>
