Math & ScienceSpacing in Subscripts and Superscripts

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Stirling
Posts: 2
Joined: Mon Jun 06, 2011 12:11 am

Spacing in Subscripts and Superscripts

Post by Stirling »

Consider the following example:

Code: Select all

\documentclass{article}

\begin{document}
\[
	\sum_{k = 0}^{n - 1} a^{k} = \frac{1 - a^{n}}{1 - a \phantom{^{n}}}
\]
\[
	\sum_{k \, = \, 0}^{n \, - \, 1} a^{k} = \frac{1 - a^{n}}{1 - a \phantom{^{n}}}
\]
\end{document}
Although the second example does not follow standard spacing conventions, I find it is easier on my tired eyes, so I tend to add the additional spaces when I am writing documents for my own purposes that I do not intend to circulate. Is it possible to set the default spacing in subscripts and superscripts to avoid typing so many thin spaces?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply