# [Tex/LaTex] Superscripts before a letter in math

superscripts

I was writing this formula:

$$^gp = ^gR^l_l+^go_l$$


$g$ are superscripts, but they should be close to other letters. How can I solve this problem?

For a quick and dirty solution, try putting an empty group {} before the ^ symbol.
\documentclass{article}
$^gp = {}^gR^l_l+{}^go_l$

For a better method, check out the mathtools package, which provides the \prescript command.