I have to highlight some symbols in red, something like this:

$2+2+2=6 \textcolor{red}{\to} 4+2=6$

However the colored formula horizontal spacing changes and the arrow almost touches the left and right symbols. To solve this I created a new command, like this:


but this seems like a suboptimal solution to me. Is there a proper way to let colored symbols keep the standard horizontal spacing in mathmode?

marked as duplicate by user11232, Red, barbara beeton, Thorsten, Benedikt Bauer Nov 4 '13 at 9:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • yes, sorry for the dupe. Please close it. – Angelo Nov 4 '13 at 9:15