2

This question already has an answer here:

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, Schweinebacke Jul 16 '17 at 7:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Related: Differentiating between \hbox and \mbox. – Alan Munn Jul 16 '17 at 2:02
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Mike Renfro Jul 16 '17 at 2:24
  • »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
  • 1
    It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you. – 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

Browse other questions tagged or ask your own question.