I'm trying to generate the infinity symbol in the PDF output. But every time I type this:


I get the following message

    ! Missing $ inserted.
<inserted text> 
    l.35 \infty

What is the best way to fix this?

  • 1
    You need to be in math-modus, i.e. use $\infinity$ in text or \[\infinity\] else.
    – MS-SPO
    Sep 29, 2021 at 13:04
  • You could create a \textinfity, just like \textbullet or \textsuperscript. Sep 29, 2021 at 15:31

1 Answer 1


You have to use this command in math mode, so simply use $\infty$ instead.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .