I'm here because I'm writing a thesis in LaTeX using overleaf and I'm having some troubles with the math inline style, which is not working. This is what I'm writing:
$p_{nj}^2=\sum\limits_{i\in j}{\left|c_{in}\right|^2}$
and this is what I'm getting:
I know that using the inline math with $...$
the sum should have the limits on its right rather than right over and below it. How could I obtain this effect?