Managing spaces with Latex is not simple, in this tutorial, we will see how to manage horizontal spaces.

How to write horizontal space: qquad, hspace, thinspace , enspace, \, , ! , !! , !!! , : , \;

Latex horizontal spaces

Space definition Need amsmath Latex code Result
Default No   fq
Horizontal thin space No \, or \thinspace fq
Horizontal negative thin space Yes ! or \negthinspace fq
Horizontal negative medium space Yes !! fq
Horizontal negative thick space Yes !!! fq
Horizontal medium space Yes : fq
Horizontal thick space Yes \;
Horizontal single space 0.5em No \enspace fq
Horizontal single space 1em No \quad fq
Horizontal douqle space 2em No \qquad fq
Custom horizontal space sample No \hspace{3em} fq
Custom horizontal space sample No \hspace{-3em} fq

Very important

  • No blank space before and after Latex commands: \, , ! , !! , !!! , : , \;
  • Add a blank space after \enspace, \thinspace, \quad, \qquad