Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

15
  • The behavior you're experiencing is related to the auto-completion feature of your LaTeX editor. First, you should probably share which LaTeX editor you use (e.g., TeXstudio, TeXmaker, Overleaf, etc.) since each editor has its own way of handling auto-completion. Commented Jan 4, 2024 at 13:28
  • Can you add a short test document so we can recreate the situation? Commented Jan 4, 2024 at 13:28
  • 2
    @chadoulis The editor is in the title Commented Jan 4, 2024 at 13:29
  • I can't reproduce this when typing a simple test document like this in texstudio: \documentclass{article} \begin{document} \[ \sec^2x \] \end{document} Commented Jan 4, 2024 at 13:40
  • 1
    I guess that the option Complete selected text when non-word character is pressed could be the problem, since you are pressing the ^ key. Commented Jan 4, 2024 at 14:37