3

When i try to use the newtxmath package the subscript spacing is too large and looks ugly. Is there anything which can be done to rectify this. I am not talking of the "x_n" subscript spacing but the l_p subscript spacing.

Thanksenter image description here

C.S.
  • 1,379

2 Answers2

3

In math mode you can add negative spacing using \!.

\documentclass{article}
\usepackage[cmbraces]{newtxmath}
\begin{document}
Let $\{x_n\} \in l_{\!p}$
\end{document}

enter image description here

Henri Menke
  • 109,596
2

You're comparing the wrong shapes, in my opinion. Consider

\documentclass{article}
\usepackage{newtxtext,newtxmath}

\begin{document}

\makebox[1cm][r]{$x_p$}\sbox0{$_p$}%
\makebox[0pt][l]{\kern-\wd0 \smash{\vrule height 1.5ex depth 4ex width 0.1pt}}

\makebox[1cm][r]{$l_p$}

\end{document}

which typesets $x_p$ and $l_p$ so that the right borders are aligned and also draws a hairline at the left border of the subscript p (of its bounding box, to be precise).

enter image description here

If I change _p with _n throughout, I get

enter image description here

Let's try $x_n$ and $l_p$, by changing a bit the code; I see no real need for a correction.

\documentclass{article}
\usepackage{newtxtext,newtxmath}

\begin{document}

\makebox[1cm][r]{$x_n$\sbox0{$_n$}\kern-\wd0}%
\smash{\vrule height 1.5ex depth 4ex width 0.1pt}

\makebox[1cm][r]{$l_p$\sbox0{$_p$}\kern-\wd0}

\end{document}

enter image description here

This is your example

enter image description here

You see that, at high resolution, the gap is not as big as it appears at low resolution.

Here are possible corrections:

\documentclass{article}
\usepackage{newtxtext,newtxmath}

\begin{document}

Let $\{x_n\}\in l_p$

Let $\{x_n\}\in l_{\mkern-1mu p}$

Let $\{x_n\}\in l_{\mkern-2mu p}$

Let $\{x_n\}\in l_{\mkern-3mu p}$

Let $\{x_n\}\in l_{\mkern-4mu p}$

\end{document}

enter image description here

Seeing them in comparison makes me choose the default or the -1mu correction at most. With \! you get -3mu which is too much.

egreg
  • 1,121,712
  • How does 1 get the -1mu correction?? Like the last 2 images of yours look really good with the subscript spacing. – C.S. May 11 '15 at 10:47
  • @S.C. I forgot to add the code; now it's there. – egreg May 11 '15 at 11:33
  • Thanks for the answer. By the way if i want all my subscripts to have -1mu spacing without having to write the \mkern command again and again what command should I be using?? – C.S. May 11 '15 at 11:38
  • @S.C. You don't want that. ;-) – egreg May 11 '15 at 11:39
  • Why do you say so?? – C.S. May 11 '15 at 11:41
  • @S.C. Some small correction may reveal good in some situations, not in every case. In this particular case the two subscripts may appear to be at different distance (which is not, as I showed before): these are optical illusions that should be cured case by case. – egreg May 11 '15 at 11:44
  • Emm thanks. But I am curious to try and see what happens :P – C.S. May 11 '15 at 11:45
  • @S.C. There's no command to do it; one can only redefine the action of _. But then $\mathrm{x}_{n}$ will be wrongly kerned. – egreg May 11 '15 at 11:46
  • Fine then. Thanks very much for your time. Take Care :) – C.S. May 11 '15 at 11:48