brain-circuitError Assist

Error Assist explains LaTeX errors and suggests fixes directly in the editor. When a compile error occurs, you can ask Error Assist for an explanation and, in most cases, a suggested fix.

Using Error Assist

When your document has a LaTeX error, an error marker appears in the editor margin. You can also find errors in the Logs and output files panel.

Fix errors in order from the top of your document—earlier errors can affect how later ones appear.

To get a fix from Error Assist:

  1. Select the error marker in the editor margin, or open Logs and output files.

    Image showing the Overleaf AI error assistant suggesting fixes for errors.
  2. Select Suggest fix. Error Assist explains the error and shows a suggested fix—the affected lines appear in red, with the suggested change in green.

  3. Review the suggestion. If it doesn't look right, select the refresh icon to generate a new one.

  4. Select Apply suggestion to apply the fix. Your document recompiles automatically.

You can rate the quality of a response using the thumbs up / thumbs down buttons.

AI allowance

Each "Suggest fix" invocation counts as one use from your shared daily AI allowance. When the allowance is used up, a notification appears in the error panel showing when it resets and the option to upgrade.

Data and privacy

Error Assist is powered by OpenAI. The following is sent when you request a fix:

  • The full error message

  • Relevant lines of code from your project

  • A list of file names in your project

Nothing is sent until you select Suggest fix. Your data is never used to train AI models.

Troubleshooting

Why can't I see "Suggest fix" for some errors? Error Assist needs the full error message from the logs to generate a fix. It doesn't appear for code-check errors that show as you type.

The suggested fix didn't work. AI can misinterpret custom or specialised LaTeX. Always review a suggestion before applying it. If the fix isn't right, use the refresh icon to try again, or see [fixing LaTeX errors] for more help.

Can I undo an applied fix? Yes—use Undo in the toolbar or Ctrl/Cmd+Z.

More help with LaTeX errors

Last updated

Was this helpful?