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

2
  • Does l_{\!p} look better? May 11, 2015 at 7:17
  • @HenriMenke Kindly add that as answer. Yes It does look better. :D Thanks
    – C.S.
    May 11, 2015 at 7:24

2 Answers 2

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.

9
  • 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, 2015 at 10:47
  • @S.C. I forgot to add the code; now it's there.
    – egreg
    May 11, 2015 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, 2015 at 11:38
  • @S.C. You don't want that. ;-)
    – egreg
    May 11, 2015 at 11:39
  • Why do you say so??
    – C.S.
    May 11, 2015 at 11:41
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .