expex is a package for formatting linguistic examples.

expex is a package available on CTAN which helps with formatting linguistic examples and glosses.

Related packages are:

For discussion of the strengths and weaknesses of all three packages, see

Numbered examples in linguistics that I can refer back to