0

I was using \~ to place a "tilde" accent on letters. But when I try to use it while in (inline or displaystyle) math mode, it looks like this:

enter image description here

enter image description here

Mico
  • 506,678
  • 5
    \~ is a text accent, use \tilde – David Carlisle Jan 27 '22 at 11:37
  • Okay, it worked. – Dragnovith Jan 27 '22 at 11:39
  • 1
    if asking about an error message (`LaTeX Warning: Command ~ invalid in math mode on input line 5.

    ! Please use \mathaccent for accents in math mode.` please always show the full error from the log. Don't show any pdf generated if you scroll past the error, the PDF is never intended to be usable after an error.

    – David Carlisle Jan 27 '22 at 11:46

0 Answers0