# How to eliminate extra space around binary math operator [duplicate]

As an example, consider the plus sign (+). The code $x + y$ generates x + y. How can you make it look like x+y? In other words, how can you treat + like a letter rather than an operator? I'm looking for a local solution rather than a global one.

MWE :

\documentclass{article}
\begin{document}
$x + y$
\end{document}


## marked as duplicate by Mico, TeXnician, Stefan Pinnow, Mensch, TroyFeb 24 '18 at 13:31

\documentclass{article}
$x + y$
$x{+}y$