Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
Welcome to! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – Andrey Vihrov Oct 5 '11 at 13:52
just a sidenote, you really should not be using $$ ... $$. These don't deal with vertical spacing in a consistent way, use \[ ... \] instead – Roelof Spijker Oct 5 '11 at 13:58

3 Answers 3

up vote 10 down vote accepted

For a quick and dirty solution, try putting an empty group {} before the ^ symbol.

^gp = {}^gR^l_l+{}^go_l

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

share|improve this answer

In addition to the other solutions already presented, here is another one:

The (super-small) leftidx package provides left and right super- and subscripts to be typeset by means of \leftidx that is defined as follows:


It therefore provides

\leftidx{<left indexes>}{<object>}{<right indexes>}

where <left indexes> and <right indexes> are similar in context to regular super and subscript usage. Here's an example:

\[\leftidx{^g}{p}{} = \leftidx{^g}{R}{^l_l}+\leftidx{^g}{o}{_l}\]

Leftidx package example

share|improve this answer

The first solution suggested by @Ian Thompson may have some alignment issues (depending on what you actually have as super-/subscripts). But there again, a work-around is:

\qquad \text{versus} \qquad

NOTE: Example taken from The Not So Short Introduction to LaTeX2e (page 70).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.