9

I need to increase the space globally between operators in subscripts/superscripts.

Example: \sum_{x=4}

I need a little more space before and after the = symbol in the subscript. It is required globally in every operator in subscripts/superscripts.

Werner
  • 603,163

2 Answers2

9

TeX does not put any space around operators in that position, so there is no parameter that you can set to control that space. This is different from the space in text or display style which you can control by setting the em width. See this answer on font dimens

So you can either set the subscript in text style (which might already be enough space) and then increase em or \thickmuskip or you need to use an explicit space such as \,.

enter image description here

\documentclass{article}

\begin{document}

\[\sum_{x=3}x=3\]

\[\sum_{\displaystyle x=4}x=4\]

\[\sum_{x\,=\,5}x=5\]

{\thickmuskip=22mu
\[\sum_{\displaystyle x=6}x=6\]
}

\fontdimen6\scriptfont2=1in
\fontdimen6\textfont2=1in

\[\sum_{x=7}x=7\]


\[\sum_{\textstyle x=8}x=8\]


\end{document}
David Carlisle
  • 757,742
0

The spacing depends on the command you insert, the example below contains a complete list of spaces and how they look like.

Spaces in mathematical mode.

\begin{align*}
f(x) =& x^2\! +3x\! +2 \\
f(x) =& x^2+3x+2 \\
f(x) =& x^2\, +3x\, +2 \\
f(x) =& x^2\: +3x\: +2 \\
f(x) =& x^2\; +3x\; +2 \\
f(x) =& x^2\ +3x\ +2 \\
f(x) =& x^2\quad +3x\quad +2 \\
f(x) =& x^2\qquad +3x\qquad +2
\end{align*}

When used with your example, you could use :

\sum_{x\ =\ 4}

for the desired effect.