Maybe my question is easy. When I want to write
$$ \mbox{div}(F) = \sum_i (F_i)_{x_i} $$
I have to type \mbox{div}(F), which is cumbersome.
Is there a way to define a command \blabla to produce \mbox{div}(F)?
Maybe my question is easy. When I want to write
$$ \mbox{div}(F) = \sum_i (F_i)_{x_i} $$
I have to type \mbox{div}(F), which is cumbersome.
Is there a way to define a command \blabla to produce \mbox{div}(F)?
Perhaps you want
\DeclareMathOperator{\mydiv}{div}
in your preamble. Then you could write
\begin{equation}
\mydiv(F) = ...
\end{equation}
Please don't use the outdated $$ for displayed equations as detailed in Why is \[ ... \] preferable to $$ ... $$?.
$$stems from Math.SE, as the user is register there. – Werner Nov 07 '12 at 18:43\newcommand{\blabla}{\mbox{div}(F)}and thereafter use\blabla. However, do have a look at the question pointed to by @egreg. – Andrew Swann Nov 07 '12 at 19:05