I am trying to use the symbol \faPlus
from the latex package fontawesome
and I have some troubles with the spacing.
I declare my symbol with
\DeclareMathOperator\plus{\text{\rm\scriptsize\faPlus}}
The \text
is there because it is not a math command. The \rm
is there because there is no "italics" version, and so to avoid problems, the size is just a choice otherwise it is too big.
My problem is that the spacing looks not well. For example, if I put $\star\plus\star$
I get this:
But if I write $(\star)\plus(\star)$
or \langle\star\rangle\plus\langle\star\rangle
I get this:
where the symbol is clearly not centered.
Here is the full example:
\documentclass{article}
\usepackage{amsmath} % for \DeclareMathOperator macro
\usepackage{fontawesome} % for the \faPlus symbol
\DeclareMathOperator{\plus}{\textrm{\rm\scriptsize\faPlus}}
\begin{document}
\[
\star\plus\star
\]
\[
(\star)\plus(\star)
\]
\[
\langle\star\rangle\plus\langle\star\rangle
\]
\end{document}