How do I color only the vector symbol in
\vec f? I'm using beamer, so xcolor is already loaded.
Extra "points" to an answer that also explains how to fish..and not only gives me the fish.
and if you want it a bit more automated
which is to be used as
You can use
In this way you're sure that the color change will be limited to this object. I've added an optional argument to change also the color of the variable.
The question How to color only a tilde accent was closed as "Duplicate" improper. There is very interesting problem which isn't solved in mentioned post nor here. When you return back to the black color in the nucleus of mathaccent atom, then this color manipulation needs
which gives the result:
Note that the second accent is positioned wrong because here is
We need to emulate the skewchar kerning (implemented in TeX) by macros. First, we do measurement of kern between nulcelus and skewchar. The result is in pt. Second, we convert this result to the mu units in order to the result is applicable in