I have a mathematical equation
$$
K = \sum_{i \in \mathcal{V}} \left\lvert i^p - \mathbbm{1}_{\{i \in \mathcal{J}\}} \cdot k^p \right\rvert
$$
that when compiled, looks like:
Is there a way I could lengthen the absolute value verticals and to somehow not make the p power exponentials crunch the i and the k, as well as a better indicator function. Any suggestions what I could do will be greatly appreciated. Thanks!
Best Answer
$$
for switch to math mode is not LaTeX command, instead it use\[
...\]
or\begin{equation*}
...\end{equation*}
mathtools
package (see MWE below)