I am trying to define a command that writes the word "FACTORING" in sans serif. I did define the command as follows:


But the when I use the command "FACTORING" does not have any distance to the following letters (see the following small document.) Could you please tell me what I am doing wrong?

 \documentclass[a4paper, 11pt, oneside]{book}



\usepackage{lmodern}    % The Font Type



ssssssssssssssss \FACTORING aaaaaa.

  • 1
    Use ss \FACTORING\ aa.
    – Sigur
    Jun 19 '20 at 22:14

LaTeX ignores space(s) after a command name. You can use

% or

to manually reserve or add a space.

Or, you can use the \xspace command from xspace package to automatically add a space.


Followed by punctuation: text \FACTORING. 

Followd by inter-word space: text \FACTORING text. 

enter image description here


You have to use an additional spacing char after your command. Use: \newcommand{\FACTORING}{\textsf{FACTORING}\ } instead

  • 3
    Welcome to TeX.SX! What if I want to write \FACTORING at the end of a sentence: ss \FACTORING.? It's better not to hardcode the space in the definition. Jun 19 '20 at 22:27

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