More improvements to LaTeX spacing.

Ensure no space before _, ^, or \limits.