0

I saw several examples of user defined macros using \newcommand (without the *), and examples with \newcommand*. Trying both in my test documents doesn't show any difference. So why the asterisk? What are its functions? Should I care about it or not?

Here's a simple MWE to play with, in case it is usefeull here:

\documentclass[11pt,letterpaper,twoside]{book}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{mathtools}

\newcommand*{\bigs}[1]{\vcenter{\hbox{\scalebox{1.25}{#1}}}} % Why the *?

\begin{document}

Blabla bla bla blabla :
    \begin{equation}
        c \, \bigs( 1 + (x - y^2)(a + b) \bigs) = \tfrac{3}{4}.
    \end{equation}

\end{document}
  • 1
    \newcommand uses \long\def and \newcommand* only \def, see tex.stackexchange.com/a/1057. – user194703 Dec 8 '19 at 23:55
  • Thanks. So my question is a duplicate. – Cham Dec 9 '19 at 0:06
  • 1
    From cat to cat: yes. ;-) – user194703 Dec 9 '19 at 0:35