Skip to content

Find and Replace

Find and Replace lets you search for text or math expressions in your document and optionally replace them.

Press Ctrl+F (or ⌘+F on Mac) to open the Find bar in the top-right corner of the editor.

Find bar with text search

Type your search term and matches are highlighted in the document. The counter (e.g., “1 of 1”) shows the current match and total number of matches. Use the < and > arrows to navigate between matches.

Click the expand arrow (˅) on the left side of the Find bar to reveal the Replace field:

Find and Replace expanded

  • Replace — replace the current match with the replacement text
  • Replace All — replace all matches at once

The Find bar has two toggle buttons that control what you search for:

ButtonModeDescription
AText modeSearch for plain text in the document (default)
fxMath modeSearch for math expressions using LaTeX notation

Click the fx button to switch to math mode. You can type a math expression and it will be rendered in the search field. Matches are found in math containers and inline math throughout the document:

Math search mode

ShortcutAction
⌘+F / Ctrl+FOpen Find
⌘+H / Ctrl+HOpen Find and Replace
EnterFind next match
Shift+EnterFind previous match
EscapeClose Find bar