Im trying to write L_{1} in a \textit{} function.
\textit{L_{1}}
But this just gives me
How can I make it (ignore the overline):
You need the math mode.
$\mathit{L_1}$
or
$L_1$