The xcolor package influences the spacing of the algebraic sign. How to prevent this behavior?
Screenshot
Mathematical background
The second example should be treated as a binary operator instead of an unary operator.
See: Unary vs. binary operator spacing in LaTeX
MWE
\documentclass{scrreprt}
\usepackage{xcolor}
\begin{document}
\(1 + 2\)
\(1 {\color{gray} + 2}\)
\end{document}
Workaround
By manually adjusting the spacing...
\(1 {\color{gray}\,+\,2}\)



\(1 \textcolor{gray}{{} + 2}\)– Henri Menke Dec 15 '19 at 21:31