I am using:
\usepackage{unicode-math}
\setmainfont{Latin Modern Math}
\setmainfont{Latin Modern Roman}
to help typeset mathematical notation with XeLaTeX. I used the following to change typesetting vectors with an arrow above to bold face:
\AtBeginDocument{\renewcommand{\vec}[1]{\symbfit{#1}}}
However, if I have an arrow above a number, that number will not get bolded. Instead, the arrow above the number will just disappear and only the number itself remains. How do I fix this?
\symbf{\vec{3}}
works (bold only) but\symbfit{\vec{3}}
does not work (the number is upright and not bold). You could try another font.