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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply