3

The following code

 \documentclass{article}
 \usepackage{amsmath}
 \begin{document}
 $*,**,***$
 \end{document}

yields

enter image description here

What can be done in order to get rid of the different spacing when three consecutive identical symbols are used? (I only experienced this issue with the asterisk; maybe this behavior is exclusive of this symbol).

5

The problem is that TeX interprets the middle * as a binary operator in ***, so it adds more space. With one or two *'s this does not happen because binary operators need two operands.

To turn this "feature" off use {*}, which tells TeX to interpret the * as an ordinary character.

Changing your MWE to:

   \documentclass{article}
   \usepackage{amsmath}
   \begin{document}
   $*,**,*{*}*$
   \end{document}

gives the output:

enter image description here

  • +1, although it's a feature, not a "feature" ;-P – Rmano Sep 21 '16 at 11:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.