# What is the use of the \hbox in a \newcommand command? [duplicate]

In page 90 of Grätzer's More Math into LaTeX (5th edition), he uses a \newcommand command to define a binary mathematical operation as follows:

\newcommand{\circwithdot}{\mathbin{\rlap{$\mspace{2mu}\cdot$}\hbox{$\circ$}}}


What is the use of the \hbox here? Why does not he use the \mbox command? Are they the same in this case?

## marked as duplicate by Mike Renfro, Henri Menke, Stefan Pinnow, karlkoeller, SchweinebackeJul 16 '17 at 7:09

• »Why does not he use the \mbox command?« Because the author made a mistake here. In LaTeX \mbox should be preferred over \hbox, see the linked threads above. – Henri Menke Jul 16 '17 at 2:44
• While the link is about the differences between \hbox and \mbox, it doesn't really answer the question. – egreg Jul 16 '17 at 8:42