Here is the code I have:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\lambda=\frac{\operatornamewithlimits{\max}_{\theta \in \Omega_0}L(\theta)}{\operatornamewithlimits{\max}_{\theta \in \Omega}L(\theta)}
\end{equation*}
\end{document}
And this is what I get:
The subscript appears in the fraction after "max" instead of below "max". I've tried to put the expression with the subscript outside the fraction and the subscript appears bellow "max". Why does that happens? How can I get this: