In an article about defining new commands I saw an example
\newcommand{\R}{\mathbb{R}}
The set of real numbers are usually represented
by a blackboard bold capital r: ( \R ).
What do brackets \( and \) do here? Are they required to call user-defined commands? But I am not using any brackets while using built-in commands like
\textbf{commands}
Can I write my custom command so that I can also use it without any brackets, like
\R
not
\( \R \)
\(...\)is an alternative (newer) syntax for math mode, only available in latex, instead of TeX's$...$. It provides a couple of extra checks. The command\mathbbcan only be used in mathmode, so is needed when using this particular macro – Andrew Swann Dec 19 '21 at 11:36