# why is there no space after \sc when using it as a macro? [duplicate]

Here is a MWE that explains it:

\documentclass{article}

\newcommand{\scmacro}{{\sc macro}}

\begin{document}

why is there no space after \scmacro even though there is space in the document?

\end{document}

• \sc is old style. Please don't use it, even in a group – user31729 Dec 23 '15 at 16:27
• Just don't reinvent the wheel and use \textsc{macro}. If you need a command for it, just do \newcommand{\scmacro}{\textsc{macro}} and use it as \scmacro{}. – egreg Dec 23 '15 at 16:31

Use \scmacro\ or \scmacro{} or \textsc{macro} and replace \sc with \scshape

\documentclass{article}

\newcommand{\scmacro}{{\scshape macro}}

\begin{document}

why is there no space after \scmacro\ or \scmacro{} or \textsc{macro} even though there is space in the document?

\end{document}


You need to put {} after a command to ensure that you'll have a space in the document produced.

\documentclass{article}

\newcommand{\scmacro}{{\sc macro}}

\begin{document}

why is there no space after \scmacro{} even though there is space in the document?

\end{document}


output:

• Hmm, did you check the output? I think you have {} in the wrong place. Plus \sc has been deprecated for 20 years. – egreg Dec 23 '15 at 16:27
• I think that what OP needs is \textsc{macro}, not \sc{}. Anyway it should be \scmacro{}. – Sigur Dec 23 '15 at 16:29
• @egreg Yes I interverted the {}. What should be used instead of \sc – Romain Picot Dec 23 '15 at 16:29