I am trying to write the below formula in latex, but as you can see the subscript for sigma is not aligned with the one for mu. This is caused by the square in alpha. How can I align them?
UPDATE: the formula is in inline mode, like this
$q_{\phi}(z|x_i) \sim \mathcal{N}(\mathbf{\mu}_{z|x_i}, \mathbf{\sigma}_{z|x_i}^2\mathbf{I})$
UPDATE2: thanks to the link sent by @AndrewSwann, the vphantom command makes the trick!
$q_{\phi}(z|x_i) \sim \mathcal{N}(\mathbf{\mu}_{z|x_i}^{\vphantom{2}}, \mathbf{\sigma}_{z|x_i}^2\mathbf{I})$
Thanks




zandx_iare normal weight in the left hand side and boldface in the right hand side? Can you please show the code you're using for that formula? – egreg Apr 12 '18 at 07:56