How to jump from a selection in your LaTeX source to the matching spot in the compiled PDF, and from a double-click in the PDF back to the source line.
Jumping Between Source and PDF (SyncTeX)
Every compile in Coauthor runs with SyncTeX enabled, which records where each piece of source ended up on the page. The editor uses that data in both directions: from source to PDF and from PDF to source. Both directions need a successful compile of the current project; if there is no PDF yet, you will see the message Compile the document before jumping to the PDF location.
Source to PDF
- Open your
.texfile in the LaTeX or LaTeX+PDF view. - Select some text on the line you want to find in the PDF, then right-click it (or press Enter) to open the context menu.
- Click Go to PDF.
Coauthor switches the tab to LaTeX+PDF if it was not already split, scrolls the PDF to the matching page, and draws a short highlight over the location. The lookup uses the file name of the document you are editing plus the line and column of the start of your selection, so it works from section files in the project folder as well as from the main file. Files in a subfolder are sent by bare file name, so the lookup may fail for them.
If SyncTeX cannot map the line (for example a line inside the preamble, or a line that produces no visible output), the PDF pane shows No matching PDF location found for the selected source. for a few seconds.
PDF to Source
- Open the compiled PDF in the PDF or LaTeX+PDF view.
- Double-click the word or line you want to edit.
Coauthor switches to LaTeX+PDF, moves the cursor to the corresponding line in the source editor, scrolls it to the top of the editor, and flashes the line briefly.
Notes:
- The jump lands in the file that is currently open in the editor. If the clicked text comes from a different file (for example
sections/results.texwhilemain.texis open), open that file first and double-click again. - Single clicks and drags in the PDF are used for scrolling and text selection; only a double-click triggers the lookup.
- If the click hits whitespace or a graphic with no source mapping, the pane shows No matching source location found for that PDF position.
When Sync Is Out of Date
SyncTeX data belongs to a specific compilation. If you have edited the source since the last successful compile, positions may be off by a few lines because the PDF still reflects the older source. Compile again (Ctrl+S) and retry. The same applies when the PDF pane shows the Showing last successful PDF banner; see Compiling and PDF Preview.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Compile the document before jumping to the PDF location. | No successful compile exists for this project | Click Compile and wait for Success! |
| Go to PDF button is missing | Nothing is selected, or the file is not a LaTeX document | Select at least one character of text |
| Jump goes to the wrong line | Source changed since the last compile, or a different file is open | Recompile; open the file that contains the clicked text |
| Nothing happens on double-click | The PDF view is still loading, or the double-click was on the toolbar | Wait for the page to render and double-click inside the page |
For a description of the shortcuts involved, see Keyboard Shortcuts.
Related articles
Prefer to ask?
Inside Coauthor, ask the AI coauthor how any feature works — it answers from these same help articles. For anything else, use the ? button in the top-right corner of the app.