1

I use Plain TeX on a daily basis and a frequent annoyance when typesetting large displays is weird spacing that occurs around bigger parentheses/braces/etc. For example, here is \exp(-x) with the five sizes of braces. In all but the first one, there seems to be extra spacing around the opening parenthesis.

enter image description here

I replaced \exp with {\rm exp} and now the space before the opening parenthesis is gone, but the space after it remains. (I guess it is not really extra space, since the roundedness of the parenthesis makes it take more horizontal space above and below the vertical axis of the minus sign.) There is also random space between the minus sign and the x, which is not there in the first case. I normally fix this by adding a \! before the parenthesis, two \!s before the minus sign, and one more after it.

What is going on behind the scenes to cause this? Is TeX treating the larger parenthesis as a different kind of symbol than the normal-sized parenthesis? (It seems as if TeX thinks I want to subtract x from (.) If so, is there something I can add to my macros to save from having to sprinkle \!s everywhere?

0

1 Answer 1

5

You have not shown your input which makes it rather hard to comment on what is wrong with it but I would guess you have done

enter image description here

$\exp(-x)$
$\exp\big(-x\big)$
$\exp\Big(-x\Big)$
$\exp\bigg(-x\bigg)$
$\exp\Bigg(-x\Bigg)$

\bye

That is an input error, \big is the internal helper for \bigl and \bigr and makes a \mathord so losing the left/right nature and as you note forcing - to take on infix \mathbin spacing.

With the intended input you do not get the spacing that you showed.

enter image description here



$\exp(-x)$
$\exp\bigl(-x\bigr)$
$\exp\Bigl(-x\Bigr)$
$\exp\biggl(-x\biggr)$
$\exp\Biggl(-x\Biggr)$

\bye
2
  • Wow, okay that is embarrassing! I have been using \bigg and its friends for a very long time without realising that it is wrong!
    – marcelgoh
    Commented Jun 21, 2021 at 7:02
  • 2
    @marcelgoh well you are not the first, it comes up often enough, which is why I could answer despite the fact that you put almost no information in your question:-) Commented Jun 21, 2021 at 7:04

You must log in to answer this question.

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